Format: application/x-python-code
1 o
2
3 ��h� � @ s4 d Z ddlZddlmZ dd� Zdd� Zdd � ZdS )
4 z%Tests for IPython.utils.importstring.� N)�import_itemc C s ddl } td�}| |u sJ �dS )zTest simple importsr N�os)r r )r Zos2� r �[c:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/utils/tests/test_importstring.py�test_import_plain s r c C s$ ddl m} td�}| |u sJ �dS )z#Test nested imports from the stdlibr )�pathzos.pathN)r r r )r Zpath2r r r �test_import_nested s r c C s t �ttd� dS )z3Test that failing imports raise the right exceptionzIPython.foobarN)�pytestZraises�ImportErrorr r r r r �test_import_raises&