
    fT                     4    d dl mZ d dlmZ d dlmZ d Zd Zy)    )Path)NamedFileInTemporaryDirectory)TemporaryWorkingDirectoryc                  "   t        d      5 } | j                  }| j                  rJ t        |      j	                         sJ | j                  d       d d d         j                  sJ t              j	                         rJ y # 1 sw Y   3xY w)Nfilenames   test)r   nameclosedr   existswrite)filer   s     [/var/www/cvtools/html/venv/lib/python3.12/site-packages/IPython/utils/tests/test_tempdir.py&test_named_file_in_temporary_directoryr      s    	&z	2 dyy;;Dz  """

7	
 ;;;Dz  """" s   ABBc                  Z   t               5 } t        |       j                         }|j                         sJ t        j                         j                         |k(  sJ 	 d d d        j                         rJ t        j                         j                         |k7  sJ y # 1 sw Y   CxY w)N)r   r   resolver
   cwd)	directorydirectory_paths     r    test_temporary_working_directoryr      s    	"	$ 6	i002$$&&&xxz!!#~5556 $$&&&88:>1116 6s   AB!!B*N)pathlibr   IPython.utils.tempdirr   r   r   r        r   <module>r      s     ? ;#2r   