403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3.14/test/support/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.14/test/support/__pycache__/__init__.cpython-314.pyc
+
��3j���
�Z�Rt]R8wd	]!R4h^RIt^RIt^RIt^RIt^RIt^RIt^RI	t	^RI
t
^RIt^RIt^RI
t
^RIt^RIt^RIt^RIt^RIt.RNRNRNRNRNR	NR
NRNRNR
NRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR.NR/NR0NR1NR2NR3NR4NR5NR6NR7NR8NR9NR:NR;NR<NR=NR>NR?NR@NRANRBNRCNRDNRENRFNRGNRHNRINRJNRKNRLNRMNRNNRONRPNRQNRRNRSNRTNRUNRVNRWNRXNRYNRZNR[NR\NR]NR^NR_NR`NRaNRbNRcNRdNReNRfNRgNtRhtRitRjtERat]	P0P3]	P0P5]44t]	P0P3]4t]	P0P3]4t]	P0P3]4t!RkR	] 4t!!RlR
]!4t"!RmRn]"4t#!RoR]!4t$!RpR]PJ4t&Rqt'Rrt(Rst)^t*Rt+^s,^s-Rt.Rtt/Rs0Rut1Rvt2Rwt3Rxt4Ryt5Rzt6ERbR{lt7ERcR|lt8R}t9R~t:Rt;R�t<R�t=ERbR�lt>R�RtR�RtR�RtR�RtR�R�/R�lt?ERbR�RtR�RtR�RtR�Rt/R�llt@]?!R�R�7tAR�tBR�tCERetDERgtE]P�!]GP�R�4P�R�4R�4tJERhR�ltKERiR�ltLERjR�ltMERkR�ltNERlR�ltOR�tPERmR�ltQ]P�R�8HtS]P�P�R�4tT]P�R�8HtUR�tV]P�ERn9d]U'dR�MR�tWMRtW]P�R�8HtX]P�R�8HtY]X;'g]YtZR�t[R�t\]P�ERo9t]]];'g]P�R�8Ht^]_!]	R�4;'d&]X;'g]Y;'g
]];'g]U'*t`R�ta]X;'g]Y;'g
]];'g]U'*tbR�tc]X;'g]Y'*tdR�Rt/R�lteRttf]P�R�8wd]P�!R�4R�8gtfR�tiRttjRttk]	P0P�]R�4tmR�tnERbR�ltoR�tpERbR�R�lltqERpR�RR�R/R�lltrR�ts]P�R�4tuR�tvR�twR�txR�ty]P�R�4tz]P�R�4t{R�t|R�t}R�t~]!]
EP!R�44t�ERqR�lt�R�t�]�'dR�t�MR�t�R�t�]�R�,t�R�t�R�t�^t�^�t�ERrt�ERst�R�t�ERdt�ERtt�ERft�ERut�ERvt�R�t�R�Rt/R�lt�]P�R�4t�R�t�R�t�ERwt�R�]�,t�^]�,t�^]�,t�]EP8t�R�R�lt�R�R�lt�!R�R�4t�ERxR�lt�R�t�R�t�R�t�R�t�ERbR�lt�R�t�R�t�R�t�R�t�R�t�R�t�]
EP!R�4;'gR�R�8Ht�R�t�R�t�R�R�lt�R�]	EPb9t�R�t�]�!4;'d0]P�R�8g;'d]
EP!R�4'*t�]�PRJt�]�;'d]�'*t�]P�!]�R�4t�R�t�R�t�]EPt]�n�Rts�R�t�]P�R�4t�]P�R�4t�R�t�R�t�!R�RJ]�4t�Rs�R�t�!R�R�4t�R�t�R�t�R�ERy/R�lt�ERzR�lt�ER{R�lt�!R�RL4t�R�t�]P�R�4t�R�t�R�R/ERlt�ERt�ER|ERlt�.3ERlt�Rs�ERt�ERt�]P�ER4t�!ERER4t�ER	t�ER
t�!ERER4t�]�!4t�!ER
ER4t�]�!4t�]EP�!ERER44t�]�!4t�]EP�!ERER44t�]�!4t�ERt�]EP�EP�t�]�ER}9gQhERt�!ERER4t�ERR/ERlt�ERt�ERt�ERt�ERt�]P�ER4t�ERbERlt�ERER lt�ER!ER"lt�ER#t�]EP�ER$4t�]P�ER%4t�]_!]ER&4t�ER't�ERbER(R�/ER)llt�ERbER*ER+ER,ER-ER(R�/ER.llt�!ER/ER04t�]P�ER14t�ER2t�]_!]	ER34;'d"]	EP�!4EP�ER48HEt]EP!E]ER54Et]_!]ER64Et]EPEP4Et]P�!E]ER74Et]EP!E]ER84EtE]	!ER9ER:04Et
ER;EtER<R�/ER=lEtER>Et
ER?Et]EP3ER@lEtERAEtERBEt]P�ERCERDl4EtEREEtERFEtERGEtERHEtERIERJlEtERKERLERMERNEROERP/EtERQEt!ERRRa4EtERSERTlEtERUEt]EP<ERV4EtERWEt ERXEt!ERYEt"ERZEt#ER[Et$!ER\ER]4Et%REs&ER^Et'ER_ER`lEt(R# ]hdELi;i(~z7Supporting definitions for the Python regression tests.ztest.supportz.support must be imported from the test packageN�
PIPE_MAX_SIZE�verbose�
max_memuse�
use_resources�failfast�Error�
TestFailed�
TestDidNotRun�ResourceDenied�record_original_stdout�get_original_stdout�captured_stdout�captured_stdin�captured_stderr�captured_output�is_resource_enabled�get_resource_value�requires�requires_resource�requires_freebsd_version�requires_gil_enabled�requires_linux_version�requires_mac_ver�check_syntax_error�
requires_gzip�requires_bz2�
requires_lzma�
requires_zstd�
bigmemtest�bigaddrspacetest�cpython_only�
get_attribute�requires_IEEE_754�
requires_zlib�has_fork_support�
requires_fork�has_subprocess_support�requires_subprocess�has_socket_support�requires_working_socket�anticipate_failure�load_package_tests�detect_api_mismatch�check__all__�skip_if_buggy_ucrt_strfptime�check_disallow_instantiation�check_sanitizer�skip_if_sanitizer�requires_limited_api�requires_specialization�
thread_unsafe�skip_if_unlimited_stack_size�
MS_WINDOWS�	is_jython�
is_android�
is_emscripten�is_wasi�is_apple_mobile�check_impl_detail�
unix_shell�setswitchinterval�support_remote_exec_only�get_pagesize�open_urlresource�
reap_children�run_with_locale�	swap_item�findfile�infinite_recursion�	swap_attr�Matcher�set_memlimit�SuppressCrashReport�sortdict�run_with_tz�PGO�missing_compiler_executable�	ALWAYS_EQ�NEVER_EQ�LARGEST�SMALLEST�LOOPBACK_TIMEOUT�INTERNET_TIMEOUT�
SHORT_TIMEOUT�LONG_TIMEOUT�Py_DEBUG�exceeds_recursion_limit�
skip_on_s390x�requires_jit_enabled�requires_jit_disabled�force_not_colorized�force_not_colorized_test_class�make_clean_env�
BrokenIter�!in_systemd_nspawn_sync_suppressed�run_no_yield_async_fn�run_yielding_async_fn�async_yield�
reset_code�on_github_actionsg$@gN@g>@c��]tRt^xtRtRtR#)rz*Base class for regression test exceptions.�N��__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__rg��,/usr/lib/python3.14/test/support/__init__.pyrrxs��4roc�Daa�]tRt^{toRtRR/V3RlltRtRtVtV;t	#)r�Test failed.�statsNc�D<�WnW n\SV`!V.VO5!R#�N)�msgrs�super�__init__)�selfrvrs�args�	__class__s&&$*�rprx�TestFailed.__init__}s������
�
����$�t�$roc��VP#ru�rv�rys&rp�__str__�TestFailed.__str__�s���x�x�ro)rvrs)
rirjrkrlrmrxr�rn�__classdictcell__�
__classcell__�r{�
__classdict__s@@rprr{s�����%��%�
�roc�6aa�]tRt^�toRtV3RltRtVtV;t#)�TestFailedWithDetailsrrc�B<�W nW0n\SV`
WW4R7R#))rsN)�errors�failuresrwrx)ryrvr�r�rsr{s&&&&&�rprx�TestFailedWithDetails.__init__�s����� �
�
����h��<ro)r�r�)	rirjrkrlrmrxrnr�r�r�s@@rpr�r��s�����=�=ror�c��]tRt^�tRtRtR#)r	zTest did not run any subtests.rgNrhrgrorpr	r	�s��(roc��]tRt^�tRtRtR#)r
z�Test skipped because it requested a disallowed resource.

This is raised when a test calls requires() for a resource that
has not be enabled.  It is used to distinguish between expected
and unexpected skips.
rgNrhrgrorpr
r
�s��roc�8�V'd\P#R#)z�Decorator to mark a test that is known to be broken in some cases

Any use of this decorator should have a comment identifying the
associated tracker issue.
c��V#rurg��fs&rp�<lambda>�$anticipate_failure.<locals>.<lambda>�s��Qro)�unittest�expectedFailure)�	conditions&rpr*r*�s����'�'�'��roc�h�VfRp\pVPVVVR7pVPV4V#)z�Generic load_tests implementation for simple test packages.

Most packages can implement load_tests using this function as follows:

   def load_tests(*args):
       return load_package_tests(os.path.dirname(__file__), *args)
