Your IP : 216.73.216.213


Current Path : /opt/alt/python311/lib64/python3.11/test/test_tools/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/test/test_tools/__pycache__/test_makefile.cpython-311.pyc

�

�0�i���<�dZddlZddlZddlmZddlZej��Zejd���sej	d���ej
�e��rej
�e��sej	d���Gd�d	ej
��ZdS)
z
Tests for `Makefile`.
�N)�supportT)�cpythonzcpython onlyzMakefile could not be foundc��eZdZd�Zd�ZdS)�TestMakefilec���g}d}ttdd���5}|D]�}|�d��rQd}|�|�d���dd��������h|rAd	|vrn<|�|�dd���������ddd��n#1swxYwYd
�|D��}|S)NF�rzutf-8)�encodingzTESTSUBDIRS=T�\��	c�H�g|]}|�d��s|dk�|�� S)ztest/�test)�
startswith)�.0�ds  �D/opt/alt/python311/lib64/python3.11/test/test_tools/test_makefile.py�
<listcomp>z/TestMakefile.list_test_dirs.<locals>.<listcomp>'s.��L�L�L��q�|�|�G�'<�'<�L��V���!����)�open�MAKEFILEr�append�removeprefix�replace�strip)�self�result�found_testsubdirs�f�lines     r�list_test_dirszTestMakefile.list_test_dirssZ����!��
�(�C�'�
2�
2�
2�
	B�a��
B�
B���?�?�>�2�2��(,�%��M�M��)�)�.�9�9�A�A� �"����%�'�'����
�$�B��4�'�'����M�M�$�,�,�t�R�"8�"8�">�">�"@�"@�A�A�A��
	B�
	B�
	B�
	B�
	B�
	B�
	B�
	B�
	B�
	B�
	B����
	B�
	B�
	B�
	B�"M�L�V�L�L�L���
s�B/C�C�Cc��|���}g}tjtj��D]�\}}}tj�|��}|dkr�,tj�|tj��}|�	|���5|�
|||�d����|�|��ddd��n#1swxYwY��t|��}|�
|t|����|�t|��t|����dS)N�__pycache__)�relpathzF is not included in the Makefile's list of test directories to install)�msg)r �os�walkr�
TEST_HOME_DIR�path�basenamer#�
STDLIB_DIR�subTest�assertInr�set�assertSetEqual�assertEqual�len)r�	test_dirs�used�dirpath�_�dirnamer#�unique_test_dirss        r�test_makefile_test_foldersz'TestMakefile.test_makefile_test_folders+s|���'�'�)�)�	����W�W�%:�;�;�	%�	%�M�G�Q���g�&�&�w�/�/�G��-�'�'���g�o�o�g�w�/A�B�B�G����g��.�.�	
%�	
%��
�
���"�9�9�9�	�������G�$�$�$�	
%�	
%�	
%�	
%�	
%�	
%�	
%�	
%�	
%�	
%�	
%����	
%�	
%�	
%�	
%���y�>�>�����,�c�$�i�i�8�8�8�����Y����-=�)>�)>�?�?�?�?�?s�!1C�C"	�%C"	N)�__name__�
__module__�__qualname__r r7�rrrrs7���������0@�@�@�@�@rr)�__doc__r%�unittestrr�	sysconfig�get_makefile_filenamer�check_impl_detail�SkipTestr(�exists�isfile�TestCaserr;rr�<module>rEs�����
�	�	�	���������������*�9�*�,�,�� �w� ��.�.�.�,�
�(�
�N�
+�
+�+�	�w�~�~�h���;�r�w�~�~�h�'?�'?�;�
�(�
�9�
:�
:�:�1@�1@�1@�1@�1@�8�$�1@�1@�1@�1@�1@r