
    &eT                     6    d dl mZ d dlmZ d dlmZ d Zd ZdS )    )Path)NamedFileInTemporaryDirectory)TemporaryWorkingDirectoryc                  <   t          d          5 } | j        }| j        rJ t          |                                          sJ |                     d           d d d            n# 1 swxY w Y   | j        sJ t          |                                          rJ d S )Nfilenames   test)r   nameclosedr   existswrite)filer   s     @lib/python3.11/site-packages/IPython/utils/tests/test_tempdir.py&test_named_file_in_temporary_directoryr      s    	&z	2	2 dy;Dzz  """""

7	              
 ;Dzz  """""""s   A	A%%A),A)c                     t                      5 } t          |                                           }|                                sJ t          j                                                    |k    sJ 	 d d d            n# 1 swxY w Y   |                                rJ t          j                                                    |k    sJ d S )N)r   r   resolver
   cwd)	directorydirectory_paths     r    test_temporary_working_directoryr      s    	"	$	$ 6	i0022$$&&&&&xzz!!##~555556 6 6 6 6 6 6 6 6 6 6 6 6 6 6 $$&&&&&8::>111111s   A#A??BBN)pathlibr   IPython.utils.tempdirr   r   r   r        r   <module>r      se          ? ? ? ? ? ? ; ; ; ; ; ;# # #2 2 2 2 2r   