ztest*)�	start_dir�
top_level_dir�pattern)�
STDLIB_DIR�discover�addTests)�pkg_dir�loader�standard_testsr��top_dir�
package_testss&&&&  rpr+r+�sD�������G��O�O�g�29�,3�$�5�M����M�*��roc�x�\W4pV# \d \P!RT:RT:24hi;i)z?Get an attribute, raising SkipTest if AttributeError is raised.zobject z has no attribute )�getattr�AttributeErrorr��SkipTest)�obj�name�	attributes&& rpr!r!�sB����C�&�	�����O����3�� M�N�N�O�s��*9Fc�
�VsR#ru)�_original_stdout)�stdouts&rprr�s���roc�>�\;'g\P#ru)r��sysr�rgrorprr�s���)�)�s�z�z�)roc��V!V!# \d8p\^8�d'\TPP:RT:24hRp?i\
d�p\^8�dC\TPP:RT:24\RTP:T:24\P!T\P4T!T!uRp?#Rp?ii;i)��: Nzre-run )
�FileNotFoundErrorr�printr{ri�OSError�os�chmod�stat�S_IRWXU)�path�funcrz�errs&&* rp�
_force_runr��s�����T�{������a�<��c�m�m�4�4�c�:�;�
�����a�<��c�m�m�4�4�c�:�;��4�=�=�$�7�8�
����t�|�|�$��T�{����s-��C�2A�C�C�A7C�
C�Cc	��a�\\R4'd\P#^RIpRp\PPR4'dVP
4'dRpEM�\PPR4'Ed^RIo^RIo^p^p!V3RlRSP4pSPPpVP4pV'gSP4hV!4pSPP4pVP!VVSP#V4SP%V4SP#V44p	V	'gSP4h\'VP(V,4'gRpMg\PR8XdS^RIp
V
P-RR	.R
R
R7pVP.P1R4P34pVR
8wdRV:R2pV'g?^RIHp
V
!4pVP;4VP=4VP?4V\n&V'*\n\P# T
P4dRpL�i;i \@d[p\CT4p\ET4^28�dTR,R,pRPG\IT4PJT4pRp?L�Rp?ii;i)�resultN�winz(gui is not available on Windows IoT Corec�<�]tRt^�tRZPP
3RZPP
3RZPP3.tRtR#)�*_is_gui_available.<locals>.USEROBJECTFLAGS�fInherit�	fReserved�dwFlagsrgN)	rirjrkrl�wintypes�BOOL�DWORD�_fields_rn)�ctypess�rp�USEROBJECTFLAGSr��s@���#�V�_�_�%9�%9�:�$�f�o�o�&:�&:�;�"�F�O�O�$9�$9�:�<�Hror�z,gui not available (WSF_VISIBLE flag not set)�darwin�	launchctl�managernameT)�capture_output�checkzutf-8�Aquazmanagername=z' -- can only run in a macOS GUI sessionz*unable to detect macOS launchd job manager)�Tk:N�2Nz [...]zTk unavailable due to {}: {})'�hasattr�_is_gui_availabler��platformr��
startswith�win32_is_iotr��ctypes.wintypes�	Structure�windll�user32�GetProcessWindowStation�WinErrorr�r��GetUserObjectInformationW�byref�sizeof�boolr��
subprocess�runr��decode�strip�CalledProcessError�tkinterr��withdraw�update�destroy�	Exception�str�len�format�typeri�reason)r�r��	UOI_FLAGS�WSF_VISIBLEr��dll�h�uof�needed�resr��rcr�r��root�e�
err_stringr�s                 @rpr�r��sg���� �(�+�+� �'�'�'��
�F�
�|�|���u�%�%�(�*?�*?�*A�*A�;��	���	 �	 ��	'�	'�	���	���	<�f�.�.�	<��m�m�"�"���'�'�)����/�/�#�#�������&�&�(���+�+�A���L�L����M�M�#���L�L�� �	"��
��/�/�#�#��C�K�K�+�-�.�.�C�F��	����	!�	�	R�����m� <�/3�4� �A�B��)�)�*�*�7�3�9�9�;�K��f�$�(�K�>�)P�Q���	G�"��4�D��M�M�O��K�K�M��L�L�N� &���#)�z����#�#�#��1�,�,�	B�A�F�	B���	G��Q��J��:���#�'��_�x�7�
�3�:�:�4��7�;K�;K�;E�G�F��		G�s+�/?I-�=J�-J�J�K+�AK&�&K+c�4�\RJ;'g
V\9#�z�Test whether a resource is enabled.

Known resources are set by regrtest.py.  If not running under regrtest.py,
all resources are assumed enabled unless use_resources has been set.
N)r��resources&rprr(s���D� �=�=�H�
�$=�=roc�@�\fR#\PV4#r�)r�getr�s&rprr0s��������X�&�&roc��\V4'gVf
RV,p\V4hVR9d\'g\R4hVR8Xd,\4'g\\P4hR#R#)z@Raise ResourceDenied if the specified resource is not available.Nz"Use of the %r resource not enabledzNo socket support�gui>�network�urlfetch)rr
r(r�r�)r�rvs&&rprr:sm���x�(�(��;�6��A�C��S�!�!��*�*�3E�3E��0�1�1��5��!2�!4�!4��.�5�5�6�6�"5�roc��^RIpVP4V8wdR#VP4PR^4^,p\	\\VPR444# \dR#i;i)�N�-�.)r��system�release�split�tuple�map�int�
ValueError)�sysnamer��version_txts&  rp�_get_kernel_versionrEsk�������G�#���"�"�$�*�*�3��2�1�5�K���S��k�/�/��4�5�6�6������s�'A,�,A;�:A;c��^RIpRP\\V44pVP	4PR^4^,pVP
4V8Xd/\\\VPR444pWQ8pMRp\P!VVRVRV24# \dRpL.i;i)z�Decorator raising SkipTest if the OS is `sysname` and the version is less
than `min_version`.

For example, @_requires_unix_version('FreeBSD', (7, 2)) raises SkipTest if
the FreeBSD version is less than 7.2.
Nr	rFz	 version � or higher required, not )r��joinrr�rrr
r
rrr��skipIf)r�min_versionr��min_version_txtr�version�skips&&     rp�_requires_unix_versionrOs�����h�h�s�3��4�5�O��"�"�$�*�*�3��2�1�5�K�����G�#�	)��C��[�%6�%6�s�%;�<�=�G��(�D����?�?���)�9�_�-�-F��-�	�����	��D�	�s�!(B/�/
B?�>B?c��\RV4#)z�Decorator raising SkipTest if the OS is FreeBSD and the FreeBSD version is
less than `min_version`.

For example, @requires_freebsd_version(7, 2) raises SkipTest if the FreeBSD
version is less than 7.2.
�FreeBSD�r�rs*rprrjs��"�)�[�9�9roc��\RV4#)z�Decorator raising SkipTest if the OS is Linux and the Linux version is
less than `min_version`.

For example, @requires_linux_version(2, 6, 32) raises SkipTest if the Linux
version is less than 2.6.32.
�Linuxrr s*rprrss��"�'�;�7�7roc�a�V3RlpV#)z�Decorator raising SkipTest if the OS is Mac OS X and the OS X
version if less than min_version.

For example, @requires_mac_ver(10, 5) raises SkipTest if the OS X version
is lesser than 10.5.
c�X<a�\P!S4VV3Rl4pSVnV#)c�r<�\PR8Xd�^RIpVP4^,p\\	\
VP
R444pVS8d>RP\	\S44p\P!RV:RV:24hS!V/VB# \dLi;i)r�Nr	z	Mac OS X r)r�r��mac_verr
rrrrr�r�r�r)rz�kwr�rrrr�rs*,    ��rp�wrapper�4requires_mac_ver.<locals>.decorator.<locals>.wrapper�s�����|�|�x�'��&�.�.�0��3��	>�#�C��[�->�->�s�-C�$D�E�G���,�*-�(�(�3�s�K�3H�*I��&�/�/�.��=�>�>�-�
��$��$�$��"����s�(B(�(B6�5B6)�	functools�wrapsr)r�r(rsf �rp�	decorator�#requires_mac_ver.<locals>.decorator�s-���	����	�	%�
�	%�*����rorg)rr,sj rprr|s����&�roc�la�V3Rlp\S\P4'd
SpRoV!V4#V#)zMark a test as not thread safe. When the test runner is run with
--parallel-threads=N, the test will be run in a single thread.c�$<�RVnSVnV#�T)�__unittest_thread_unsafe__�__unittest_thread_unsafe__why__)�	test_itemr�s&�rpr,� thread_unsafe.<locals>.decorator�s���/3�	�,�4:�	�1��ro�)�
isinstance�types�FunctionType)r�r,r3sf  rpr4r4�s8����
�&�%�,�,�-�-��	�����#�#��roc�$�^RIpV'gRpVP4P4R8Hp\P!W 4# \\3d8p\
P!\4PRY3R7RpRp?LYRp?ii;i)z4Decorator raising SkipTest if running on a buildbot.Nznot suitable for buildbots�buildbotzgetpass.getuser() failed %s.��exc_infoF)�getpass�getuser�lower�KeyErrorr��logging�	getLoggerri�warningr�r)r�r=�
isbuildbotr�s&   rp�skip_if_buildbotrE�sx����-����_�_�&�,�,�.�*�<�
��?�?�:�.�.��
�g������(�#�+�+�,J�C�+�^��
���s�!A�B�-B
�
B�address�memory�ub�thread�functionTc�*�V'g$V'gV'gV'g\R4h\P!R4;'gRp\P!R4;'gRpRV9;'gRV9pRV9;'gRV9pR	V9;'gR
V9p	RV9;'gRV9p
R
V9pT;'dT;'gIT;'dT;'g5T;'dT	;'g!T;'dT
;'g
T;'dT#)z9Returns True if Python is compiled with sanitizer supportz:At least one of address, memory, ub or thread must be True�CFLAGSr5�CONFIG_ARGSz-fsanitize=memoryz--with-memory-sanitizerz-fsanitize=addressz--with-address-sanitizerz-fsanitize=undefinedz#--with-undefined-behavior-sanitizerz-fsanitize=threadz--with-thread-sanitizerz-fsanitize=function)r�	sysconfig�get_config_var)rFrGrHrIrJ�cflags�config_args�memory_sanitizer�address_sanitizer�ub_sanitizer�thread_sanitizer�function_sanitizers$$$$$       rpr0r0�sJ��
�v��v��U�V�V��
%�
%�h�
/�
5�
5�2�F��*�*�=�9�?�?�R�K��v�%�	1�	1�!�[�0��
	��&�	2�	2�"�k�1��
	�&�(�	=�	=�-��<��
	�v�%�	1�	1�!�[�0��
	��'��
�	$�	$�$�	*�	*�	�	&�	&�&�	*�	*�	�	�	��	*�	*�
�	$�	$�$�	*�	*�
�	(�	(�(�roc�\�V'gRp\WW4R7p\P!WP4#)z>Decorator raising SkipTest if running with a sanitizer active.z"not working with sanitizers active)rFrGrHrI)r0r�r)r�rFrGrHrIrs&$$$$ rpr1r1�s%���5���7�b�P�D��?�?�4�(�(ro)rFc�^�RF&pW 9dW;;,RV2,
uu&K"WV&K(	R#)�ASAN_OPTIONS�:N)rY�MSAN_OPTIONS�
UBSAN_OPTIONS�TSAN_OPTIONSrg)�env�optionr�s&& rp�set_sanitizer_env_varr`�s+��Q���;��I�1�V�H��%�I���I�	Rroc�Fa�\P!S4V3Rl4pV#)z5Skip the test on TLS certificate validation failures.c�<�S!V/VBR# \d-pR\T49d\P!R4hhRp?ii;i)�CERTIFICATE_VERIFY_FAILEDz.system does not contain necessary certificatesN)r�r�r�r�)rz�kwargsr�r�s*, �rp�dec�&system_must_validate_cert.<locals>.dec�sO���	�
�t��v����	�*�c�!�f�4��'�'�)A�B�B���		�s�
�A�'?�A�r*r+)r�resf rp�system_must_validate_certrh�s%����_�_�Q������Jro��double�IEEEztest requires IEEE 754 doublesc�^�^RIp\P!W4# \dRpL%i;i�rN)�zlib�ImportErrorr��
skipUnless)r�rns& rpr#r#
�3�������t�,�,����������
,�,c�^�^RIp\P!W4# \dRpL%i;irm)�gzipror�rp)r�rts& rprrrqrrc�^�^RIp\P!W4# \dRpL%i;irm)�bz2ror�rp)r�rvs& rprrs3�������s�+�+�������rrc�^�^RIp\P!W4# \dRpL%i;irm)�lzmaror�rp)r�rxs& rprr"rqrrc�b�^RIHp\P!W4# \dRpL%i;i)r)�zstdN)�compressionrzror�rp)r�rzs& rprr)s3���$����t�,�,�������s��
.�.c��^RIpTP	R4'*# \d\P!R4hi;i)rN�_testinternalcapi required�code_debug_ranges)�	_testcapiror�r��
config_get�rs rp�has_no_debug_rangesr�0sD��>���#�#�$7�8�8�8���>���� <�=�=�>�s��">c���\4p\P!W4# \Pd4pRpTP'dTP^,MTpRp?LYRp?ii;i�TN)r�r�r�rzr)r�rr�s&  rp�requires_debug_rangesr�7sT��1�"�$���?�?�4�(�(�����1����f�f�f������&���1�s�
"�A*�)A%�%A*�win32�java�androidc�Z�\P!\PR8HRVR24#)r�zAndroid blocks z
 with SELinux)r�rr�r�)r�s&rp�skip_android_selinuxr�Gs*���?�?����	�!�_�T�F�-�#H��roz/system/bin/shz/bin/sh�
emscripten�wasic�8�\P!\R4#)zExhausts stack on Emscripten)r�rr9rgrorp�skip_emscripten_stack_overflowr�Ys���?�?�=�*H�I�Iroc�8�\P!\R4#)zExhausts stack on WASI)r�rr:rgrorp�skip_wasi_stack_overflowr�\s���?�?�7�$<�=�=ror��forkc�8�\P!\R4#)zrequires working os.fork())r�rpr$rgrorpr%r%ms�����/�1M�N�Nroc�8�\P!\R4#)z3Used for subprocess, os.spawn calls, fd inheritancezrequires subprocess support)r�rpr&rgrorpr'r'|s�����5�7T�U�Uro�modulec��RpV'd%\'g\P!V4hR#\P!\V4#)z{Skip tests or modules that require working sockets

Can be used as a function/class decorator or to skip an entire module.
zrequires socket supportN)r(r�r�rp)r�rvs$ rpr)r)�s>��
$�C�
�!�!��#�#�C�(�(�"��"�"�#5�s�;�;roz%4Yzhttp://www.pythontest.net�datac���\PR8wdR#^RIpRpVR2pVP4wrE\	VPVR44\	V4\	RV,4R#)zKAssure user that loud errors generated by macOS libc's malloc are
expected.r�Nz NOTICE z� may generate "malloc can't allocate region"
warnings on macOS systems. This behavior is known. Do not
report a bug unless tests are also failing.
See https://github.com/python/cpython/issues/85100r)r�r��shutil�get_terminal_sizer��center)�	test_namer�rv�detail�padding�_s&     rp�darwin_malloc_err_warningr��sf���|�|�x����
�C���C�C�F�
�)�)�+�J�G�	�#�*�*�W�c�
"�#�	�&�M�	�#��-�roc�t�\PPV4'dV#Ve \PPW4p\.\
P,pVFKp\PPW04p\PP
V4'gKIVu#	V#)aGTry to find a file on sys.path or in the test directory.  If it is not
found the argument passed to the function is returned (this does not
necessarily signal failure; could still be the legitimate path).

Setting *subdir* indicates a relative path to use to find the file
rather than looking directly in the path directories.
)r�r��isabsr�
TEST_HOME_DIRr��exists)�filename�subdirr��dn�fns&&   rprErE�s~��
�w�w�}�}�X�����
���7�7�<�<��1���?�S�X�X�%�D���
�W�W�\�\�"�
'��
�7�7�>�>�"���b�y���Oroc��\VP44pVUu.uFpRV,NK	ppRPV4pRV,#uupi)z%Like repr(dict), but in sorted order.z%r: %rz, z{%s})�sorted�itemsr)�dictr��pair�	reprpairs�
withcommass&    rprKrK�sJ���4�:�:�<� �E�-2�3�U�T��D���U�I�3����9�%�J��J����4s�Ac��V^8�dQhR\R\\\3,R,R\\\3,/#)r��code�extra_namesN�return)r�r��object)r�s"rp�__annotate__r��s9����3��T�#�v�+�%6��%=���c�SY�k�IZ�roc�|�/pV'dVPV4\\P!V4V4V#)zHRun a piece of code after dedenting it, and return its global namespace.)r��exec�textwrap�dedent)r�r��nss&& rp�run_coder��s.��	�B��
�	�	�+�������	��#�
�Iro�lineno�offsetc��VP\V4;_uu_4p\VRR4RRR4XPpVP	VP
4VeVP
VP
V4VP	VP4VeVP
VPV4R#R# +'giL�;i)z
<test string>r�N)�assertRaisesRegex�SyntaxError�compile�	exception�assertIsNotNoner��assertEqualr�)�testcase�	statement�errtextr�r��cmr�s&&&$$  rprr�s���	�	#�	#�K��	9�	9�R��	�?�F�3�
:�
�,�,�C����S�Z�Z�(�
�����S�Z�Z��0����S�Z�Z�(�
�����S�Z�Z��0��
:�	9�s�B;�;C	c�aaa
�^RIp^RIp^RIHp^RIpSP
RR4o
VPPV4^,PR4R,p\PP\V4pVV
V3Rlp\PPV4'dV!V4p	V	eV	#V!V4\R4\ 'd\#RV,\%4R7VP&P)4p
V'dV
P*P-R4V
P/V\0R
7p	V'd3V	P2P5R4R	8XdVP7V	R7p	\/VR
4;_uu_4pV	P94pV'd$VP;V4V	P94pK+RRR4V	P=4V!V4p	V	eV	#\?RV,4h \
dRpELi;i +'giLT;i T	P=4i;i)rN)�unlinkr��/c�<�\V.SO5/SBpSfV#S!V4'dVP^4V#VP4R#ru)�open�seek�close)r�r�rzr�r's& ���rp�check_valid_file�*open_urlresource.<locals>.check_valid_file�sC�����!�d�!�b�!���=��H�
�1�X�X�
�F�F�1�I��H�	���	rorz	fetching %s ...��filert)�timeoutzContent-Encoding)�fileobj�wbzinvalid resource %r���)zAccept-Encodingrt) �urllib.request�urllib.parse�	os_helperr�rtro�pop�parse�urlparserr�r�r�
TEST_DATA_DIRr�rrr�r�request�build_opener�
addheaders�appendr�rT�headersr�GzipFile�read�writer�r)�urlrzr'�urllibr�rtr�r�r�r��opener�out�sr�s&jl          @rprArA�s����'�!���
�F�F�7�D�!�E��|�|�$�$�S�)�!�,�2�2�3�7��;�H�	�����m�X�	.�B��
�w�w�~�~�b����R� ���=��H��r�
�
�Z���w�
�!�C�'�.A�.C�D�
�^�^�
(�
(�
*�F����� � �!<�=����C�!1��2�A���	�	�
�
�0�1�V�;��M�M�!�M�$���
�"�d�^�^�s�����A���	�	�!���F�F�H����	
���	����A��}���
�*�R�/�
0�0��_������H�^��	
���	�s;�H�
H:�H'�7#H'�H:�
H$�#H$�'H7	�2H:�:Ic#��"�^RIp\\V4p\\WP	44\\V4x�\\W4R# \\Y4i;i5i)z�Return a context manager used by captured_stdout/stdin/stderr
that temporarily replaces the sys stream *stream_name* with a StringIO.N)�ior�r��setattr�StringIO)�stream_namer��orig_stdouts&  rprr%sL�����#�{�+�K��C��k�k�m�,�/��c�;�'�'���[�.����[�.�s�3A/�A�A/�A,�,A/c��\R4#)z�Capture the output of sys.stdout:

with captured_stdout() as stdout:
    print("hello")
self.assertEqual(stdout.getvalue(), "hello\n")
r��rrgrorpr
r
1����8�$�$roc��\R4#)z�Capture the output of sys.stderr:

with captured_stderr() as stderr:
    print("hello", file=sys.stderr)
self.assertEqual(stderr.getvalue(), "hello\n")
�stderrr�rgrorprr:r�roc��\R4#)z�Capture the input to sys.stdin:

with captured_stdin() as stdin:
    stdin.write('hello\n')
    stdin.seek(0)
    # call test code that consumes from sys.stdin
    captured = input()
self.assertEqual(captured, "hello")
�stdinr�rgrorprrCs���7�#�#roc�n�^RIpVP4VP4VP4R#)a�Force as many objects as possible to be collected.

In non-CPython implementations of Python, this is needed because timely
deallocation is not guaranteed by the garbage collector.  (Even in CPython
this can be the case in case of reference cycles.)  This means that __del__
methods may be called later than expected and weakrefs may remain alive for
longer than expected.  This function tries its best to force all garbage
objects to disappear.
N)�gc�collect)r�s rp�
gc_collectr�Ps"����J�J�L��J�J�L��J�J�Lroc#��"�^RIpVP4pVP4Rx�V'dVP4R#R# T'dTP4ii;i5irm)r��	isenabled�disable�enable)r��have_gcs  rp�
disable_gcr_sF���
��l�l�n�G��J�J�L��
���I�I�K���7��I�I�K��s�%A&�A�A&�A#�#A&c'�"�^RIpVP4pVP!V!Rx�VP!V!R# TP!T!i;i5irm)r��
get_threshold�
set_threshold)rzr��
old_thresholds*  rp�gc_thresholdrjsH���
��$�$�&�M����d��)�
�
���-�(�����-�(�s�%A�>�A�A�Ac��\P!R4;'gRpRpVP4FpVPR4'gKTpK 	\P!R4R8XdRpW9#RpW9#)z,Find if Python was built with optimizations.�	PY_CFLAGSr5z-O�CC�gcc)r5�-O0z-Og)r5r)rNrOrr�)rP�	final_opt�opt�non_optss    rp�python_is_optimizedrtsx��
�
%�
%�k�
2�
8�
8�b�F��I��|�|�~���>�>�$����I������%��.�%���$�$����$�$roc�a�\P!R4;'gRo.ROp\P!R4pV'dVPV4\;QJdV3RlV4F'gKR#	R#!V3RlV44#)�PY_CFLAGS_NODISTr5�PGO_PROF_USE_FLAGc3�,<"�TF	qS9x�K	R#5irurg)�.0r_�
cflags_nodists& �rp�	<genexpr>�#check_cflags_pgo.<locals>.<genexpr>�s����A�[�6��&�[�s�TF)z
-fprofile-usez-fprofile-instr-usez	-prof-use)rNrOr��any)�pgo_optionsrrs  @rp�check_cflags_pgor�st����,�,�-?�@�F�F�B�M��K�"�0�0�1D�E������,�-��3�A�[�A�3�3�A�3�A�3�A�[�A�A�Aroc�h�\'dR#\P!R4;'gRpRV9#)FrMr5z
--enable-bolt)r:rNrO)rQs rp�check_bolt_optimizedr�s/���w���*�*�=�9�?�?�R�K��k�)�)ro�Py_GIL_DISABLEDc�8�\P!\V4#)z8Decorator for skipping tests on the free-threaded build.)r�rrr~s&rprr�s���?�?�?�C�0�0roc�@�\'d\P#R#)z+Expect test failure if the GIL is disabled.c��V#rurg)�	test_cases&rpr��2expected_failure_if_gil_disabled.<locals>.<lambda>�s��Yro)rr�r�rgrorp� expected_failure_if_gil_disabledr#�s�����'�'�'�&�&ro�PHBBInP�nP�0n�nc�X�^RIpVP\V,\,4#rm)�struct�calcsize�_header�_align��fmtr)s& rp�calcobjsizer/�s����?�?�7�S�=�6�1�2�2roc�X�^RIpVP\V,\,4#rm)r)r*�_vheaderr,r-s& rp�calcvobjsizer2�s����?�?�8�c�>�F�2�3�3roc���^RIp\P
!T4p\
T4\8XdTP\,'g;\
T4\8wd9\
T4P\,'dY#P,
pR\
T4YB3,pTPYBT4R# \d\P!R4hi;i)rNr}z&wrong size for %s: got %d, expected %d)�_testinternalcapiror�r�r��	getsizeofr��	__flags__�_TPFLAGS_HEAPTYPE�_TPFLAGS_HAVE_GC�SIZEOF_PYGC_HEADr�)�test�o�sizer4r�rvs&&&   rp�check_sizeofr=�s���>� ��]�]�1�
�F�	
�a��D��q�{�{�->�>�>�
�q�'�T�/��Q�� 1� 1�4D� D� D��2�2�2��
2��A�w��%�&�C����V�3�'���>���� <�=�=�>�s�C�"C#�_do_cleanupsc��aaaa�Ro\S\4'd3SPRR4P4o\	S4^8XdRo\S4oVVVV3RlpV#)z5Run multiple subtests with different parameters.
    F�,� Tc�<a�\S\4'd\R4h\P!S4VVVVV3Rl4pV#)z1subTests() can only decorate methods, not classesc�<�SFnpS	'dV3p\\SV44pVP!R/VB;_uu_4S!V.VO5/VBVBRRR4S'gK^VP4Kp	R# +'giL0;i)Nrg)r��zip�subTest�
doCleanups)
ryrzrd�values�subtest_kwargsr>�	arg_names�
arg_valuesr��single_params
"*,  �����rpr(�,subTests.<locals>.decorator.<locals>.wrapper�sn���$���$�Y�F�!%�c�)�V�&<�!=���\�\�3�N�3�3���A��A��A�.�A�4��<��O�O�%�%�4�3�s�A8�8B)r6r��	TypeErrorr*r+)r�r(r>rIrJrKsf ����rpr,�subTests.<locals>.decorator�sC����d�D�!�!��O�P�P�	����	�	&�	&�
�	&��ro)r6r��replacerr�r
)rIrJr>r,rKsbbd @rp�subTestsrP�s_����L��)�S�!�!��%�%�c�#�.�4�4�6�	��y�>�Q���L��z�"�J�
�
��roc'�"�^RIp\W 4pVPV4pVFpVPW54M#	RV9d\P
!RV24hRx�V'dV'dVPXV4R#R#R# TPdK{i;i \dh\d$R;r$RT9d\P
!R4hL}i;i T'dT'dTPXT4iii;i5i)rNr5zno locales z
no locales)�localer��	setlocalerr�r�r�r�)�catstr�localesrR�category�orig_locale�locs&*    rprCrC�s���A���6�*���&�&�x�0���C�
�� � ��/����� ��'�'�+�g�Y�(?�@�@�!�4�
��k����X�{�3�"�6���<�<�
��
����
��2�#�#��
�W���#�#�L�1�1��2��&�k����X�{�3�"�6�ss�D
� B%�D
�B
�%D
�!C!�%D
�5D
�
B"�D
�!B"�"D
�%C�:!C�D
�C�D
�!D�2D�D
c�aa�VV3RlpV#)c�L<a�\P!S4VVV3Rl4pV#)c�<�RS
9p^RIp\VS4pVPV4pS
FFpVPVR7;_uu_4VPWW4RpS	!V.VO5/VBRRR4KH	VPWV4T'd2TPRR7;_uu_4S	!T.TO5/TBRRR4R#R# TPdTPRT:24L�i;i +'giK�;i TPYV4i;i \dh\dL�i;i +'giR#;i)r5N)rRFz
no locale )rRr�rSrEr�skipTestr�r�)ryrzrd�dry_runrRrVrWrXrTr�rUs"*,     ���rpr(�/run_with_locales.<locals>.deco.<locals>.wrappers:����G�m�G�
<��"�6�6�2��$�.�.�x�8��<�&��!�\�\��\�5�5�<� &� 0� 0�� ?�+0�� $�T� ;�D� ;�F� ;�6�5� '��$�$�X�;���\�\��\�.�.���/��/��/�/�.���$*�<�<�D� $�
�
�
�3�'�.B� C�D��6�5�5���$�$�X�;��%"�
���
��
��&/�.�.�sj�!D�D�	C.�C�C.�*D�)
D4�&C+	�(C.�*C+	�+C.�.C?�9	D�D�D1�-D1�0D1�4E	rg)r�r(rTrUsf ��rp�deco�run_with_locales.<locals>.decos%���	����	�	0�
�	0�<�rorg)rTrUr_sfj rp�run_with_localesras��� �B�Kroc�a�V3RlpV#)c�\<a�VV3RlpSPVnSPVnV#)c�<�\PpR\
P9d\
PR,pMRpS\
PR&T!4S!T/TBTf\
PRMT\
PR&\P!4# \d\P!R4hi;i Tf\
PRMT\
PR&\P!4i;i)ztzset required�TZN)�time�tzsetr�r�r�r��environ)rz�kwdsrg�orig_tzr��tzs*,  ��rp�inner�-run_with_tz.<locals>.decorator.<locals>.inner<s����
:��
�
���r�z�z�!��*�*�T�*����!�B�J�J�t���G�
��T�*�T�*��?��
�
�4�(�'.�B�J�J�t�$��
�
���#"�
:��'�'�(8�9�9�
:���?��
�
�4�(�'.�B�J�J�t�$��
�
��s�B#�C�#"C�AD)rirm)r�rlrksf �rpr,�run_with_tz.<locals>.decorator;s%���	�,���������
��rorg)rkr,sf rprLrL:s����4�roc�0�V^8�dQhR\R\/#)r��limitr�)r�r)r�s"rpr�r�ds��>�>�3�>�3�>roc	�r�RRR\R\RR\,/p\P!RV\P\P
,4pVf\
RV:24h\\VP^44WP^4P4,,4#)�kri�m�g�tz(\d+(?:\.\d+)?) (K|M|G|T)b?$zInvalid memory limit: )�_1M�_1G�re�match�
IGNORECASE�VERBOSErr�float�groupr?)rp�sizesrss&  rp�_parse_memlimitrds����T��S��S��T�#�X�	
�E�	���0�%�������+�	-�A��y��1�%��;�<�<��u�Q�W�W�Q�Z� �5�����)9�)9�);�#<�<�=�=roc�(�V^8�dQhR\RR/#)r�rpr�N)r�)r�s"rpr�r�qs��	�	��	��	roc��\V4pV\^,
8d\RV:R24hVs\	V\
4pVsR#)�z
Memory limit z too low to be usefulN)r�_2Gr�real_max_memuse�min�MAX_Py_ssize_tr)rp�memlimits& rprIrIqsE���u�%�H��#��'���=��	�1F�G�H�H��O��8�^�,�H��Jroc�6a�]tRtRtoRtRtRtRtRtVt	R#)�_MemoryWatchdogi}zXAn object which periodically watches the process' memory consumption
and prints it out.
c�h�RP\P!4R7VnRVnR#)z/proc/{pid}/statm)�pidFN)r�r��getpid�procfile�startedrs&rprx�_MemoryWatchdog.__init__�s$��+�2�2�r�y�y�{�2�C��
���roc���^RIp\VPR4p^RIpT;_uu_4\R4pTP\PT.TTPR7TnRRR4RTnR# \dUp\P
!\4PRY3R7\PP4Rp?R#Rp?ii;i +'giL{;i)rN�rz!/proc not available for stats: %sr;zmemory_watchdog.py)r�r�T)�warningsr�r�r�rArBrirCr�r��flushr�rE�Popen�
executable�DEVNULL�mem_watchdogr�)ryr�r�r�r��watchdog_scripts&     rp�start�_MemoryWatchdog.start�s����	��T�]�]�C�(�A�	�
�Q�&�';�<�O� *� 0� 0�#�.�.�/�1R�78�8B�8J�8J�!1�!L�D���
�����	����h�'�/�/�0S�UV�/�c��J�J������	���Q�s#�A:�?C�:C�A	C�C�C,	c��VP'd7VPP4VPP4R#R#ru)r�r��	terminate�waitrs&rp�stop�_MemoryWatchdog.stop�s4���<�<�<����'�'�)����"�"�$�ro)r�r�r�N)
rirjrkrlrmrxr�r�rnr��r�s@rpr�r�}s�������"%�%ror�c�aaa�VVV3RlpV#)aPDecorator for bigmem tests.

'size' is a requested size for the test (in arbitrary, test-interpreted
units.) 'memuse' is the number of bytes per unit for the test, or a good
estimate of it. For example, a test that needs two byte buffers, of 4 GiB
each, could be decorated with @bigmemtest(size=_4G, memuse=2).

The 'size' argument is normally passed to the decorated test method as an
extra argument. If 'dry_run' is true, the value passed to the test method
may be less than the requested value. If 'dry_run' is false, it means the
test doesn't support dummy runs when -M is not specified.
c�8<aa�VVV3RloSSnSSnS#)c�B<�SPpSPp\'gRpMTp\'g	S'g<\W2,8d+\P!RW,R,,4h\'dZ\
'dN\
4\
RPW,R,R74\4pVP4MRpS!W4V'dVP4## T'dTP4ii;i)i�'not enough memory: %.1fG minimum neededz* ... expected peak memory use: {peak:.1f}G)�peakN�@)r<�memuser�r�r�rr�r�r�r�r�)ryr<r��maxsize�watchdogr]r�r(s&    ���rpr(�.bigmemtest.<locals>.decorator.<locals>.wrapper�s�����<�<�D��^�^�F�"�?����� ���#�g�&6�6��'�'�=��}�	�2�4�5�5���7�7����B��v�4�=�I�#>�v�?�A�*�,����� ���
$���'���M�M�O���8��M�M�O��s�"D�D)r<r�)r�r(r]r�r<sf@���rpr,�bigmemtest.<locals>.decorator�s���	$�:�������rorg)r<r�r]r,sfff rprr�s��� �B�roc�a�V3RlpV#)z0Decorator for tests that fill the address space.c��<�\\8dU\R8�d"\R8�d\P!R4h\P!R\R,,4hS!V4#)r�z-not enough memory: try a 32-bit build insteadr�l�����r�)rr�r�r�)ryr�s&�rpr(�!bigaddrspacetest.<locals>.wrapper�sb�����&���*�z�U�/B��'�'�C�E�E��'�'�=�%��3�5�6�6��T�7�Nrorg)r�r(sf rprr�s���
��Nroc��V#rurg)r�s&rp�_idr��s���Jroc���VR8Xd5\4'g%\P!\P4#\	V4'd\
#\P!RP
V44#)rzresource {0!r} is not enabled)r�r�rr�rr�r�r�s&rprr�sT���5��!2�!4�!4��}�}�.�5�5�6�6��8�$�$��
��}�}�<�C�C�H�M�N�Nroc�&�\RR7!V4#)z1
Decorator for tests only applicable on CPython.
T)�cpython)�impl_detail�r:s&rpr r �s���t�$�T�*�*roc�
�\R/VB'd\#VfT\V4wr#V'dRpMRp\VP	44pVPRP
V44p\P!V4#)Nz*implementation detail not available on {0}z%implementation detail specific to {0}z or rg)	r<r��
_parse_guardsr��keysr�rr�r)rv�guards�
guardnames�defaults&,  rpr�r��sk���"�6�"�"��
�
�{�+�F�3��
��>�C�9�C��J�O�O�-�.�
��j�j����Z�0�1���=�=���roc���V'gRR/R3#\VP44^,p\VP44V.\V4,8XgQhW'*3#)r�TF)�listrGr�)r��is_trues& rpr�r��sY����D�!�5�)�)��6�=�=�?�#�A�&�G���
�
�� �W�I��F��$;�;�;�;��K� � roc�p�\V4wrVP\PPV4#)aThis function returns True or False depending on the host platform.
Examples:
   if check_impl_detail():               # only on CPython (default)
   if check_impl_detail(jython=True):    # only on Jython
   if check_impl_detail(cpython=False):  # everywhere except on CPython
)r�rr��implementationr�)r�r�s, rpr<r<s-��$�F�+�O�F��:�:�c�(�(�-�-�w�7�7roc�aaa�So\\R4'd \P!S4V3Rl4oSpR\P9d;\P
Po\P!S4VV3Rl4pV#)zEDecorator to temporarily turn off tracing for the duration of a test.�gettracec��<�\P!4p\P!R4S!V/VB\P!V4# \P!T4i;iru)r�r��settrace)rzrd�original_tracer�s*, �rp�
trace_wrapper�!no_tracing.<locals>.trace_wrappersE��� �\�\�^�N�
-����T�"��T�,�V�,����^�,�����^�,�s�A�A$ztest.covc�<�\PPS4p\PPS^4S!V/VB\PPSV4# \PPST4i;i)r)r��
monitoring�
get_events�
set_events)rzrd�original_events�covr�s*, ��rp�coverage_wrapper�$no_tracing.<locals>.coverage_wrapper"sg���!�n�n�7�7��<�O�
@����)�)�#�q�1�$�d�5�f�5����)�)�#��?�����)�)�#��?�s�'A*�*"B)r�r�r*r+�modulesr��COVERAGE_ID)r�r�r�r�sf @@rp�
no_tracingr�sx����M��s�J���	����	�	-�
�	-�%���S�[�[� ��n�n�(�(��	����	�	@�
�	@��roc�a�V3RlpV#)z�Skip rerunning for a particular test.

WARNING: Use this decorator with care; skipping rerunning makes it
impossible to find reference leaks. Provide a clear reason for skipping the
test using the 'reason' parameter.
c�Z<aa�\S\4'dQS4hRoVVV3RlpV#)Fc�N<�S'dVPS4S!V4RoR#r�)r\)ry�_has_runr�r�s&���rpr(�'no_rerun.<locals>.deco.<locals>.wrapper8s�����
�
�f�%���J��Hro)r6r�)r�r(r�r�sf @�rpr_�no_rerun.<locals>.deco5s,����d�D�)�)�/�4�/�)���	��rorg)r�r_sf rp�no_rerunr�.s���	��Kroc�*�\\V44#)z�Decorator for tests which involve reference counting.

To start, the decorator does not run the test if is not run by CPython.
After that, any trace function is unset during the test to prevent
unexpected refcounts caused by the trace function.

)r�r r�s&rp�
refcount_testr�Bs���l�4�(�)�)roc�r�^RIp^RIpV# \d \P!R4!T4u#i;i)rNz,needs _testcapi and _testlimitedcapi modules)r�_testlimitedcapiror�r)r:rr�s&  rpr2r2Ms=��S����K���S��}�}�K�L�T�R�R�S�s��'6�6�TEST_MODULES�yesc�X�\P!\PR4!V4#�zrequires specialization)r�rp�_opcode�ENABLE_SPECIALIZATIONr�s&rpr3r3Zs,������%�%�'@�B�BF�H�Hroc�X�\P!\PR4!V4#r�)r�rpr��ENABLE_SPECIALIZATION_FTr�s&rp�requires_specialization_ftr�_s,������(�(�*C�E�EI�K�Kroc�X�V^8�dQhR\PR\P/#)r�r�r�)r7r8)r�s"rpr�r�ds&��
�
�%�$�$�
��);�);�
roc�D�VPP4VnV#)zVClear all specializations, local instrumentation, and JIT code for the given function.)�__code__rOr�s&rprdrdds�����#�#�%�A�J��Hro�GITHUB_ACTIONSc��R#)z,Just used to check if docstrings are enabledNrgrgrorp�_check_docstringsr�qs�ro�WITH_DOC_STRINGSztest requires docstringsc���\Pe\PP4\Pe!\PP4R#R#ru)r�r�r�r�rgrorp�flush_std_streamsr��s;��
�z�z���
�
����
�z�z���
�
����roc��\4\PpVP4Fp\	RV2VR7K	VP4R#)zWarning -- r�N)r��
print_warning�orig_stderr�
splitlinesr�r�)rv�stream�lines&  rpr�r��s>����
�
&�
&�F���� ��
��D�6�"��0�!�
�L�L�Nroc�&�\\R4'd\\R4'gR#\'gR#\P!R\P4wrT^8XdR#\
RT24RsKD \
dR#i;i)z�Use this function at the end of test_main() whenever sub-processes
are started.  This will help ensure that no extra children (zombies)
stick around to hog resources and create problems when looking
for refleaks.
�waitpid�WNOHANGNTz%reap_children() reaped child process r�)r�r�r&r�r�r�r��environment_altered)r��statuss  rprBrB�s��
�B�	�"�"�w�r�9�'=�'=��
#�
#���	��*�*�R����4�K�C��!�8���=�c�U�C�D�"����	��	�s�'B�B�Bc#�H"�\W4'd+\W4p\WV4Vx�\WV4R#\WV4Rx�\W4'd\W4R#R# \YT4i;i \Y4'd
\Y4ii;i5i)a�Temporary swap out an attribute with a new object.

Usage:
    with swap_attr(obj, "attr", 5):
        ...

    This will set obj.attr to 5 for the duration of the with: block,
    restoring the old value at the end of the block. If `attr` doesn't
    exist on `obj`, it will be created and then deleted at the end of the
    block.

    The old value (or None if it doesn't exist) will be assigned to the
    target of the "as" clause, if there is one.
N)r�r�r��delattr)r��attr�new_val�real_vals&&& rprGrG�s���� �s����3�%����7�#�	)��N��C�x�(���7�#�	#���s�!�!���"�"��

�C�x�(���s�!�!���"�"�s3�)B"�A/�B"�B� B"�/A=�=B"�B�B"c#�"�W9dW,pW V&Vx�W0V&R#W V&Rx�W9dWR#R# Y0T&i;i Y9dYii;i5i)a�Temporary swap out an item with a new object.

Usage:
    with swap_item(obj, "item", 5):
        ...

    This will set obj["item"] to 5 for the duration of the with: block,
    restoring the old value at the end of the block. If `item` doesn't
    exist on `obj`, it will be created and then deleted at the end of the
    block.

    The old value (or None if it doesn't exist) will be assigned to the
    target of the "as" clause, if there is one.
Nrg)r��itemr�rs&&& rprDrD�se��� �{��9���D�	�	!��N� ��I��D�	�	���{��I���
!��I���{��I��s+�A�5�
A�>�A�;�A�A	�	Ac�*�^RIpVP4#)zjReturn a list of command-line arguments reproducing the current
settings in sys.flags and sys.warnoptions.N)r��_args_from_interpreter_flags�r�s rp�args_from_interpreter_flagsr�s����2�2�4�4roc�*�^RIpVP4#)zcReturn a list of command-line arguments reproducing the current
optimization settings in sys.flags.N)r��"_optim_args_from_interpreter_flagsrs rp�!optim_args_from_interpreter_flagsr	s����8�8�:�:roc�0a�]tRtRtoRtRtRtRtVtR#)rHic��RpVF9pW$,pVPV4pVPWFV4'dK6RpV#	V#)a
Try to match a single dict with the supplied arguments.

Keys whose values are strings and which are in self._partial_matches
will be checked for partial (i.e. substring) matches. You can extend
this scheme to (for example) do regular expression matching, etc.
TF)r�match_value)ry�drdr�rr�v�dvs&&,    rp�matches�Matcher.matchessN�����A��	�A����q��B��#�#�A�1�-�-�����
�
��
roc��\V4\V48wdRpV#\V4\JgWP9dW28HpV#VPV4^8�pV#)zD
Try to match a single stored value (dv) with a supplied value (v).
F)r�r��_partial_matches�find)ryrrrrr�s&&&& rpr�Matcher.match_values_����7�d�2�h���F�
�
�	�"�X�S�
 �A�-B�-B�$B��g�F��
��W�W�Q�Z�1�_�F��
rorgN)rv�message)	rirjrkrlrrrrnr�r�s@rprHrHs����)���"
�
roc��^RIp\fT\PR8Xd=VP	4R8Xd(\
P!4PR8XdRsMRs\'d\P!R4!V4#T#)a
Skip decorator for tests that use buggy strptime/strftime

If the UCRT bugs are present time.localtime().tm_zone will be
an empty string, otherwise we assume the UCRT bugs are fixed

See bpo-37552 [Windows] strptime/strftime return invalid
results with UCRT version 17763.615
Nr��cp65001r5TFz!buggy MSVC UCRT strptime/strftime)
rR�_buggy_ucrtr�r��getencodingrf�	localtime�tm_zoner�r)r:rRs& rpr.r.*sh������<�<�7�"��"�"�$�	�1���� �(�(�B�.��K��K�GR�{�8�=�=�<�=�d�C�\�X\�\roc�a�]tRtRtoRtRRlt]PR8XdRtMRtRt	R	t
R
tR^/RltR^/R
lt
RtVtR#)�
PythonSymlinki?z3Creates a symlink for the current Python executableNc��^RIHpT;'g \PP	V4Vn.Vn\PP\P4Vn
.VnRVnVP4R#)r�)�TESTFNN)r�r r�r��abspath�link�_linked�realpathr�r��real�
_also_link�_env�_platform_specific)ryr"r s&& rprx�PythonSymlink.__init__As\��%��3�3�B�G�G�O�O�F�3��	�����G�G�$�$�S�^�^�4��	������	����!ror�c
��^RIp^RIp\PP	VP
4'dF\PP
VP
4'gVP^4VnVP\P4p\PPV4p\PPVP4pVPPV\PPV\PPV4434VP\PPVP!V4R44F[pVPPV\PPV\PPV4434K]	\P"Uu/uF'qwP%4\P&!V4bK)	upVn\PPVP
4VP(R&\*P,!4'd\.VP(R&R#R#uupi)rNzvcruntime*.dll�
PYTHONHOME�
PYTHONPATH)�glob�_winapir�r��lexistsr%r��GetModuleFileNamer��	dllhandle�dirnamer"r&r�r�basename�escaperh�upper�getenvr'rN�is_python_buildr�)ryr-r.r��src_dir�dest_dir�runtimerrs&       rpr(� PythonSymlink._platform_specificNs������w�w���t�y�y�)�)�"�'�'�.�.����2K�2K�$�5�5�a�8��	��+�+�C�M�M�:�C��g�g�o�o�c�*�G��w�w���t�y�y�1�H��O�O�"�"�������X�r�w�w�'7�'7��'<�=�$�
� �9�9�R�W�W�\�\�$�+�+�g�2F�HX�%Y�Z�����&�&���G�G�L�L��2�7�7�+;�+;�G�+D�E�(��[�;=�*�*�E�*�Q����B�I�I�a�L�0�*�E�D�I�&(�g�g�o�o�d�i�i�&@�D�I�I�l�#��(�(�*�*�*4��	�	�,�'�+��Fs�+-Jc��R#rurgrs&rpr(r;i���roc�2�\P!VPVP4VPPVP4VPF6wr\P!W4VPPV4K8	V#ru)r��symlinkr%r"r#r�r&)ryr%r"s&  rp�	__enter__�PythonSymlink.__enter__lsc��
�
�
�4�9�9�d�i�i�(������D�I�I�&��/�/�J�D��J�J�t�"��L�L����%�*��roc���VPFp\P!V4K	R# \d8p\'d!\RP
YE44Rp?KWRp?K]Rp?ii;i)zfailed to clean up {}: {}N)r#r��remove�IOErrorrr�r�)ry�exc_type�	exc_value�exc_tbr"�exs&&&&  rp�__exit__�PythonSymlink.__exit__tsV���L�L�D�
H��	�	�$��!���
H��7��5�<�<�T�F�G�G���
H�s�-�A/�&A*�*A/c��^RIpV.VOpVPWePVPVR7pVP4pVPV8wdw\
'dG\
\V^,44\
\V^,4\PR7\RPVP44hV#)rN)r�r�r^r�z'unexpected return code: {0} (0x{0:08X}))r�r��PIPE�communicate�
returncoderr��reprr�r��RuntimeErrorr�)	ry�pythonrzr^rNr��cmd�pr�s	&&&&&    rp�_call�PythonSymlink._call|s�����o��o�����S���$.�O�O��
�
>��
�M�M�O���<�<�:�%��w��d�1�Q�4�j�!��d�1�Q�4�j�s�z�z�2��9�@�@����N�P�
P��rorNc�>�VPVPVRV4#ru)rTr%�ryrNrzs&$*rp�	call_real�PythonSymlink.call_real�s���z�z�$�)�)�T�4��<�<roc�P�VPVPW PV4#ru)rTr"r'rWs&$*rp�	call_link�PythonSymlink.call_link�s���z�z�$�)�)�T�9�9�j�A�Aro)r&r'r#r"r%ru)rirjrkrlrmrxr�r�r(r@rIrTrXr[rnr�r�s@rprr?sU����=�
"��|�|�w��	5�6	��H��=�!�=�B�!�B�Brorc��\'*;'g\pRpV'dV#\P!V4!V4#)z;Skip decorator for tests not run in (non-extended) PGO taskz#Not run for (non-extended) PGO task)rM�PGO_EXTENDEDr�r)r:�okrvs&  rp�skip_if_pgo_taskr`�s1��
��	 �	 �L�B�
/�C��4�3�8�=�=��-�d�3�3roc��\'g"\'g\PR8XdV#^RIpVPVP4wr#W#8H;'dVR9pRp\P!WE4!V4#)a%Skip decorator for tests not run when an unlimited stack size is configured.

Tests using support.infinite_recursion([...]) may otherwise run into
an infinite loop, running until the memory on the system is filled and
crashing due to OOM.

See https://github.com/python/cpython/issues/143460.
�ntNz#Not run due to unlimited stack size)r�l����)	r9r:r�r�r��	getrlimit�RLIMIT_STACKr�r)r:r��curlim�maxlim�unlimited_stack_size_condr�s&     rpr5r5�sh���}���2�7�7�d�?�����'�'��(=�(=�>�N�F� &� 0� Z� Z�V�?Z�5Z��
2�F��?�?�4�=�d�C�Cro�ignorec��\\V44\\V44,
pV'dV\V4,p\RV44pV#)z�Returns the set of items in ref_api not in other_api, except for a
defined list of items to be ignored in this check.

By default this skips private attributes beginning with '_' but
includes all magic methods, i.e. those starting and ending in '__'.
c3�"�TF7pVPR4'dVPR4'gK3Vx�K9	R#5i)r��__N)r��endswith)rrss& rpr�&detect_api_mismatch.<locals>.<genexpr>�s2���F�=�a� �|�|�C�0�0�A�J�J�t�4D���=�s�A�A�
A)�set�dir)�ref_api�	other_apirh�
missing_itemss&&$ rpr,r,�sP����G��%��C�	�N�(;�;�M�
���V��$�
��F�=�F�F�M��roc���VfVP3pM\V\4'dV3p\V4p\	V4F�pVPR4'gWd9dK"\
W4p\
VRR4V9g7\VR4'dKS\V\P4'dKuVPV4K�	VPVPV4R#)a�Assert that the __all__ variable of 'module' contains all public names.

The module's public names (its API) are detected automatically based on
whether they match the public name convention and were defined in
'module'.

The 'name_of_module' argument can specify (as a string or tuple thereof)
what module(s) an API could be defined in order to be detected as a
public API. One case for this is when 'module' imports part of its public
API from other modules, possibly a C backend (like 'csv' and its '_csv').

The 'extra' argument can be a set of names that wouldn't otherwise be
automatically detected as "public", like objects without a proper
'__module__' attribute. If provided, it will be added to the
automatically detected ones.

The 'not_exported' argument can be a set of names that must not be treated
as part of the public API even though their names indicate otherwise.

Usage:
    import bar
    import foo
    import unittest
    from test import support

    class MiscTestCase(unittest.TestCase):
        def test__all__(self):
            support.check__all__(self, foo)

    class OtherTestCase(unittest.TestCase):
        def test__all__(self):
            extra = {'BAR_CONST', 'FOO_CONST'}
            not_exported = {'baz'}  # Undocumented name.
            # bar imports part of its API from _bar.
            support.check__all__(self, bar, ('bar', '_bar'),
                                 extra=extra, not_exported=not_exported)

Nr�rj)
rir6r�rnror�r�r�r7�
ModuleType�add�assertCountEqual�__all__)r!r��name_of_module�extra�not_exported�expectedr�r�s&&&&&   rpr-r-�s���R�� �/�/�,��	�N�C�	(�	(�(�+���5�z�H��F����?�?�3���4�#7���f�#���C��t�,��>��S�,�/�/���U�%5�%5�6�6��L�L�������v�~�~�x�8roc���^RIpTPTPTP,TP
,TP,4\TR4'dTPTPTP3FUpT'd9TPY!P4TPY!P4KCTPT^4KW	R#R# \dR#i;i)rN�CrtSetReportMode)�msvcrtro�SetErrorMode�SEM_FAILCRITICALERRORS�SEM_NOALIGNMENTFAULTEXCEPT�SEM_NOGPFAULTERRORBOX�SEM_NOOPENFILEERRORBOXr��CRT_WARN�	CRT_ERROR�
CRT_ASSERTr}�CRTDBG_MODE_FILE�CrtSetReportFile�CRTDBG_FILE_STDERR)rr~rss&  rp�suppress_msvcrt_assertsr��s���������5�5� �;�;�<� �6�6�7�!�7�7�8�9��v�)�*�*��/�/�6�#3�#3�V�5F�5F�G�A���'�'��+B�+B�C��'�'��+D�+D�E��'�'��1�-�H�+������s�C&�&C5�4C5c�8a�]tRtRtoRtRtRtRtRtRt	Vt
R#)rJi
z�Try to prevent a crash report from popping up.

On Windows, don't display the Windows Error Reporting dialog.  On UNIX,
disable the creation of coredump file.
Nc���\PPR4'd�^RIpTP4TnTPTPTP,4\TR4'dz/Tn
TPTPTP3FKpTPTTP4pTP!TTP"4pY43TPT&KM	T#^RIpWPnVP$eyVP$P'VP$P(4VnVP$P+VP$P(^VP^,34\PR8Xd~^RIp.ROpVP3VVP4VP4R7pV;_uu_4VP74^,p	RRR4X	P94R8Xd\;RRR	R
7V# \dR#i;i \dRTnELAi;i \,\.3dL�i;i +'giLw;i)z�On Windows, disable Windows Error Reporting dialogs using
SetErrorMode() and CrtSetReportMode().

On UNIX, try to save the previous core file size limit, then set
soft limit to 0.
r�Nr}r�)r�r�s	developerz:this test triggers the Crash Reporter, that is intentionalr5T)�endr�)z/usr/bin/defaultsr�zcom.apple.CrashReporter�
DialogType)r�r�r�r~ro�GetErrorMode�	old_valuerr�r��	old_modesr�r�r�r}r�r�r�r�rc�RLIMIT_CORE�	setrlimitrr�r�r�rLrMr�r�)
ryr~�report_type�old_mode�old_filer�r�rR�procr�s
&         rpr@�SuppressCrashReport.__enter__s���<�<�"�"�5�)�)�
��$�0�0�2�D�N��������1M�1M� M�N��v�1�2�2�!#���$*�O�O�$*�$4�$4�$*�$5�$5�$7�K� &�6�6�{�"�3�3� 5�H�%�6�6�{�"�5�5� 7�H�2:�2D�D�N�N�;�/�$7�T��A
%�� (�
��}�}�(��%)�]�]�%<�%<�T�]�]�=V�=V�%W�D�N��M�M�+�+�D�M�M�,E�,E�-.����q�0A�,B�D�
�|�|�x�'�!�@��!�'�'��/9���/9���(�@���T�!�-�-�/��2�F���<�<�>�\�1��0�57�t�E����k�
��
��0�
%� $��
�
%��#�G�,����� �T�sB�H�:
H0�A7I	�I �H-�,H-�0I�I�	I�I� I0	c�0�VPfR#\PPR4'd~^RIpVPVP4VP'dKVPP4F*wpwrEVPW44VPW54K,	R#R#VPe>VPPVPPVP4R#R# \\3dR#i;i)zARestore Windows ErrorMode or core file behavior to initial value.Nr�)r�r�r�r�r~rr�r�r}r�r�r�r�rr�)ry�
ignore_excr~r�r�r�s&*    rprI�SuppressCrashReport.__exit__Us����>�>�!���<�<�"�"�5�)�)��������/��~�~�~�9=���9M�9M�9O�5�K�!5�(��+�+�K�B��+�+�K�B�:P��
�}�}�(���M�M�+�+�D�M�M�,E�,E�t�~�~�V�)��#�G�,����s�:D�D�D)r�r�r�)rirjrkrlrmr�r�r@rIrnr�r�s@rprJrJ
s'�����
�I��I�@�D�roc��aaaa�\SS4RoSPS,oRoVVVV3RlpVP	V4\SSV4R# \\3d\SSR4oLIi;i)z�Override 'object_to_patch'.'attr_name' with 'new_value'.

