
    ^h                     2    S r SSKJr  SSKJr  S rS rS rg)z%Tests for IPython.utils.importstring.    N   )import_itemc                  P    SSK n [        S5      n[        R                  " XL 5        g)zTest simple importsr   Nos)r   r   ntassert_true)r   os2s     b/home/james-whalen/.local/lib/python3.13/site-packages/ipython_genutils/tests/test_importstring.pytest_import_plainr   
   s    
d
CNN29    c                  T    SSK Jn   [        S5      n[        R                  " XL 5        g)z#Test nested imports from the stdlibr   )pathzos.pathN)r   r   r   r   r   )r   path2s     r
   test_import_nestedr      s    	"ENN4=!r   c                  D    [         R                  " [        [        S5        g)z3Test that failing imports raise the right exceptionzIPython.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      s     +
  &"Ar   