+
    VBiU                     l    ^ RI t^ RIt^ RIt^ RIt^ RIt^RIHtHtH	t	  ! R R]P                  4      tR# )    N)
write_filewrite_newer_file_parse_patternc                   t   a a ] tR t^
t oV 3R ltV 3R ltR tR tR tR t	R t
R tR	 tR
 tR tRtVtV ;t# )TestTestUtilsc                X   < \         SV `  4        \        P                  ! 4       V n        R # N)supersetUptempfilemkdtemptemp_dirself	__class__s   &?/usr/lib/python3.14/site-packages/Cython/Tests/TestTestUtils.pyr   TestTestUtils.setUp   s     ((*    c                   < V P                   '       dP   \        P                  P                  V P                   4      '       d!   \        P
                  ! V P                   4       \        SV `  4        R # r	   )r   ospathisdirshutilrmtreer
   tearDownr   s   &r   r   TestTestUtils.tearDown   s=    ===RWW]]4==99MM$--(r   c                V    \         P                  P                  V P                  V4      # r	   )r   r   joinr   )r   filenames   &&r   
_test_pathTestTestUtils._test_path   s    ww||DMM844r   c                R   V P                  R 4      p\        WA3/ VB  \        P                  P	                  V4      '       g   Q h\        VR4      ;_uu_ 4       pVP                  4       pRRR4       XV8X  g   Q \        V4      \        V4      34       hR#   + '       g   i     L4; i)abcfilerbN)r    r   r   r   isfileopenreadrepr)r   contentexpectedkwargs	file_pathffounds   &&&,   r   _test_write_fileTestTestUtils._test_write_file   s~    OOI.	900ww~~i(((()T""aFFHE # ?4>4;"??  #"s   BB&	c                J    R pV P                  WP                  R4      4       R# )u	   abcüöäutf8N)r/   encoder   texts   & r   test_write_file_text"TestTestUtils.test_write_file_text    s    dKK$78r   c                x    R pV P                  V\        P                  ! V4      P                  R4      RR7       R# )z|
        A horse is a horse,
        of course, of course,
        And no one can talk to a horse
        of course
        r2   T)dedentN)r/   textwrapr9   r3   r4   s   & r   test_write_file_dedent$TestTestUtils.test_write_file_dedent$   s5     	dHOOD$9$@$@$HQUVr   c                *    V P                  R R 4       R# )s   ab cN)r/   r   s   &r   test_write_file_bytes#TestTestUtils.test_write_file_bytes-   s    h1r   c                   V P                  R 4      pV P                  R4      p\        VR4       \        P                  P	                  V4      '       g   Q h\        W!R4       \        P                  P	                  V4      '       g   Q h\        P                  P                  V4      \        P                  P                  V4      8  g   Q hR# )zabcfile1.txtzabcfile2.txtabcxyzN)r    r   r   r   r%   r   getmtime)r   file_path_1file_path_2s   &  r   test_write_newer_file#TestTestUtils.test_write_newer_file0   s    oon5oon5;&ww~~k****59ww~~k****ww,rww/?/?/LLLLr   c                    V P                  R 4      p\        VR4       \        P                  P	                  V4      p\        WR4       \        P                  P	                  V4      V8  g   Q hR# )abcfile.txtrB   rC   N)r    r   r   r   rD   r   )r   r,   mtimes   &  r   test_write_newer_file_same(TestTestUtils.test_write_newer_file_same9   sU    OOM2	9e$  +u5ww	*U222r   c                    V P                  R 4      p\        P                  P                  V4      '       d   Q h\	        WR4       \        P                  P                  V4      '       g   Q hR# )rJ   rC   N)r    r   r   existsr   r%   )r   r,   s   & r   test_write_newer_file_fresh)TestTestUtils.test_write_newer_file_fresh@   sL    OOM2	77>>),,,,u5ww~~i((((r   c                   V P                  \        R 4      R4       V P                  \        R4      R4       V P                  \        R4      R4       V P                  \        R4      R	4       V P                  \        R4      R	4       R# )
patternNz/start/:patternz:/end/  patternz/start/:/end/  patternz/start/:/end/pattern)NNrS   )startNrS   )NendrS   )rT   rU   rS   )assertEqualr   r>   s   &r   test_parse_pattern TestTestUtils.test_parse_patternF   s    9%#	
 	,-&	
 	,-$	
 	34'	
 	12'	
r   )r   )__name__
__module____qualname____firstlineno__r   r   r    r/   r6   r;   r?   rG   rL   rP   rW   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r   
   sD     +
5@9W2M3)
 
r   r   )os.pathr   unittestr   r:   r   	TestUtilsr   r   r   TestCaser    r   r   <module>rf      s.         D DP
H%% P
r   