Also, add a cleanup procedure to 'test_instance' to restore
'object_to_patch' value for 'attr_name'.
The 'attr_name' should be a valid attribute for 'object_to_patch'.

FTNc�N<�S'd\SSS4R#\SS4R#ru)r�r�)�
attr_is_local�	attr_name�object_to_patchr�s����rp�cleanup�patch.<locals>.cleanup�s�����O�Y�	�:��O�Y�/ro)r��__dict__r�r@�
addCleanupr�)�
test_instancer�r��	new_valuer�r�r�s&ff& @@rp�patchr�js~����O�Y�'��M��#�,�,�Y�7�	��
�0�0����W�%��O�Y�	�2��
�H�%�>��O�Y��=�	�>�s�A�A3�2A3c#�F"�VR,pRx�WR&R# XTR&i;i5i)z-Like unittest.mock.patch.dict, but for lists.�NNNNrg)�orig�saveds& rp�
patch_listr��s&�����Q���
��Q���%��Q��s�!�
�!��!c��\4^RIpTPT4# \d\P!R4hi;i)�]
Run code in a subinterpreter. Raise unittest.SkipTest if the tracemalloc
module is enabled.
N�requires _testcapi)�_check_tracemallocrror�r��run_in_subinterp)r�rs& rpr�r��sH��
��6���%�%�d�+�+���6���� 4�5�5�6�s	�!�"A�own_gilc��\4^RIpTe RT9g	QY34hT'dRMRTR&MQTR,pT^8XdRTR&M;T^8XdRTR&M.T^8XdRTR&M!\T\4'g\T4h\P!R/TBpTPY4# \d\P!R4hi;i)r�Nzrequires _testinternalcapi�gil�own�sharedr�rg)r�r4ror�r�r6r��NotImplementedErrorr7�SimpleNamespace�run_in_subinterp_with_config)r�r��configr4r�s&$,  rpr�r��s���
��>� ����F�"�5�W�$5�5�"�!(��h��u�
��U�m���!�8�%�F�5�M�
�A�X�$�F�5�M�
�A�X�!�F�5�M��C��%�%�%�c�*�*�
�
"�
"�
,�V�
,�F��9�9�$�G�G��!�>���� <�=�=�>�s�B+�+"C
c��^RIpVP4'd\P!R4hR# \dR#i;i)rNzUrun_in_subinterp() cannot be used if tracemalloc module is tracing memory allocations)�tracemalloc�
is_tracingr�r�ro)r�s rpr�r��sL��;���!�!�#�#��#�#�%:�;�
;�$���
��
�s�4�A�Ac�laaaaa�RoVVVVV3RlpV!4\4SPS4R#)Fc�v<a�!VV3RlRS4pS!V!S!4oSP\\S4R#)c�0<a�]tRtRtoVV3RltRtVtR#)�6check_free_after_iterating.<locals>.wrapper.<locals>.Ai�c�H<�Ro\S4R# \dR#i;ir�)�next�
StopIteration)ry�done�its&��rp�__del__�>check_free_after_iterating.<locals>.wrapper.<locals>.A.__del__�s&��������H��$����s��!�!rgN)rirjrkrlr�rnr�)r�r�r�s@��rp�Ar��s����
�
ror�N)�assertRaisesr�r�)r�r�rz�clsr��iterr:s @�����rpr(�+check_free_after_iterating.<locals>.wrapper�s5���	�	��	��!�T�(�^�����-��r�2roN)r��
assertTrue)r:r�r�rzr(r�sffff @rp�check_free_after_iteratingr��s*����D�3�3��I��L��O�O�D�roc���^RIHpHp^RIHp^RIpVP
4pVP!V4VPR8XdVP4VPFhpV'd	W`9dK\WV4pV'dVfQRV,4hM
V'gKCVPV^,4eK_V^,u#	R# TPdR#i;i)a(Check if the compiler components used to build the interpreter exist.

Check for the existence of the compiler executables whose names are listed
in 'cmd_names' or all the compiler executables when 'cmd_names' is empty
and return the first missing executable or None when none is found
missing.

)�	ccompilerrN)r�N�msvcz%the '%s' executable is not configured)�setuptools._distutilsr�rN�
setuptoolsr�r��new_compiler�customize_compiler�
compiler_type�
initialize�
PlatformError�executablesr��which)�	cmd_namesr�rNr�r��compilerr�rRs&       rprNrN�s���;�!���%�%�'�H�
� � ��*�����'�	����!��$�$����.���h�%����?�
C�;�d�B�
C�?����<�<��A���'��q�6�M�%���#�#�	��	�s�C�C&�%C&c���Rp\'dTW8dN\f8^RIpVP4pVP;'dVP
^8s\'dTp\P!V4#)g-C��6?N)r8�_old_android_emulatorr��android_ver�is_emulator�	api_levelr�r>)�interval�minimum_intervalr��avs&   rpr>r>sb�����z�h�1� �(���%�%�'�B�$&�N�N�$H�$H�r�|�|�b�7H�!� � �'�H�� � ��*�*roc���\P!R4pV# \\3d7\P!R4pT# \\3dRpT#i;ii;i)zGet size of a page in bytes.�SC_PAGESIZE�SC_PAGE_SIZE�)r��sysconfrr�)�	page_sizes rpr@r@so����J�J�}�-�	����
��'��	��
�
�>�2�I�����N�+�	��I���	���s&��A!�A�A�A!�A�A!c#�"�^RIp\PP4pVP	4pVP4Rx�V'dVP
VRR7R#R# T'dTP
TRR7ii;i5i)rNT)r��all_threads)�faulthandlerr��
__stderr__�fileno�
is_enabledr�r�)r��fdr�s   rp�disable_faulthandlerr� st����


