← Back
Editing: test_importstring.cpython-311.pyc
� ��X� � �4 � d Z ddlmZ ddlmZ d� Zd� Zd� ZdS )z%Tests for IPython.utils.importstring.� N� )�import_itemc �X � ddl } t d� � }t j | |u � � dS )zTest simple importsr N�os)r r �nt�assert_true)r �os2s �J/usr/lib/python3/dist-packages/ipython_genutils/tests/test_importstring.py�test_import_plainr s2 � � �I�I�I� �d� � �C��N�2��9������ c �\ � ddl m} t d� � }t j | |u � � dS )z#Test nested imports from the stdlibr )�pathzos.pathN)r r r r r )r �path2s r �test_import_nestedr s; � �������� �"�"�E��N�4�5�=�!�!�!�!�!r c �F � t j t t d� � dS )z3Test that failing imports raise the right exceptionzIPython.foobarN)r � assert_raises�ImportErrorr � r r �test_import_raisesr s � ���[�+�/?�@�@�@�@�@r ) �__doc__� nose.tools�toolsr �importstringr r r r r r r �<module>r sm �� +� +� � � � � � � &� &� &� &� &� &�� � �"� "� "�A� A� A� A� Ar
Save File
Cancel