ó
    \è”h  ã                   ó2   • S r SSKrSSKr " S S5      rS rg)zN
This module adds context manager for temporary files generated by the tests.
é    Nc                   óp   • \ rS rSrSr\" S5      r\" S5      r\S	S j5       r	\S	S j5       r
\S 5       rSrg)
ÚTmpFileManageré	   zH
A class to track record of every temporary files created by the tests.
Ú c                 ó<   • U R                   R                  U5        U$ ©N)Ú	tmp_filesÚadd©ÚclsÚnames     ÚN/var/www/auris/envauris/lib/python3.13/site-packages/sympy/testing/tmpfiles.pyÚtmp_fileÚTmpFileManager.tmp_file   s   € à‰×Ñ˜$ÔØˆó    c                 ó<   • U R                   R                  U5        U$ r   )Útmp_foldersr
   r   s     r   Ú
tmp_folderÚTmpFileManager.tmp_folder   s   € à‰×Ñ˜DÔ!Øˆr   c                 óž  • U R                   (       ag  U R                   R                  5       n[        R                  R	                  U5      (       a  [        R
                  " U5        U R                   (       a  Mg  U R                  (       aD  U R                  R                  5       n[        R                  " U5        U R                  (       a  MC  g g r   )	r	   ÚpopÚosÚpathÚisfileÚremover   ÚshutilÚrmtree)r   ÚfileÚfolders      r   ÚcleanupÚTmpFileManager.cleanup   sv   € àmmØ—=‘=×$Ñ$Ó&ˆDÜw‰w~‰~˜d×#Ñ#Ü—	’	˜$”ð mm‰mð ooØ—_‘_×(Ñ(Ó*ˆFÜMŠM˜&Ô!ð oo‹or   © N)r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úsetr	   r   Úclassmethodr   r   r    Ú__static_attributes__r"   r   r   r   r   	   sU   † ññ B“€IÙb“'€Kàóó ðð óó ðð ñ"ó ó"r   r   c                 ó   ^ • U 4S jnU$ )zH
A decorator to help test codes remove temporary files after the tests.
c                  óp   >•  T " 5         [         R                  5         g ! [         R                  5         f = fr   )r   r    )Ú	test_funcs   €r   Úwrapper_functionÚ+cleanup_tmp_files.<locals>.wrapper_function(   s&   ø€ ð	%ÙŒKä×"Ñ"Õ$øŒN×"Ñ"Õ$ús   ƒ Ÿ5r"   )r-   r.   s   ` r   Úcleanup_tmp_filesr0   $   s   ø€ õ%ð Ðr   )r'   r   r   r   r0   r"   r   r   Ú<module>r1      s!   ðñó Û 	÷"ñ "ó6
r   