���	�	�	 �B��(�(�*�J�;�����
�����R�T��:���:����R�T��:��s�3B
�A)�
B
�)B�B
c�6a�]tRtRtoRtRtRtRtRtVt	R#)�SaveSignalsi2z�
Save and restore signal handlers.

This class is only able to save/restore signal handlers registered
by the Python signal module: see bpo-13285 for "external" signal
handlers.
c���^RIpWnVP4VnRF*p\W4pTPPT4K,	/VnR# \dKEi;i)rN)�SIGKILL�SIGSTOP)�signal�
valid_signals�signalsr�r�rC�handlers)ryr��signame�signums&   rprx�SaveSignals.__init__;sd������+�+�-���-�G�
� ��1��
�L�L����'�.���
��"�
��
�s�A�A(�'A(c��VPF2pVPPV4pVfK$W PV&K4	R#ru)r�r��	getsignalr��ryr��handlers&  rp�save�SaveSignals.saveHs:���l�l�F��k�k�+�+�F�3�G����$+�M�M�&�!�#roc��VPP4F wrVPPW4K"	R#ru)r�r�r�rs&  rp�restore�SaveSignals.restoreTs-��#�}�}�2�2�4�O�F��K�K���v�/� 5ro)r�r�r�N)
rirjrkrlrmrxrrrnr�r�s@rpr�r�2s������
,�0�0ror�c��^RIpTP;'d\
'*# \d\P!R4hi;i�rNr�)rror�r��
WITH_PYMALLOCrr�s rp�
with_pymallocrYsF��6���"�"�:�:�?�':�:���6���� 4�5�5�6�s	�%�"Ac�n�^RIpVP# \d\P!R4hi;ir
)rror�r��
WITH_MIMALLOCr�s rp�
with_mimallocras;��6���"�"�"���6���� 4�5�5�6�s��"4c�0a�]tRtRtoRtRtRtRtVtR#)�
_ALWAYS_EQiiz#
Object that is equal to anything.
c��R#r0rg�ry�others&&rp�__eq__�_ALWAYS_EQ.__eq__m���roc��R#�Frgrs&&rp�__ne__�_ALWAYS_EQ.__ne__o���rorgN)	rirjrkrlrmrrrnr�r�s@rprris�������rorc�6a�]tRtRtoRtRtRtRtRtVt	R#)�	_NEVER_EQitz'
Object that is not equal to anything.
c��R#rrgrs&&rpr�_NEVER_EQ.__eq__xrroc��R#r0rgrs&&rpr�_NEVER_EQ.__ne__zrroc��^#�r�rgrs&rp�__hash__�_NEVER_EQ.__hash__|s��rorgN)
rirjrkrlrmrrr%rnr�r�s@rprrts��������rorc�0a�]tRtRtoRtRtRtRtVtR#)�_LARGESTi�z7
Object that is greater than anything (except itself).
c�"�\V\4#ru)r6r(rs&&rpr�_LARGEST.__eq__�s���%��*�*roc��R#rrgrs&&rp�__lt__�_LARGEST.__lt__�rrorgN)	rirjrkrlrmrr,rnr�r�s@rpr(r(�s�����+��ror(c�0a�]tRtRtoRtRtRtRtVtR#)�	_SMALLESTi�z4
Object that is less than anything (except itself).
c�"�\V\4#ru)r6r/rs&&rpr�_SMALLEST.__eq__�s���%��+�+roc��R#rrgrs&&rp�__gt__�_SMALLEST.__gt__�rrorgN)	rirjrkrlrmrr3rnr�r�s@rpr/r/�s�����,��ror/c�6�^RIpVPP#)zDReturn the global event loop policy if one is set, else return None.N)�asyncio.events�events�_event_loop_policy)�asyncios rp�maybe_get_event_loop_policyr:�s����>�>�,�,�,roc��Yr2^RIpVP4;_uu_4pVP4^,p\V^4VnVPV4pV^,
V,V,pW(,p	W),
p
W:,
pWw^,
,V^,
V,V,,V	^V	,
,,p\
V4\
VP443uuRRR4# +'giR#;irm)�decimal�localcontext�
bit_length�max�prec�Decimalr|�sqrt)
�nbins�nballsr'rrr<�ctx�bitsr��p1empty�	meanempty�occupied�
collisions�vars
&&           rp�collision_statsrL�s����q�$�	�	�	�	�	�3��|�|�~��!���t�R�=���
�_�_�Q�
����F�b�=�Q�&���K�	��=���\�
��Q�$�i�"�Q�$���Q��&��a�)�m�)D�D���Z� �%����
�"3�3�
 �	�	�	�s�CC6�6D	c�<a�]tRtRtoRtRtRtRtRtRt	Vt
