o
    éË·e½  ã                   @   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   Úos2© r   ú\/var/www/ideatree/venv/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   Ú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)ÚpytestÚraisesÚImportErrorr   r   r   r   r   Útest_import_raises&   s   r   )Ú__doc__r   ÚIPython.utils.importstringr   r   r
   r   r   r   r   r   Ú<module>   s    