o
    œ©Zh½  ã                   @   s4   d Z ddlZddlmZ dd„ Zdd„ Zdd	„ ZdS )
z%Tests for IPython.utils.importstring.é    N)Úimport_itemc                  C   s    ddl } tdƒ}| |u sJ ‚dS )zTest simple importsr   NÚos)r   r   )r   Zos2© r   ú\/var/www/html/lang_env/lib/python3.10/site-packages/IPython/utils/tests/test_importstring.pyÚtest_import_plain   s   r   c                  C   s$   ddl m}  tdƒ}| |u sJ ‚dS )z#Test nested imports from the stdlibr   )Úpathzos.pathN)r   r   r   )r   Zpath2r   r   r   Útest_import_nested   s   r   c                   C   s   t  ttd¡ dS )z3Test that failing imports raise the right exceptionzIPython.foobarN)ÚpytestZraisesÚImportErrorr   r   r   r   r   Útest_import_raises&   s   r   )Ú__doc__r	   ZIPython.utils.importstringr   r   r   r   r   r   r   r   Ú<module>   s    