R#)	�catch_unraisable_exceptioni�a�
Context manager catching unraisable exception using sys.unraisablehook.

Storing the exception value (cm.unraisable.exc_value) creates a reference
cycle. The reference cycle is broken explicitly when the context manager
exits.

Storing the object (cm.unraisable.object) can resurrect it if it is set to
an object which is being finalized. Exiting the context manager clears the
stored object.

Usage:

    with support.catch_unraisable_exception() as cm:
        # code creating an "unraisable exception"
        ...

        # check the unraisable exception: use cm.unraisable
        ...

    # cm.unraisable attribute no longer exists at this point
    # (to break a reference cycle)
c�"�RVnRVnR#ru)�
unraisable�	_old_hookrs&rprx�#catch_unraisable_exception.__init__�s�������roc��WnR#ru)rP)ryrPs&&rp�_hook� catch_unraisable_exception._hook�s	��%�roc�Z�\PVnVP\nV#ru)r��unraisablehookrQrTrs&rpr@�$catch_unraisable_exception.__enter__�s ���+�+���!�Z�Z����roc�4�VP\nV=R#ru)rQr�rWrP)ryr<s&*rprI�#catch_unraisable_exception.__exit__�s��!�^�^����Oro)rQrPN)rirjrkrlrmrxrTr@rIrnr�r�s@rprNrN�s#�����0�%�
�
�rorNr�c	��\PR8wd�^RIpVf\p\P
!4p\
VRR7F3p\P!V\P4wrgV^8wgK3M�	\P!WP4\P!V^4\P
!4V,
p\RVRVR
R24h\P!V^4wrg\P!V4p	W�8wd\RVR	V	R
VR24hW`8wd\RVR
V24hR# \dL�i;i)al
Wait until process pid completes and check that the process exit code is
exitcode.

Raise an AssertionError if the process exit code is not equal to exitcode.

If the process runs longer than timeout seconds (LONG_TIMEOUT by default),
kill the process (if signal.SIGKILL is available) and raise an
AssertionError. The timeout feature is not available on Windows.
rbNF��errorzprocess z is still running after �.1fz secondsz exited with code z, but exit code z is expectedzpid z != pid )r�r�r�rVrf�	monotonic�sleeping_retryr�r��killr�r��AssertionError�waitstatus_to_exitcode)
r��exitcoder�r��
start_timer��pid2r��dt�	exitcode2s
&$$       rp�wait_processri�sF��
�w�w�$����?�"�G��^�^�%�
���u�5�A��:�:�c�2�:�:�6�L�D��q�y��6�
�����^�^�,��
�
�3��"�
���!�J�.�B� �8�C�5�1*�*,�S���";�<�
<��z�z�#�q�)����)�)�&�1�I����x��u�,>�y�k�J.�.6�Z�|�E�F�	F��{��t�D�6��#��7�8�8���#�
��
�s�>7E�E�Ec��^RIHpV!R4V!R4p\PR8Xd)^RIpVPVP
R4R7R#R# \d p\P!RT:24hRp?ii;i)	z�
Skip tests if the multiprocessing.synchronize module is missing, if there
is no available semaphore implementation, or if creating a lock raises an
OSError (on Linux only).
)�
import_module�_multiprocessingzmultiprocessing.synchronize�linuxNr�)rEz broken multiprocessing SemLock: )
�
import_helperrkr�r��multiprocessing�Lock�get_contextr�r�r�)rk�synchronizero�excs    rp�*skip_if_broken_multiprocessing_synchronizert#	s���-��$�%� � =�>�K�
�|�|�w��	P�
#�����!<�!<�V�!D��E�
���	P��#�#�&F�s�g�$N�O�O��	P�s�%A�B�!A;�;Bc��VPpVPpVR8wd	VRV2pMTpR\P!V4R2pVP!\
Wq.VO5/VBVP!\
WqPV.VO5/VBR#)z�
Check that given type cannot be instantiated using *args and **kwds.

See bpo-43916: Add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag.
�builtinsr	zcannot create 'z' instancesN)rjrirxr4r�rM�__new__)r��tprzri�modr��qualnamervs&&*,    rpr/r/D	s���
�-�-�C�
�;�;�D�
�j���U�!�D�6�?���V���B�I�I�h�/�0��
<�C����y�#�A�D�A�D�A����y�#�z�z�2�M��M��Mroc��^RIpVP4p\T^,
^4# \\3dHp^p\P
!4pTeT^,
pTPpKRpRp?L_ Rpi;iRp?ii;i)znGet the recursion depth of the caller function.

In the __main__ module, at the module level, it should be 1.
N)r4�get_recursion_depthro�RecursionErrorr��	_getframe�f_backr?)r4�depthrs�frames    rpr|r|T	s���

� �!�5�5�7���u�q�y�!����
��(�
�	��E��M�M�O�E��#���
������$�
�E��D�E��
�s&�)�B�2A5�.A<�5A9�9A<�<Bc�P�\P!4p\4pW,
#)z�Get the number of available frames before RecursionError.

It depends on the current recursion depth of the caller function and
sys.getrecursionlimit().
)r��getrecursionlimitr|)rpr�s  rp�get_recursion_availabler�k	s"��
�!�!�#�E��!�E��=�roc#��"�\P!4p\P!V4Rx�\P!V4R# \P!T4i;i5i)z'Temporarily change the recursion limit.N)r�r��setrecursionlimit)rp�original_limits& rp�set_recursion_limitr�u	sG����*�*�,�N�.����e�$�
����n�-�����n�-���A&�A�A&�A#�#A&c��VfRpMV^8d\RV24h\4p\V^,
^4pW,p\V4#)Ni Nz"max_depth must be at least 3, got )rr|r?r�)�	max_depthr�rps&  rprFrF	sT�����	�	�Q���=�i�[�I�J�J��!�E����	�1��E���E��u�%�%roc�<�V^8�dQhR\R\R\/#)r�r��liker�)r�r�)r�s"rpr�r��	s!����S��3��6�roc
�~�\4p\P!R\VVR\	V4R2,R7V#)rh�
(?#support�))rVr�r)r�r��filterwarnings�DeprecationWarning�id)r�r��tokens&$ rp�ignore_deprecations_fromr��	s<���H�E�����#���*�R��Y�K�q�1�1�	��Lroc�(�V^8�dQhR\RR/#)r��tokensr�N)r�)r�s"rpr�r��	s��$�$��$�4�$roc��V'g\R4h.p\P!4p\;QJd.RV4FNK	5M
!RV44pVF~wrErgpVR8Xd]V\JdS\V\P4'dVPp	MT;'gRp	V	PV4'dKjVPWEWgV34K�	W!8wdWR&\P!4R#R#)z<Provide token or tokens returned by ignore_deprecations_fromc3�@"�TFpR\V4R2x�K	R#5i)r�r�N)r�)rr�s& rpr�-clear_ignored_deprecations.<locals>.<genexpr>�	s���D�V�E�
�2�e�9�+�Q�/�V�s�rhr5r�N)rr��_get_filtersr
r�r6rx�Patternr�rlr��_filters_mutated)
r��new_filters�old_filtersrl�actionrrVr�r�rvs
*         rp�clear_ignored_deprecationsr��	s�����W�X�X��K��'�'�)�K��u�D�V�D�u�u�D�V�D�D�H�5@�1���6��X��(�.@�"@��'�2�:�:�.�.��o�o���m�m����|�|�H�%�%�����F�X�v�F�G�6A��!�$�A���!�!�#�"roc��^RIp^RIp\P
!TR4# \d\P!RR4u#i;i \dRpLNi;i)rNTzvenv: ensurepip requires zlibzvenv: pip requires ctypes)rnror�rr�rp)rnr�s  rp�requires_venv_with_pipr��	sc��F�������v�'B�C�C���F����t�%D�E�E�F�������s �"�A
�"A�A�

A�Ac��\P!R4;'g%\PP	\
R4p\P!V4p\VRR7pVF]pVPR4'gKVR,pVPV4'gK>\PP	W4u#	\RVRV24h)	z�Try to find a wheel with the package specified as pkgname.

If set, the wheels are searched for in WHEEL_PKG_DIR (see ensurepip).
Otherwise, they are searched for in the test directory.
�
WHEEL_PKG_DIR�	wheeldataT)�reversez.whlrz
No wheel for z
 found in )rNrOr�r�rr��listdirr�rlr�r�)�pkgname�	wheel_dir�	filenamesr��prefixs&    rp�
_findwheelr��	s����(�(��9���R�W�W�\�\��{�>�I��
�
�9�%�I��y�$�/�I���� � ��(�(���3������v�&�&��7�7�<�<�	�4�4�
��m�G�9�J�y�k�J�
K�Kroc#�Ha"�^RIo^RIHpV3RlpV!4;_uu_4p\PRRRRV.pV!V4\
PPW04p\
PP\P4p\PR8Xd#\
PPVR	V4pM!\
PPVR
V4pVRRRRR\R
43pV!V4Vx�RRR4R# +'giR#;i5i)rN)�temp_cwdc	�<�\'dS^RIp\4\RRP\	VP
V444SP
VRR7R#SP
VSPSPRR7R#)rNzRun:rAT)r�)r�r�r�)	r�shlexr�rr�quoter�rL�STDOUT)rRr�r�s& �rp�run_command�3setup_venv_with_pip_setuptools.<locals>.run_command�	sd����7���G��&�#�(�(�3�u�{�{�C�#8�9�:��N�N�3�d�N�+��N�N�3�",�/�/�",�"3�"3�!%�
�
'roz-X�devz-m�venvr��Scripts�bin�pip�installr�)r�r�r�r�r�r�r�rr3r�r�)	�venv_dirr�r��temp_dirrRr��
python_exerQr�s	&       @rp�setup_venv_with_pip_setuptoolsr��	s������#�
'�
���x��~�~�t�U�D�&�(�C���C���w�w�|�|�H�/���W�W�%�%�c�n�n�5�
��<�<�7�"��W�W�\�\�$�	�:�>�F��W�W�\�\�$��z�:�F��t�U��U�I��,�'���	�C����)
����s� D"�C!D�
D"�D	�	D"�gettotalrefcountc���V.pVPV4^RIpRpWnVPV4\	\
R4'd#RpWn\
P!VR7R#R#)aR
Keep a Python alive as long as possible.

Create a reference cycle and store the cycle in an object deleted late in
Python finalization. Try to keep the object alive until the very last
garbage collection.

The function keeps a strong reference by design. It should be called in a
subprocess to not mark a test as "leaking a reference".
Nc��R#rurg)�encodings&rp�search_func�"late_deletion.<locals>.search_func
rro�register_at_forkc��R#rurgrgrorp�atfork_func�"late_deletion.<locals>.atfork_func 
r=ro)�before)r��codecs�	reference�registerr�r�r�)r��	ref_cycler�r�r�s&    rp�
late_deletionr�
sa��&��I�
���Y����%��
�O�O�K� ��r�%�&�&�	� )��
���;�/�'ror]c#�:"�V^8:d\R4h\P!4pW0,pRx�\P!4V8�gK!T'd>\P!4T,
pRTR
R2pT'dTRT2p\T4hR#5i)a�
Run the loop body until "break" stops the loop.

After *timeout* seconds, raise an AssertionError if *error* is true,
or just stop if *error is false.

Example:

    for _ in support.busy_retry(support.SHORT_TIMEOUT):
        if check():
            break

Example of error=False usage:

    for _ in support.busy_retry(support.SHORT_TIMEOUT, error=False):
        if check():
            break
    else:
        raise RuntimeError('my custom error')

z!timeout must be greater than zeroNz	timeout (r^z	 seconds)r�)rrfr_rb)r��err_msgr]re�deadlinergrvs""$    rp�
busy_retryr�&
s����,�!�|��<�=�=����!�J��#�H�
�
��>�>��x�'���
�^�^�
�
�
*���"�S���+����E��G�9�%�C��S�!�!�
�s�AB�B�*B�B�
init_delayg{�G�z�?�	max_delayg�?c#�"�Tp\WVR7F0pRx�\P!V4\V^,V4pK2	R#5i)a�
Wait strategy that applies exponential backoff.

Run the loop body until "break" stops the loop. Sleep at each loop
iteration, but not at the first iteration. The sleep delay is doubled at
each iteration (up to *max_delay* seconds).

See busy_retry() documentation for the parameters usage.

Example raising an exception after SHORT_TIMEOUT seconds:

    for _ in support.sleeping_retry(support.SHORT_TIMEOUT):
        if check():
            break

Example of error=False usage:

    for _ in support.sleeping_retry(support.SHORT_TIMEOUT, error=False):
        if check():
            break
    else:
        raise RuntimeError('my custom error')
r\N)r�rf�sleepr�)r�r�r�r�r]�delayr�s""$$$  rpr`r`P
s<���4
�E�
���
6��
��
�
�5���E�A�I�y�)��	7�s�AAc�0a�]tRtRtoRtRtRtRtVtR#)�	Stopwatchir
a�Context manager to roughly time a CPU-bound operation.

Disables GC. Uses perf_counter, which is a clock with the highest
available resolution. It is chosen even though it does include
time elapsed during sleep and is system-wide, because the
resolution of process_time is too coarse on Windows and
process_time does not exist everywhere (for example, WASM).

Note:
- This *includes* time spent in other threads/processes.
- Some systems only have a coarse resolution; check
  stopwatch.clock_info.resolution when using the results.

Usage:

with Stopwatch() as stopwatch:
    ...
elapsed = stopwatch.seconds
resolution = stopwatch.clock_info.resolution
c���\Pp\P!R4p\4VnVPP4WnW nV!4VnV#)�perf_counter)	rfr��get_clock_infor�contextr@�get_time�
clock_infore)ryr�r�s&  rpr@�Stopwatch.__enter__�
sN���$�$���(�(��8�
�!�|�������� � �
�$��"�*����roc���VP4pVPP!V!pW P,
VnV# TPP!T!pi;iru)r�r�rIre�seconds)ryrs�end_timer�s&*  rprI�Stopwatch.__exit__�
sQ��	1��}�}��H��\�\�*�*�C�0�F��/�/�1����
���\�\�*�*�C�0�F�s�A�A!)r�r�r�r�reN)	rirjrkrlrmr@rIrnr�r�s@rpr�r�r
s�����(��ror�c#��"�\P!4p\P!V4Rx�\P!V4R# \P!T4i;i5i)z>Temporarily change the integer string conversion length limit.N)r��get_int_max_str_digits�set_int_max_str_digits)�
max_digits�currents& rp�adjust_int_max_str_digitsr��
sG����(�(�*�G�,��"�"�:�.�
��"�"�7�+���"�"�7�+�r�c��R#)z<For recursion tests, easily exceeds default recursion limit.i�IrgrgrorprXrX�
s��ro�uname�s390xzskipped on s390x�
getobjectszrequires JIT enabledzrequires JIT disabledz.git�__pycache__c��\p\PPV4R8XdVRR0,pV#RV9dVR0,pV#)�Doc�buildr��Modules)� _BASE_COPY_SRC_DIR_IGNORED_NAMESr�r�r3)r��names�ignoreds&& rp�copy_python_src_ignorer��
s]��.�G�	�w�w������&����	
�	
���N�
�e�	���
�	
���Nro�topdownc#��"�\V\4'gQ\V44hV.pV'd�VP4p\V\4'dVx�K4\V4PV4pV'd+W3x�\
V4FpVPV4K	K�VPW34\
V4FpVPV4K	K�R#5iru)r6r�rOr�r
�__subclasses__�reversedr�)�topr��stack�subs�subs&$   rp�walk_class_hierarchyr�
s�����c�4� � �+�$�s�)�+� �
�E�E�
��i�i�k���c�5�!�!��I���C�y�'�'��,����)�O���~�����S�!�&�
�L�L�#��%���~�����S�!�&�#�s�1C%�B1C%c#�x"�^RIpVeVP4Rjx�L
R#\\R4'dj^RIp\
4p\\4FFwr4W29dK
VPV4VP\,'g.VR&KBVx�KH	R#\
4p\P4FZp\V\4'gKTpVPR8wdK0V\ 8XdK=W29dKEVPV4Vx�K\	R# \dRpEL+i;iEL5i)rNr6r�rv)r4ro�get_static_builtin_typesr�r��datetimernrrur6�_TPFLAGS_STATIC_BUILTIN�__builtins__rGr6r�rj�ExceptionGroup)r4r�seenr�r�r�s      rp�iter_builtin_typesr	�
s���!� ��$�$�=�=�?�?�?���v�{�#�#���u��-�f�5�I�C��{���H�H�S�M��M�M�$;�;�;���Q����I�6��u���&�&�(�C��c�4�(�(���C��~�~��+���n�$���{���H�H�S�M��I�)��/�!� ��!��	@�s9�D:�D#�D:�D7�A3D:�BD:�#
D4�0D:�3D4�4D:c#�"�\P!V4F'p\P!V4pW1,pYB3x�K)	R# \dK;i;i5i)aYield matching items found in base.__dict__ across the MRO.

The descriptor protocol is not invoked.

list(iter_name_in_mro(cls, name))[0] is roughly equivalent to
find_name_in_mro() in Objects/typeobject.c (AKA PyType_Lookup()).

inspect.getattr_static() is similar.
N)�inspect�_static_getmro�_get_dunder_dict_of_classr@)r�r��baser�r�s&&   rp�iter_name_in_mrorsT����&�&�s�+��
�
.�
.�t�
4��	��(�C��i��,��
�	��	�s'�0A�A�A�A�A�A�Ac�p�\W4FpVu#	V\PJdVR3#\V4hru)rr�	_sentinelr�)r�r�r�r�s&&& rp�find_name_in_mror,s;����*���
�+��g�'�'�'���}��
��
�roc��^RIpVe+VP4Uu/uFqRbK	pp\V4#\h \dRpLCi;iuupirm)r4ro�identify_type_slot_wrappersr�r�)r4r'r�s   rprr6s_��!� ��$�"3�"O�"O�"Q�R�"Q�Q�D��"Q��R��E�{��!�!��
�!� ��!��Ss�:�A
�
A
�	A
c#��a"�V3Rlp\4pVeA\V4F/p\SVR4wrEVfKV!W44'gK(W5SJ3x�K1	R#\	S4p\V4p\
S4F�pW�9dVPV4\SV4p	TPR4'dTPR4'gT!Y�4'd
QSY�34hT!Y�4'g0Y�9d(T!Y�T,4'dQSY�Yh,34hK�K�Y�9d%Yh,T	JgQSY�Yh,34hTR3x�K�TR3x�K�	VF"pWh,p	V!SW�4'gKVR3x�K$	R# \dRpEL|i;i \dBTR9g
QST34hY�9d'T!Y�T,4'dTPT4EKfi;i5i)c�<�\V\P4'g,\V4P	R4'd
QSW34hR#\V4P	R4'g
QSW34h\V4'g
QSW34hVP	R4'dVP
R4'g
QSW34hR#)z<slot wrapper FrkT)r6r7�WrapperDescriptorTyperOr��callablerl)r��valuer�s&&�rp�is_slot_wrapper�+iter_slot_wrappers.<locals>.is_slot_wrapperCs�����%��!<�!<�=�=��E�{�-�-�.>�?�?�S�#�t�AS�S�?���E�{�%�%�&6�7�7�K�#�t�9K�K�7�����2��d� 2�2�����t�$�$����t�)<�)<�P�s�D�>P�P�<�roNrkTF)r��__annotations__�__abstractmethods__)
rr�r�r�varsrnrorCr�r�rur�rl)
r�r�attrsr�r�rr��unusedr�rs
f         rp�iter_slot_wrappersr!Bs�������+�-��
���5�M�D�(��d�D�9�I�C���?�4�#=�#=��C�K�'�'�"�	�
�c��B�
��W�F��C����:��M�M�$��	��C��&�E����t�$�$�D�M�M�$�,?�,?�&�t�3�3�G�c�4�5G�G�3��t�+�+��z�*�4�D��:�:�X�S�$�r�x�<X�X�:�:���z��x�5�(�F�3��R�X�*F�F�(��D�j� ��E�k�!�/�2������3��,�,���*����M������&�	��U�U�b�X[�]a�Wb�b�U��z�o�d�t�H�=�=��
�
�4� ��	�sk�G$�
F�"G$�G$�AG$�F�!G$�8G$�B!G$�5G$�
F�G$�F�G$�AG!�G$� G!�!G$c�$�V^8�dQhR\/#)r��color�r�)r�s"rpr�r�{s��
�
�t�
roc	#�Ta"�^RIp^RIHp\VRRR/V3Rll4;_uu_4V!4;_uu_4pVP	RRR4TPS'dRMRR	4Rx�RRR4RRR4R# +'giL;i +'giR#;i5i)
rN)�EnvironmentVarGuard�can_colorizer�c�<�S#rurg)r�r#s$�rpr��force_color.<locals>.<lambda>�s���%ro�FORCE_COLOR�NO_COLOR�
PYTHON_COLORS�1)�	_colorizer�r&rG�unsetrn)r#r.r&r^sf   rp�force_colorr0zst�����.�	�)�^�-G�D�-G�H�H������	�	�-��_�=�����
�J��<�
�		�	I�H����	I�H�H�s3�(B(�B�4B	�/B�7
B(�B
�B�B%	�	B(c�Fa�\P!S4V3Rl4pV#)z#Force the terminal to be colorized.c�x<�\R4;_uu_4S!V/VBuuRRR4# +'giR#;ir��r0�rzrdr�s*,�rpr(� force_colorized.<locals>.wrapper�s*���
��
�
���(��(��
�
�
���(�9	rg�r�r(sf rp�force_colorizedr8��%����_�_�T��)��)��Nroc�Fa�\P!S4V3Rl4pV#)z'Force the terminal NOT to be colorized.c�x<�\R4;_uu_4S!V/VBuuRRR4# +'giR#;i�FNr3r4s*,�rpr(�$force_not_colorized.<locals>.wrapper�s*���
��
�
���(��(� �
�
�
�r6rgr7sf rpr\r\�r9roc�a�VPo\\P!VP4V3Rl44pWnV#)z=Force the terminal to be colorized for the entire test class.c�J<�VP\R44S!4R#r���enterClassContextr0�r��original_setUpClasss&�rp�new_setUpClass�2force_colorized_test_class.<locals>.new_setUpClass�s���	���k�$�/�0��ro��
setUpClass�classmethodr*r+�r�rDrCs& @rp�force_colorized_test_classrJ��@����.�.����_�_�S�^�^�$��%���$�N��Jroc�a�VPo\\P!VP4V3Rl44pWnV#)zAForce the terminal NOT to be colorized for the entire test class.c�J<�VP\R44S!4R#r<r@rBs&�rprD�6force_not_colorized_test_class.<locals>.new_setUpClass�s���	���k�%�0�1��rorFrIs& @rpr]r]�rKroc�F�V^8�dQhR\\\3,/#�r�r�)r�r�)r�s"rpr�r��s�����S�#�X��roc��\PP4pVP4F-pVPR4'gKVP	V4K/	VP	RR4VP	RR4V#)�PYTHONr*Nr+)r�rh�copyr�r�)�	clean_envrrs  rpr^r^�sb���
�
���!�I�
�^�^�
���<�<��!�!��M�M�!����M�M�-��&�
�M�M�*�d�#��rol�STATUS_ACCESS_VIOLATIONl��STATUS_STACK_OVERFLOWl:�STATUS_CONTROL_C_EXITc�d�^RIpV^8d V)pVPV4P#^�Tu;8dR8d)MM%V^�,
pVPV4P#\V,# \dLRi;i \dL,i;i \
dMi;iRT8:dRTR
2#R#)rN�l�0x�X)r��Signalsr�r�WINDOWS_STATUSr@)rdr�r�s&  rp�get_signal_namer^�s�����!�|����	��>�>�&�)�.�.�.�
�X�����C���	��>�>�&�)�.�.�.�
��h�'�'���	��	���	��	��
�
��
���X���H�Q�<� � �s5�A0�B�#B�0A>�=A>�B�B�B �B c�6a�]tRtRtoRRltRtRtRtVtR#)r_i�c�@�V'd
^^,W nW0nR#�r�N)�next_raises�iter_raises)ry�init_raisesrbrcs&&&&rprx�BrokenIter.__init__�s���
�a�C�&��&�roc�@�VP'd^^,R#R#ra)rbrs&rp�__next__�BrokenIter.__next__�s������
�a�C�C�roc�<�VP'd
^^,V#r$)rcrs&rp�__iter__�BrokenIter.__iter__�s������
�a�C��ro)rcrbN)FFF)	rirjrkrlrxrgrjrnr�r�s@rpr_r_�s����'���roc�$�V^8�dQhR\/#rPr$)r�s"rpr�r��s����4�roc�@�\\R4'gR#\RR4;_uu_4pVP4P	4R8wdRRR4R#RRR4^RIp\P!\\P\P,4p\P!T4R# +'giLk;i \
dR#i;i \d-pTPTP8XdRp?R#Rp?R#Rp?ii;i)z�
Test whether the test suite is runing in systemd-nspawn
with ``--suppress-sync=true``.

This can be used to skip tests that rely on ``fsync()`` calls
and similar not being intercepted.
�O_SYNCFz/run/systemd/container�rbssystemd-nspawnNT)
r�r�r�r��rstripr��errno�__file__�O_RDONLYrnr�r��EINVAL)�fprqr�r�s    rpr`r`�s����2�x� � ���
�*�D�
1�
1�R��w�w�y���!�%6�6��2�
1�6�2���
�W�W�X�r�{�{�R�Y�Y�6�
7��
	������#2�
1����������9�9����$��%�
��
�sL�C�%C�C�C�+>C&�C	�C�C�C#�"C#�&D�1D�Dc���V!V/VBpVPR4\R4h \d'pTPuRp?TP	4#Rp?ii;i TP	4i;i)Nzcoroutine did not complete)�sendrbr�rr���async_fnrzrd�coror�s"*,  rprarasa���T�$�V�$�D���	�	�$���9�:�:�����w�w��	
�
�
�����
	
�
�
��s/�&�A�A�A�A�A�A�A�A,c#�"�Vx�#5irurg)rs&rprcrc s
����G��s�c���V!V/VBpVPR4K \d'pTPuRp?TP4#Rp?ii;i TP4i;ir�)rwr�rr�rxs"*,  rprbrb%sW���T�$�V�$�D���
��	�	�$��� �
��w�w���
�
���
��	
�
�
��s4�A��A�A�A�A�A�A�A�A%c�H�^RIHpT!4^8g# \dR#i;i)r��
get_fips_modeF)�_hashlibrror~s rp�is_libssl_fips_moder�1s-���*��?�a��������s��!�!c�<�Rp^RIHpV# \dT#i;i)F��PROCESS_VM_READV_SUPPORTED)�_remote_debuggingr�ror�s rp�_supports_remote_attachingr�8s2��!&��
�@�&�%���
��%�%�
�s���c�<�\P!4'g\P!R4#\PR9d\P!R4#\PR8Xd'\4'g\P!R4#\#)zRemote debugging is not enabledrmz*Test only runs on Linux, Windows and macOSz5Test only runs on Linux with process_vm_readv support)r�rmr�)r��is_remote_debug_enabledr�rr�r�r�rgrorp�_support_remote_exec_only_implr�Bsh���&�&�(�(��}�}�>�?�?�
�|�|�7�7��}�}�I�J�J�
�|�|�w��'A�'C�'C��}�}�T�U�U��Jroc�"�\4!V4#ru)r�r�s&rpr?r?Ks��)�+�D�1�1roc�Fa�]tRtRtoRtRRRRRR/RltR	tR
tRtVt	R#)�EqualToForwardRefiNz~Helper to ease use of annotationlib.ForwardRef in tests.

This checks only attributes that can be set using the constructor.

r�N�owner�is_classFc�6�WnW@nW nW0nR#ru��__forward_arg__�__forward_is_class__�__forward_module__�	__owner__)ry�argr�r�r�s&&$$$rprx�EqualToForwardRef.__init__Us�� #��$,�!�"(���roc�R�\V\\P34'g\#VP
VP
8H;'d\VPVP8H;'d;VPVP8H;'dVPVP8H#ru)	r6r��
annotationlib�
ForwardRef�NotImplementedr�r�r�r�rs&&rpr�EqualToForwardRef.__eq__bs����%�"3�]�5M�5M�!N�O�O�!�!�� � �E�$9�$9�9�
2�
2��'�'�5�+C�+C�C�
2�
2��)�)�U�-G�-G�G�
2�
2����%�/�/�1�		
roc�D�.pVPe VPRVP:24VP'dVPR4VPe VPRVP:24RVP:RPV4R2#)Nz	, module=z, is_class=Truez, owner=zEqualToForwardRef(r5r�)r�r�r�r�r�r)ryrys& rp�__repr__�EqualToForwardRef.__repr__ls������"�"�.��L�L�9�T�%<�%<�$?�@�A��$�$�$��L�L�*�+��>�>�%��L�L�8�D�N�N�#5�6�7�#�D�$8�$8�#;�B�G�G�E�N�;K�1�M�Mror�)
rirjrkrlrmrxrr�rnr�r�s@rpr�r�Ns>�������	�
���
�
�N�Nror�c�&�\e\#\'d	Rs\#\PR8wd	Rs\#^RIpVP	4wrVR8wd	Rs\#\\
\VPR444s\#)z�
Report if the Python executable is linked to the musl C library.

Return False if we don't think it is, or a version triple otherwise.
NrmF�muslr	)rrr)	�_linked_to_musl�	is_wasm32r�r��libc_verr
rrr)r��librs   rp�linked_to_muslr�xs����"����y�#�����|�|�w��������$�$�&�L�C�
�f�}������C��W�]�]�3�%7�8�9�O��roc�:�V^8�dQhR\\,/#rP)r�r�)r�s"rpr�r��s��:�:�t�C�y�:roc�f�\^^ 4Uu.uFp\V4NK	upR.,#uupi)zyReturns a list of C0 control characters as strings.
C0 control characters defined as the byte range 0x00-0x1F, and 0x7F.
�)�range�chr)�cs rp�control_characters_c0r��s0��"�$��-�.�-�q�C��F�-�.�&��9�9��.s�.g�r@ru)r"r�i@i@i)z
requires zlib)z
requires gzip)zrequires bz2)z
requires lzma)z
requires zstd)z$requires co_positions / debug_ranges>�ios�tvosr��vxworks�watchos>r�r�r�)r5)zneeds the GIL enabledrYii r�r�ir0rg)Nrgrgr)rg)� �@()rmriror��
contextlibr*rrAr�r�rxr�r�rNr�rfr7r�r�rwrSrTrUrVr�r2r!rr�TEST_SUPPORT_DIRr�r��	REPO_ROOTr�rrr�r	r�r
r*r+r!rrrr��junit_xml_listrr�rrr�r�rrrrrrrrr4rEr0r1�HAVE_ASAN_FORK_BUGr`rhr�
SOCK_MAX_SIZErpr|�
__getformat__r�r"r#rrrrr�r�r�r6r7r8r�r=r9r:r�r�r�r;�is_appler�r$r%r&r'r(r)�has_strftime_extensions�strftimer�
TEST_HTTP_URLrMr^rr�r�rErKr�rrA�contextmanagerrr
rrr�rrrrrr�rOrrr#r+r,r1r/r2r�_TPFLAGS_DISALLOW_INSTANTIATION�_TPFLAGS_IMMUTABLETYPEr7�_TPFLAGS_BASETYPE�_TPFLAGS_READY�_TPFLAGS_READYINGr8�_TPFLAGS_BASE_EXC_SUBCLASS�_TPFLAGS_TYPE_SUBCLASSr=rPrCrarLrvrwr��_4Gr�r�rrIr�rrr�rr r�r�r<r�r�r�r2�TEST_MODULES_ENABLEDr3r�rdrhrer��MISSING_C_DOCSTRINGS�HAVE_PY_DOCSTRINGS�HAVE_DOCSTRINGS�requires_docstringsr�r�r�r�r�rBrGrDrr	r�rHrr.rr`r5r,r-r�rJr�r�r�r�r�r�rNr�r>r@r�r�rrrrOrrP�total_orderingr(rQr/rRr:�	hash_info�width�	NHASHBITSrLrNrirtr/r|r�r�rFr�r�r��cacher�r�rWr�r�r`r�r�rXr��machine�is_s390xrrY�
Py_TRACE_REFS�_jitr��_JIT_ENABLEDrZr[�	frozensetr�r�rr	rrrrr!r0r8r\rJr]r^r]r^r_r`ra�	coroutinercrbr�r�r�r?r�r�r�r�rgrorp�<module>r�sm��=��~��
�F�
G�G�������	�	��
�������2��2��2� ,�2�.=�2�?I�2��	2��	2�+�	2�-=�	2��
2�4�
2�6G�
2��2�(�2�*;�2��2�0�2�2<�2�>Q�2��2��2�5�2�7I�2��2��2�$�2�&5�2�7F�2��2�%�2�'5�2�7F�2��2�)�2� �!2� (�!2�"�#2�"4�#2�$�%2�$4�%2�&�'2�&/�'2�&1F�'2�(�)2�(3�)2�*#�+2�*%6�+2�*8K�+2�,�-2�,6�-2�,8G�-2�.#�/2�2�32�2�32�2 ,�32�2.=�32�2?H�32�4�52�4+�52�4-9�52�4;N�52�6�72�:�;2�>�?2�B�C2�F�G2�F#�G2�F%/�G2�F1E�G2�H�I2�H�I2�H+�I2�H-B�I2�HDN�I2�J�K2�J�K2�J8�K2�L�M2�L�M2�L'�M2�L)3�M2�N�O2�N+�O2�N-<�O2�N>L�O2�P�Q2�P*�Q2�P,;�Q2�R�S2�T�U2�V�W2�X%�Y2�Z�[2�\�]2�^(�_2�`�a2�`5�a2�`7D�a2�b�c2�b&�c2��|�����
����7�7�?�?�2�7�7�?�?�8�#<�=������� 0�1�
�
�W�W�_�_�]�
+�
��G�G�O�O�J�'�	�5�I�5����=�J�=�)�E�)��X�&�&����$����
�
�
�������
���*�
�"E$�N>�'�	7���6:�8��:�
/�"�u�"�U�"�u�"�U�"�!�"�J)�e�)�E�)�e�)�TY�)�%�T�2����$$�
�%�
��'�'�	����!�,�,�V�4�$�&��-�-�,�-�-�9�)��l�l�g�%�
�
�L�L�#�#�F�+�	�
�\�\�Y�
&�
��
�<�<�E�E�%/�!�Y�J��J�����,�
�

