
    dafs
                     R   d Z ddlZddlZddlmZ ddlZ ej                         Z ej                  d      s ej                  d      ej                  j                  e      rej                  j                  e      s ej                  d       G d d	ej                        Zy)
z
Tests for `Makefile`.
    N)supportT)cpythonzcpython onlyzMakefile could not be foundc                       e Zd Zd Zd Zy)TestMakefilec                    g }d}t        t        dd      5 }|D ]  }|j                  d      rAd}|j                  |j	                  d      j                  dd      j                                U|sXd	|vr n1|j                  |j                  dd      j                                 d d d        |S # 1 sw Y   |S xY w)
NFrzutf-8)encodingzTESTSUBDIRS=T\ 	)openMAKEFILE
startswithappendremoveprefixreplacestrip)selfresultfound_testsubdirsflines        8/root/Python-3.12.4/Lib/test/test_tools/test_makefile.pylist_test_dirszTestMakefile.list_test_dirs   s    !(C'2 	Ba B??>2(,%MM)).9AA "%'
 $4'MM$,,tR"8">">"@AB	B 	B s   AB327B33B=c                 F   | j                         }d}| j                  ||       |g}t        j                  t        j
                        D ]  \  }}}t        j                  j                  |      }|dk(  s|j                  d      r|j                          M|s|sR|rt        d |D              rgt        j                  j                  |t        j                        }| j                  |      5  | j                  |||d       |j                  |       d d d         t        j                   d      r|j#                  d	       t%        |      }	| j'                  |	t%        |             | j)                  t+        |      t+        |	             y # 1 sw Y   UxY w)
Nzidlelib/idle_test__pycache__.c              3   >   K   | ]  }|j                  d         yw)r   N)r   ).0filenames     r   	<genexpr>z:TestMakefile.test_makefile_test_folders.<locals>.<genexpr>6   s     L(X005Ls   )relpathzF is not included in the Makefile's list of test directories to install)msgWHEEL_PKG_DIRztest/wheeldata)r   assertInoswalkr   TEST_HOME_DIRpathbasenamer   clearallr"   
STDLIB_DIRsubTestr   	sysconfigget_config_varremovesetassertSetEqualassertEquallen)
r   	test_dirs	idle_testuseddirpathdirsfilesdirnamer"   unique_test_dirss
             r   test_makefile_test_foldersz'TestMakefile.test_makefile_test_folders&   so   '')	'	i+{$&GGG,A,A$B 	% GT5gg&&w/G-'7+=+=c+B

LeLLggoogw/A/ABGg. 	%"+ &9 9	   G$	% 	%	%4 ##O4-. y>,c$i8Y-=)>?%	% 	%s   2)FF 	N)__name__
__module____qualname__r   r>        r   r   r      s    &&@rC   r   )__doc__r&   unittesttestr   r/   get_makefile_filenamer   check_impl_detailSkipTestr)   existsisfileTestCaser   rB   rC   r   <module>rM      s    
   *9**, w  .
(

N
++	ww~~hrww~~h'?
(

9
:::@8$$ :@rC   