%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.12/test/libregrtest/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.12/test/libregrtest/__pycache__/runtests.cpython-312.pyc

�

���f/����ddlZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZm
Z
mZmZmZmZGd�d�Zej&dd�	�Gd
�d��Zej&dd�	�Gd�d
��Zej&dd�	�Gd�d��Zej&dd�	�Gd�de��ZGd�dej0�Zdeeefdeeeefzfd�Zy)�N)�Any)�support�)�StrPath�StrJSON�	TestTuple�
TestFilter�FilterTuple�
FilterDictc��eZdZdZdZdZy)�JsonFileType�UNIX_FD�WINDOWS_HANDLE�STDOUTN)�__name__�
__module__�__qualname__rrr���0/usr/lib/python3.12/test/libregrtest/runtests.pyr
r
s���G�%�N�
�Frr
T)�slots�frozenc�d�eZdZUedzed<eed<deddfd�Zejd��Z
d	d�Zy)
�JsonFileN�file�	file_type�popen_kwargs�returnc���|jxtjk(r|jg|d<ytjk(r.tj�}d|jgi|_||d<yy)N�pass_fds�handle_list�startupinfo)rr
rrr�
subprocess�STARTUPINFO�lpAttributeList)�selfrr"s   r�configure_subprocesszJsonFile.configure_subprocesss_���n�n�%��%�%�,0�I�I�;��Z�(��,�,�)�4�4�6��/<�t�y�y�k�.J��+�.9��]�+�-rc#�$K�|jtjk(rFtj|j
d�	d��tj|j
d�yd��y#tj|j
d�wxYw�w)NTF)rr
r�os�set_handle_inheritabler�r&s r�inherit_subprocesszJsonFile.inherit_subprocess+sb�����>�>�\�8�8�8��%�%�d�i�i��6�
<���)�)�$�)�)�U�;����)�)�$�)�)�U�;�s�>B�A+�&B�+"B
�
Bc��|jtjk(rtd��|j}|jtj
k(r$ddl}|j|tj�}t|||��S)Nz)for STDOUT file type, just use sys.stdoutr)�encoding)rr
r�
ValueErrorrr�msvcrt�open_osfhandler)�O_WRONLY�open)r&�moder.rr0s     rr3z
JsonFile.open6sc���>�>�\�0�0�0��H�I�I��y�y���>�>�\�8�8�8���(�(��r�{�{�;�D��D�$��2�2r)�r)rrr�int�__annotations__�str�dictr'�
contextlib�contextmanagerr,r3rrrrrsE����*���N�
:��
:�$�
:�������	3rrc�>�eZdZUeed<eed<eed<deefd�Zy)�HuntRefleak�warmups�runs�filenamerc�>�d|j�d|j�d�gS)Nz-R�:)r>r?r+s r�bisect_cmd_argszHuntRefleak.bisect_cmd_argsHs$�������a��	�	�{�!�4�5�5rN)	rrrr6r7r�listr8rCrrrr=r=Bs"��
�L�

�I���6��c��6rr=c��eZdZUeed<eed<eed<eed<edzed<eed<eed<eed	<eed
<eed<edzed<e	ed
<eed<e
dzed<edzed<eed<edzed<e	dzed<e
edfed<e
edfdzed<eed<e	ezed<d"d�Zd�Zdedzfd�Zd�Zd�Zdefd�Zdeefd �Zdeefd!�Zy)#�RunTests�tests�	fail_fast�fail_env_changed�match_testsN�match_tests_dict�rerun�forever�pgo�pgo_extended�output_on_failure�timeout�verbose�quiet�hunt_refleak�test_dir�	use_junit�memory_limit�gc_threshold.�
use_resources�
python_cmd�	randomize�random_seedrc�d�tj|�}|j|�tdi|��S�Nr)�dataclasses�asdict�updaterF�r&�override�states   r�copyz
RunTests.copygs,���"�"�4�(��
���X��� �%� � rc�d�tj|�}|j|�tdi|��Sr^)r_r`ra�WorkerRunTestsrbs   r�create_worker_runtestszRunTests.create_worker_runtestsls,���"�"�4�(��
���X���&��&�&rc�T�|j�|jj|d�Sy�N)rK�get)r&�	test_names  r�get_match_testszRunTests.get_match_testsqs*��� � �,��(�(�,�,�Y��=�=�rc�F�|jryt|j�Srj)rM�lenrGr+s r�get_jobszRunTests.get_jobsws���<�<���4�:�:��rc#�K�|jr	|jEd{����|jEd{���y7�7��wrj)rMrGr+s r�
iter_testszRunTests.iter_tests~s:�����<�<���:�:�%�%���z�z�!�!�&��!�s�>�:�>�<�>�>c�t�t|j�xs"tjxstjSrj)�boolrZr�
is_emscripten�is_wasir+s r�json_file_use_stdoutzRunTests.json_file_use_stdout�s/��
����!�
��$�$�
����	
rc���tj�}|j�"|j}|D�cgc]
}|dk7s�	|��}}ntjf}g|�|�}d|vr|jd�|Scc}w)Nz-E�-u)r�args_from_interpreter_flagsrZ�sys�
executable�append)r&�python_optsr|�opt�cmds     r�create_python_cmdzRunTests.create_python_cmd�sx���9�9�;���?�?�&����J�+6�E�3����3�E�K�E��.�.�*�J�)�
�)�[�)���{�"��J�J�t���
��
Fs
�
A1�A1c��g}|jr|jd�|jr|jd�|jr|jd|j���|j�)|j|jj
��|jr|jd|jf�|jr|jd|jf�|jr|jd|j���|jr,|jddj|j�f�|jr2tj|j�}|jd	|f�|jr|jd
�|jd|j���|S)Nz
--failfastz--fail-env-changedz
--timeout=z	--testdirz
--memlimitz--threshold=ry�,z--pythonz--randomizez--randseed=)rHr}rIrQrT�extendrCrUrWrXrY�joinrZ�shlexr[r\)r&�argsr�s   rrCzRunTests.bisect_cmd_args�sY�����>�>��K�K��%�� � ��K�K�,�-��<�<��K�K�*�T�\�\�N�3�4����(��K�K��)�)�9�9�;�<��=�=��K�K��d�m�m�4�5�����K�K��t�'8�'8�9�:�����K�K�,�t�'8�'8�&9�:�;�����K�K��s�x�x��(:�(:�;�<�=��?�?��*�*�T�_�_�-�C��K�K��S�)�*��>�>��K�K�+�'����k�$�"2�"2�!3�4�5��r)rrF)rrrrr7rtr	r�floatr6r=rr8�tuplererhr
rmrprrrwrDr�rCrrrrFrFNs�����O����� �4�'�'��K�
�M�	
�I�����
�T�\��
�L��K���$�$���n���O���*����*����c��?�"��c�3�h��$�&�&��O��s���!�
'�
�K�$�,>���"�
�d�
�
�4��9�
���c��rrFc�>�eZdZUeed<defd�Zededdfd��Zy)rg�	json_filerc�8�tj|t��S)N)�cls)�json�dumps�_EncodeRunTestsr+s r�as_jsonzWorkerRunTests.as_json�s���z�z�$�O�4�4r�worker_jsonc�8�tj|t��S)N)�object_hook)r��loads�_decode_runtests)r�s r�	from_jsonzWorkerRunTests.from_json�s���z�z�+�3C�D�DrN)	rrrrr7rr��staticmethodr�rrrrgrg�s;����5��5��E�w�E�+;�E��Errgc�2��eZdZdedeeeff�fd�Z�xZS)r��orc�z��t|t�rtj|�}d|d<|St�|�|�S)NT�__runtests__)�
isinstancergr_r`�super�default)r&r��result�	__class__s   �rr�z_EncodeRunTests.default�s;����a��(� �'�'��*�F�%)�F�>�"��M��7�?�1�%�%r)rrrrr9r8r��
__classcell__)r�s@rr�r��s#���&��&��c�3�h��&�&rr��datarc��d|vrH|jd�|drtdi|d��|d<|drtdi|d��|d<tdi|��S|S)Nr�rTr�r)�popr=rrg)r�s rr�r��sg��������� ����#.�#F��n�1E�#F�D�� ���� (� =�4��+<� =�D����%��%�%��r)r:r_r�r)r�r#r{�typingr�testr�utilsrrrr	r
rr
�	dataclassrr=rFrg�JSONEncoderr�r9r8r�rrr�<module>r�s�����	���
���F�F�������T�$�/�(3�(3�0�(3�V����T�$�/�6�6�0�6�����T�$�/�j�j�0�j�Z����T�$�/�E�X�E�0�E�&�d�&�&�&�	�4��S��>�	�h��c�3�h��.G�	r

Zerion Mini Shell 1.0