�,�,�&�
 ��
�$�$�W�	�J�>��,�,�"<�<���6�6�c�l�l�h�6���2�v�&�	�	�����������	,��O�
����������
��V�������

<�e�
<� ���<�<�7��
�"&�-�-��"6�%�"?��,�
����������]�F�3�
��&�&���	1�$�	1�t�	1�41�n���	/��	/�%�%�
$�
����������)��)�%�B�$*��y�/�/�0A�B�C��1�'���G��G�	
���S�=��3�4�
��"&��������������"����(��u��:���4��4�D"�P�F��
�S�j���#�g���#�g������>�	�%�%�@.�`
�$�O�+��!�8��8�(*��"�0�0��@�I�I�E�e�S��H�
K�

�
%��
�
�2��7�*�+�I�I�����/�I�I�%�4�4�5G�H�H��'�.�.�d�:��%�B�B�.B�*B���)�)�/�*D�F���� �J�J�
����#�<���#��#�<������<5�;��f��D��]�*OB�OB�d4�D�&�b��89�v.�*]�]�@3�D������
,�H�$�H�6;��,+-��D��+�	����;��;�"$0�$0�N;�#���
�L�	�	�	��;��
��������*��
��������;��-�
�M�M���	��H����4�D)�)�X-9�4�-9�^P�BN� �.����.��.�&��$�,
D� ���L��L�.���$��$�R�3�*�+��"0�J'"�$�'"�T*�#(�*�47�*�?C�*�D%�%�P���,��,���2�w��A�A�B�H�H�J�$6�$6�'�$A������*<�=�
���\�*�
��x�x�"�"�$���*�*�<�9O�P�� ����6M�N��$-�
��	.�$� ��("��"�2(�X�,)0�(9�(9��	"�5�p���
��
��������)��'��'����:��"��@	�������	� �&��2�&N�&N�R���B:�:��CP�
��
�s�h�h*�)h*

Youez - 2016 - github.com/yon3zu
LinuXploit