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੐)|#o0aڱ$I>}k&1`U#V?YsV x>{t1[I~D&(I$I/{H0fw"q"y%4 IXyE~M3 8XψL}qE$I[> nD?~sf ]o΁ cT6"?'_Ἣ $I>~.f|'!N?⟩0G KkXZE]ޡ;/&?k OۘH$IRۀwXӨ<7@PnS04aӶp.:@\IWQJ6sS%I$e5ڑv`3:x';wq_vpgHyXZ 3gЂ7{{EuԹn±}$I$8t;b|591nءQ"P6O5i }iR̈́%Q̄p!I䮢]O{H$IRϻ9s֧ a=`- aB\X0"+5"C1Hb?߮3x3&gşggl_hZ^,`5?ߎvĸ%̀M!OZC2#0x LJ0 Gw$I$I}<{Eb+y;iI,`ܚF:5ܛA8-O-|8K7s|#Z8a&><a&/VtbtLʌI$I$I$I$I$I$IRjDD%tEXtdate:create2022-05-31T04:40:26+00:00!Î%tEXtdate:modify2022-05-31T04:40:26+00:00|{2IENDB`Mini Shell

HOME


Mini Shell 1.0
DIR:/lib/python3.9/test/support/__pycache__/
Upload File :
Current File : //lib/python3.9/test/support/__pycache__/__init__.cpython-39.pyc
a

�RLg���	@s�dZedkred��ddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZ
ddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZgd�ZdZej
d	kr�e
��d
kr�dZdZd
Z dZ!Gdd�de"�Z#Gdd�de#�Z$Gdd�de#�Z%Gdd�dej&�Z'ej(�didd��Z)dd�Z*�djdd�dd �Z+d!d"�Z,d#d$�Z-d%d&�Z.d'd(�Z/�dkd)d*�Z0d+d,�Z1dZ2dZ3da4da5dZ6dZ7da8d-d.�Z9d/d0�Z:d1d2�Z;d3d4�Z<ej
�=d5��r�dld6d7�Z>d8d9�Z?d:d;�Z@d<d=�ZAd>d?�ZBnejCZ?ejDZ@d@d=�ZAdAd?�ZBdBdC�ZCdDdE�ZDdFdG�ZEdHdI�ZFdJdK�ZGdLdM�ZHdNdO�ZI�dmdPdQ�ZJdRdS�ZKdTdU�ZLdVdW�ZMdXdY�ZNdZd[�ZOd\ZPd]ZQe�ReS�Td^��=d_�d`�ZU�dndbdc�ZV�dodedf�ZW�dpdhdi�ZX�dqdkdl�ZYej
�=dm�ZZe[edn�Z\ej
d	k�r&e\�r dondpZ]ndZ]ej^dmk�r<dqZ_ndrZ_ds�`e_e�a��Z_dtZbduZcdvD]DZdze�ee�fed��edk�r|eg�Wneg�y�Yn0edZc�q��q\e_dwZhej
dxk�r�ddliZiei�jdyeh�Zhe�k�ZldZmej^dzk�r4e�n�j
d{k�rte_d|Zmzem�oel�Wnep�yYn0eqd}emelf�dZmn@ej
dxk�rtzd~�rel�Wn$es�yre_d�reld��ZmYn0dZtd�D]@Z^ze^�rel�Wn*es�y�e�fe_�e^ZtY�q�Yn0�q|ec�r�e_ecZundZueu�p�e_Zve�w�ZxdZydZzej(�drd�d���Z{ej(�dsd�d���Z|ej(�dtd�d���Z}e[ed���r<ej(d�d���Z~ej��ej��e���Z�ej��e��Z�ej��e�d��Z��dud�d��Z�d�d��Z�d�d��Z�d�d��Z��dvddd��d�d��Z��dwddd��d�d��Z�d�d��Z�Gd�d��d�e��Z��dxd�d��Z�ej(d�d���Z�ej(due�dfd�d���Z�ej(d�d���Z�Gd�d��d�e��Z�Gd�d��d�ej�j��Z�Gd�d��d�e��Z�Gd�d��d�e��Z�e�e�ej�d��Z�e�e�ej�d��Z�e�e�ej�d��Z�ej(d�d���Z�d�d��Z�d�d��Z�d�d��Z�d�d��Z�ej(d�d���Z�d�d��Z�d�Z�d�Z�e[ed���r�d�e�Z�d�Z�e�d�Z�d�dĄZ�d�dƄZ�d�Z�d�Z�d�dʄZ�d�d̄Z�d�d΄Z�d�Z�d�e�Z�d{e�Z�d�e�Z�ej�Z�d�dӄZ�Gd�dՄdՃZ��dyd�dׄZ�d�dلZ�Gd�dۄdۃZ�d�d݄Z�d�d߄Z�d�d�Z��dzd�d�Z�d�d�Z�d�d�Z�d�d�Z�d�d�Z�d�d�Z�d�d�Z�da�da�da�d�d�Z�d�d�Zːd{d�d��Z�d�d��Z�d�d��Z�d�d��Z�eƒ�o"ej
d	k�o"e��d��Z�e�jdu�o4e�Z�e�Re�d��ZӐd|d�d��ZԐd�d�ZՐd�d�Z֐d�d�Z�daؐd�d�Zِd�d	�Zڐd
�d�Z�ej(�d}�d�d
��Zܐd~�d�d�Zݐd�d�Z�ej(�d�d�d��Z�ej(�d�d��Z�ej(�d�d��Z�d�d�Z�d�d�Z�G�d�d��de��Z�da�d�d�Z�d �d!�Z�da�d"�d#�Z�G�d$�d%��d%�Z�da�d&�d'�Z�d(�d)�Z�d*�d+�Z�d,�d-�Z�d�d.��d/�d0�Z�d��d1�d2�Z�d��d3�d4�Z�G�d5�d6��d6�Z�d7�d8�Z�d9�d:�Z��d��d;�d<�Z�gf�d=�d>�Z�da��d?�d@�Z�ej(�dA�dB��Z��dC�dD�Z�G�dE�dF��dF�Z��dG�dH�Z�G�dI�dJ��dJ�Z�G�dK�dL��dL�Z�e���ZG�dM�dN��dN��Z�e��Ze�jG�dO�dP��dP���Z�e��Ze�jG�dQ�dR��dR���Z�e��Z�dS�dT��Ze�j	�j
�Z�e�dUv�sDJ��dV�dW��ZG�dX�dY��dY��Z
G�dZ�d[��d[��Zd�d\��d]�d^��Z�d_�d`��Z�da�db��Zej(�dc�dd���Z�de�df��Zej(�dg�dh���ZdS(�z7Supporting definitions for the Python regression tests.ztest.supportz.support must be imported from the test package�N�)�get_test_runner)^�
PIPE_MAX_SIZE�verbose�
max_memuse�
use_resources�failfast�Error�
TestFailed�
TestDidNotRun�ResourceDenied�
import_module�import_fresh_module�CleanImport�unload�forget�record_original_stdout�get_original_stdout�captured_stdout�captured_stdin�captured_stderr�TESTFN�SAVEDCWD�unlink�rmtree�temp_cwd�findfile�create_empty_file�can_symlink�fs_is_case_insensitive�is_resource_enabled�requires�requires_freebsd_version�requires_linux_version�requires_mac_ver�check_syntax_error�check_syntax_warning�TransientResource�time_out�socket_peer_reset�ioerror_peer_reset�BasicTestRunner�run_unittest�run_doctest�skip_unless_symlink�
requires_gzip�requires_bz2�
requires_lzma�
bigmemtest�bigaddrspacetest�cpython_only�
get_attribute�requires_IEEE_754�skip_unless_xattr�
requires_zlib�anticipate_failure�load_package_tests�detect_api_mismatch�check__all__�skip_if_buggy_ucrt_strfptime�ignore_warnings�	is_jython�
is_android�check_impl_detail�
unix_shell�setswitchinterval�open_urlresource�
temp_umask�
reap_children�threading_setup�threading_cleanup�reap_threads�
start_threads�check_warnings�check_no_resource_warning�check_no_warnings�EnvironmentVarGuard�run_with_locale�	swap_item�	swap_attr�Matcher�set_memlimit�SuppressCrashReport�sortdict�run_with_tz�PGO�missing_compiler_executable�fd_count�	ALWAYS_EQ�NEVER_EQ�LARGEST�SMALLEST�LOOPBACK_TIMEOUT�INTERNET_TIMEOUT�
SHORT_TIMEOUT�LONG_TIMEOUTg@�win32ZARM�
gN@g>@g�r@c@seZdZdZdS)r	z*Base class for regression test exceptions.N��__name__�
__module__�__qualname__�__doc__�riri�+/usr/lib/python3.9/test/support/__init__.pyr	vsr	c@seZdZdZdS)r
zTest failed.Nrdriririrjr
ysr
c@seZdZdZdS)rzTest did not run any subtests.Nrdriririrjr|src@seZdZdZdS)rz�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.
    NrdriririrjrsrTccsL|rBt���$t�ddt�dVWd�qH1s60YndVdS)z�Context manager to suppress package and module deprecation
    warnings when importing them.

    If ignore is False, this context manager has no effect.
    �ignorez.+ (module|package)N)�warnings�catch_warnings�filterwarnings�DeprecationWarning�rkririrj�_ignore_deprecated_imports�s
�&rqcs�fdd�}|S)z�Decorator to suppress deprecation warnings.

    Use of context managers to hide warnings make diffs
    more noisy and tools like 'git blame' less useful.
    cst�����fdd��}|S)NcsPt���4tjd�d��|g|�Ri|��Wd�S1sB0YdS)Nrk��category)rlrm�simplefilter)�self�args�kwargs)rs�testrirj�wrapper�s
z3ignore_warnings.<locals>.decorator.<locals>.wrapper��	functools�wraps)rxryrr�rxrj�	decorator�sz"ignore_warnings.<locals>.decoratorri)rsr~rirrrjr>�sr>Fri)�required_oncCs�t|��pzt�|�WWd�Styh}z,tj�t|��rF�t�	t
|���WYd}~n
d}~00Wd�n1s~0YdS)acImport and return the module to be tested, raising SkipTest if
    it is not available.

    If deprecated is True, any module or package deprecation messages
    will be suppressed. If a module is required on a platform but optional for
    others, set required_on to an iterable of platform prefixes which will be
    compared against sys.platform.
    N)rq�	importlibr
�ImportError�sys�platform�
startswith�tuple�unittest�SkipTest�str)�name�
deprecatedr�msgririrjr
�s	
r
cCsZ|tjvrt|�tj|=ttj�D]0}||ks>|�|d�r$tj|||<tj|=q$dS)zyHelper function to save and remove a module from sys.modules

    Raise ImportError if the module can't be imported.
    �.N)r��modules�
__import__�listr�)r��orig_modules�modnameririrj�_save_and_remove_module�s
r�cCs<d}ztj|||<Wnty,d}Yn0dtj|<|S)z�Helper function to save and block a module in sys.modules

    Return True if the module was in sys.modules, False otherwise.
    TFN�r�r��KeyError)r�r�Zsavedririrj�_save_and_block_module�s

r�cCs|r
tjSdd�S)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.
    cSs|S�Nri��fririrj�<lambda>��z$anticipate_failure.<locals>.<lambda>)r�ZexpectedFailure)Z	conditionririrjr9�sr9cCsF|durd}tj�tj�tj�t���}|j|||d�}|�|�|S)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)
    Nztest*)Z	start_dirZ
top_level_dir�pattern)�os�path�dirname�__file__ZdiscoverZaddTests)Zpkg_dir�loaderZstandard_testsr�Ztop_dirZ
package_testsririrjr:�s
���
r:cCs�t|���i}g}t||�z�z@|D]}t||�q$|D]}t||�s8|�|�q8t�|�}Wntytd}Yn0W|��D]\}	}
|
tj	|	<q�|D]}tj	|=q�n0|��D]\}	}
|
tj	|	<q�|D]}tj	|=q�0|Wd�S1s�0YdS)a�Import and return a module, deliberately bypassing sys.modules.

    This function imports and returns a fresh copy of the named Python module
    by removing the named module from sys.modules before doing the import.
    Note that unlike reload, the original module is not affected by
    this operation.

    *fresh* is an iterable of additional module names that are also removed
    from the sys.modules cache before doing the import.

    *blocked* is an iterable of module names that are replaced with None
    in the module cache during the import to ensure that attempts to import
    them raise ImportError.

    The named module and any modules named in the *fresh* and *blocked*
    parameters are saved before starting the import and then reinserted into
    sys.modules when the fresh import is complete.

    Module and package deprecation messages are suppressed during this import
    if *deprecated* is True.

    This function will raise ImportError if the named module cannot be
    imported.
    N)
rqr�r��appendr�r
r��itemsr�r�)r�ZfreshZblockedr�r�Znames_to_removeZ
fresh_nameZblocked_nameZfresh_moduleZ	orig_name�moduleZname_to_removeririrjr�s,


�rcCs<zt||�}Wn$ty2t�d||f��Yn0|SdS)z?Get an attribute, raising SkipTest if AttributeError is raised.zobject %r has no attribute %rN)�getattr�AttributeErrorr�r�)�objr�Z	attributeririrjr5%s
r5cCs|adSr�)�_original_stdout)�stdoutririrjr:srcCs
tptjSr�)r�r�r�riririrjr>srcCs$ztj|=WntyYn0dSr�r�)r�ririrjrAsrc
Gsxz
||�WStyr}zPtdkrHtd|jj|f�td|j|f�t�|tj�||�WYd}~Sd}~00dS)N�z%s: %szre-run %s%r)	�OSErrorr�print�	__class__rer��chmod�stat�S_IRWXU)r��funcrv�errririrj�
_force_runGs
r��wincCs�||�|r|}ntj�|�\}}|p(d}d}|dkrjt�|�}|rJ|sVn||vsVdSt�|�|d9}q.tjd|tdd�dS)Nr����MbP?g�?r�z)tests may fail, delete still pending for ���
stacklevel)	r�r��split�listdir�time�sleeprl�warn�RuntimeWarning)r��pathname�waitallr�r��timeout�Lririrj�_waitforRs



�r�cCsttj|�dSr�)r�r�r��filenameririrj�_unlinkssr�cCsttj|�dSr�)r�r��rmdir�r�ririrj�_rmdirvsr�cs,�fdd��t�|dd�tdd�|�dS)Ncs�t|tj|�D]�}tj�||�}zt�|�j}Wn>tyn}z&td||ft	j
d�d}WYd}~n
d}~00t�|�r�t
�|dd�t|tj|�qt|tj|�qdS)Nz-support.rmtree(): os.lstat(%r) failed with %s��filerT�r�)r�r�r�r��join�lstat�st_moder�r�r��
__stderr__r��S_ISDIRr�r�r)r�r��fullname�mode�exc��
_rmtree_innerrirjr�zs�
�_rmtree.<locals>._rmtree_innerTr�cSst|tj|�Sr�)r�r�r�)�pririrjr��r�z_rmtree.<locals>.<lambda>)r��r�rir�rj�_rmtreeysr�cCs\zddl}WntyYn:0|�t|�d�}|jj�||t|��}|rX|d|�S|S)Nrr�)�ctypesr�Zcreate_unicode_buffer�len�windllZkernel32ZGetLongPathNameW)r�r��bufferZlengthririrj�	_longpath�s�r�csNddl}z|�|�WdSty*Yn0�fdd���|�t�|�dS)Nrc	s~t|tj|�D]j}tj�||�}zt�|�j}WntyFd}Yn0t�	|�rj�|�t|tj
|�qt|tj|�qdS�Nr)r�r�r�r�r�r�r�r�r�r�r�r)r�r�r�r�r�rirjr��s

r�)�shutilrr�r�r�)r�r�rir�rjr��s
cCs|Sr�rir�ririrjr��sc	Cs(zt|�Wnttfy"Yn0dSr�)r��FileNotFoundError�NotADirectoryErrorr�ririrjr�srcCs$zt|�WntyYn0dSr�)r�r�r�ririrjr��sr�cCs$zt|�WntyYn0dSr�)r�r�r�ririrjr�srcCsBtj�|�}tj�tj�|��}tj�||d�}t�||�|S)aMove a PEP 3147/488 pyc file to its legacy pyc location.

    :param source: The file system path to the source file.  The source file
        does not need to exist, however the PEP 3147/488 pyc file must exist.
    :return: The file system path to the legacy pyc file.
    �c)	r��util�cache_from_sourcer�r�r��abspathr��rename)�sourceZpyc_fileZup_oneZ
legacy_pycririrj�make_legacy_pyc�s
r�cCsTt|�tjD]@}tj�||d�}t|d�dD]}ttjj||d��q4qdS)z�'Forget' a module was ever imported.

    This removes the module from sys.modules and deletes any PEP 3147/488 or
    legacy .pyc files.
    z.pyr�)�rr�)�optimizationN)	rr�r�r�r�rr�r�r�)r�r�r��optririrjr�s
rc
sttd�rtjSd}tj�d�r0t��r0d}�nBtj�d�r�ddl�ddl�d}d}G�fdd�d�j	�}�j
j}|��}|s���
��|�}�j��}|�||��|���|���|��}|sƈ�
��t|j|@�s�d}n�tjd	k�rrdd
lm}	m�m}
m	}ddlm}|	�|d��}
|
��dk�r,d
}nFG�fdd�d|�}|�}|
|�}|
�|�dk�sn|
�|�dk�rrd}|�sz.ddlm}|�}|� �|�!�|�"�Wn^t#�y}zDt$|�}t%|�dk�r�|dd�d}d�&t'|�j(|�}WYd}~n
d}~00|t_)|t_tjS)N�resultr�z(gui is not available on Windows IoT Corerrcs.eZdZd�jjfd�jjfd�jjfgZdS)z*_is_gui_available.<locals>.USEROBJECTFLAGSZfInheritZ	fReserved�dwFlagsN)rerfrg�wintypesZBOOL�DWORD�_fields_ri)r�rirj�USEROBJECTFLAGS�s


�r�z,gui not available (WSF_VISIBLE flag not set)�darwin)�cdll�c_int�pointer�	Structure)�find_libraryZApplicationServicesz0gui tests cannot run without OS X window managercseZdZd�fd�fgZdS)z._is_gui_available.<locals>.ProcessSerialNumberZ
highLongOfPSNZlowLongOfPSNN)rerfrgr�ri)r�rirj�ProcessSerialNumbers�r�z#cannot run without OS X gui process)�Tk�2z [...]zTk unavailable due to {}: {})*�hasattr�_is_gui_availabler�r�r�r�Zwin32_is_iotr�Zctypes.wintypesr�r�Zuser32ZGetProcessWindowStationZWinErrorr�r�ZGetUserObjectInformationWZbyrefZsizeof�boolr�r�r�r�Zctypes.utilr�ZLoadLibraryZCGMainDisplayIDZGetCurrentProcessZSetFrontProcessZtkinterr�Zwithdraw�updateZdestroy�	Exceptionr�r��format�typere�reason)rZ	UOI_FLAGSZWSF_VISIBLEr��dll�hZuofZneeded�resr�r�r�r�Zapp_servicesr�ZpsnZpsn_pr��root�eZ
err_stringri)r�r�rjr��sr

���r�cCstdup|tvS)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��resourceririrjr 1sr cCs<t|�s |durd|}t|��|dkr8t�s8ttj��dS)z@Raise ResourceDenied if the specified resource is not available.Nz"Use of the %r resource not enabled�gui)r rr�r)r
r�ririrjr!9sr!cCs�ddl}d�tt|��}|���dd�d}|��|krrzttt|�d���}Wnt	yfd}Yqv0||k}nd}t
�||�d|�d|���S)	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.
    rNr��-rFz	 version z or higher required, not )r�r��mapr��releaser��systemr��int�
ValueErrorr��skipIf)�sysname�min_versionr��min_version_txt�version_txt�version�skipririrj�_requires_unix_versionBs 

��rcGs
td|�S)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.
    ZFreeBSD�r�rririrjr"]sr"cGs
td|�S)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.
    ZLinuxrrririrjr#fsr#cs�fdd�}|S)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.
    cs"t�����fdd��}�|_|S)Ncsztjdkrlt��d}zttt|�d���}Wnty@Yn,0|�krld�tt	���}t
�d||f���|i|��S)Nr�rr�z&Mac OS X %s or higher required, not %s)r�r�Zmac_verr�r
rr�rr�r�r�r�)rv�kwrrr)r�rrirjryws
��z4requires_mac_ver.<locals>.decorator.<locals>.wrapper)r{r|r�r�ryr�r�rjr~vsz#requires_mac_ver.<locals>.decoratorri)rr~rirrjr$osr$cst����fdd��}|S)z5Skip the test on TLS certificate validation failures.c
sTz�|i|��Wn<tyN}z$dt|�vr8t�d���WYd}~n
d}~00dS)NZCERTIFICATE_VERIFY_FAILEDz.system does not contain necessary certificates)r�r�r�r�)rvrwrr�rirj�dec�s
z&system_must_validate_cert.<locals>.decrz)r�rrir�rj�system_must_validate_cert�sr i@iZdoubleZIEEEztest requires IEEE 754 doubles�
requires zlibcCs0zddl}Wnty"d}Yn0t�||�Sr�)�zlibr�r��
skipUnless)rr"ririrjr8�s

r8�
requires gzipcCs0zddl}Wnty"d}Yn0t�||�Sr�)�gzipr�r�r#)rr%ririrjr/�s

r/�requires bz2cCs0zddl}Wnty"d}Yn0t�||�Sr�)�bz2r�r�r#)rr'ririrjr0�s

r0�
requires lzmacCs0zddl}Wnty"d}Yn0t�||�Sr�)�lzmar�r�r#)rr)ririrjr1�s

r1ZjavaZgetandroidapilevelz/system/bin/shz/bin/shz$testz@testz	{}_{}_tmpzhttp://www.pythontest.netr�)�æuİuŁuφuКuאu،uتuก� u€u-àòɘŁğr�ZNFD�ntr�u-共Ł♡ͣ�ztWARNING: The filename %r CAN be encoded by the filesystem encoding (%s). Unicode filename tests may not be effective��s-��surrogateescape)s�w�r-s���s�s��c
cs�ddl}d}|dur.|��}d}tj�|�}nZzt�|�d}WnFty�}z.|sV�tjd|�d|��t	dd�WYd}~n
d}~00|r�t�
�}z"|VW|r�|t�
�kr�t|�n|r�|t�
�kr�t|�0dS)	a�Return a context manager that creates a temporary directory.

    Arguments:

      path: the directory to create temporarily.  If omitted or None,
        defaults to creating a temporary directory using tempfile.mkdtemp.

      quiet: if False (the default), the context manager raises an exception
        on error.  Otherwise, if the path is specified and cannot be
        created, only a warning is issued.

    rNFTz5tests may fail, unable to create temporary directory �: �r�)�tempfile�mkdtempr�r��realpath�mkdirr�rlr�r��getpidr)r��quietr1Zdir_createdr��pidririrj�temp_diris6
���
�r8c
cs�t��}zt�tj�|��WnFtyd}z.|s4�tjd|�d|��tdd�WYd}~n
d}~00zt��VWt�|�nt�|�0dS)agReturn a context manager that changes the current working directory.

    Arguments:

      path: the directory to use as the temporary current working directory.

      quiet: if False (the default), the context manager raises an exception
        on error.  Otherwise, it issues only a warning and keeps the current
        working directory the same.

    zBtests may fail, unable to change the current working directory to r/r0r�N)	r��getcwd�chdirr�r3r�rlr�r�)r�r6Z	saved_dirr�ririrj�
change_cwd�s 
���r;�tempcwdc	csbt||d��B}t||d��}|VWd�n1s60YWd�n1sT0YdS)a�
    Context manager that temporarily creates and changes the CWD.

    The function temporarily changes the current working directory
    after creating a temporary directory in the current directory with
    name *name*.  If *name* is None, the temporary directory is
    created using tempfile.mkdtemp.

    If *quiet* is False (default) and it is not possible to
    create or change the CWD, an error is raised.  If *quiet* is True,
    only a warning is raised and the original CWD is used.

    )r�r6)r6N)r8r;)r�r6Z	temp_pathZcwd_dirririrjr�sr�umaskc	cs0t�|�}zdVWt�|�nt�|�0dS)z8Context manager that temporarily sets the process umask.N)r�r=)r=ZoldmaskririrjrE�s
rE�datacCsbtj�|�r|S|dur&tj�||�}tgtj}|D]&}tj�||�}tj�|�r6|Sq6|S)a[Try 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.
    N)r�r��isabsr��
TEST_HOME_DIRr��exists)r�Zsubdirr��dn�fnririrjr�srcCs(t�|tjtjBtjB�}t�|�dS)z>Create an empty file. If the file already exists, truncate it.N)r��open�O_WRONLY�O_CREAT�O_TRUNC�close)r��fdririrjr�srcCs,t|���}dd�|D�}d�|�}d|S)z%Like repr(dict), but in sorted order.cSsg|]}d|�qS)z%r: %rri)�.0Zpairririrj�
<listcomp>�r�zsortdict.<locals>.<listcomp>z, z{%s})�sortedr�r�)�dictr�Z	reprpairsZ
withcommasririrjrU�s
rUcCs<ttd�}z|��W|��tt�S|��tt�0dS)z`
    Create an invalid file descriptor by opening and closing a file and return
    its fd.
    �wbN)rDr�filenorHrr�ririrj�make_bad_fd�s
��rP��lineno�offsetcCs�|�t|��}t|dd�Wd�n1s.0Y|j}|�|j�|dur`|�|j|�|�|j�|dur�|�|j|�dS)Nz
<test string>�exec)ZassertRaisesRegex�SyntaxError�compileZ	exception�assertIsNotNonerR�assertEqualrS)�testcase�	statement�errtextrRrS�cmr�ririrjr%�s*r%cCstjdd��(}t�dt�t|dd�Wd�n1s:0Y|�t|�d|�|\}|�t|j	t�|j	�|r�|�
t|j�|�|�|j
d�|�|j�|dur�|�|j|�tjdd��.}t�dt�t|||||d�Wd�n1s�0Y|�|g�dS)	NT��record�alwaysz
<testcase>rTr�errorrQ)rlrmrt�
SyntaxWarningrVrXr��
assertTrue�
issubclassrsZassertRegexr��messager�rWrRr%)rYrZr[rRrS�warnsr�ririrjr&s$*�$r&cs�ddl}ddl}zddl}Wnty2d}Yn0��dd��|j�|�d�d�d}tj	�
t|�}���fdd�}tj	�|�r�||�}|dur�|St
|�td�tr�td	|t�d
�|j��}	|r�|	j�d�|	j|td�}|�r
|j�d
�dk�r
|j|d�}z\t|d��4}
|��}|�r<|
�|�|��}�q Wd�n1�sR0YW|��n
|��0||�}|du�r�|Std|��dS)Nr�checkr��/���csDt|g��Ri���}�dur"|S�|�r8|�d�|S|��dSr�)rD�seekrH)rCr��rvrfrrirj�check_valid_file0s
z*open_urlresource.<locals>.check_valid_fileZurlfetchz	fetching %s ...r�)zAccept-Encodingr%�r�zContent-Encodingr%)ZfileobjrNzinvalid resource %r)Zurllib.requestZurllib.parser%r��pop�parseZurlparser�r�r�r��
TEST_DATA_DIRrArr!rr�rZrequestZbuild_openerZ
addheadersr�rDr_Zheaders�getZGzipFile�read�writerHr
)ZurlrvrZurllibr%r�rCrkr�Zopener�out�srirjrjrD#sD
	

.
rDc@s4eZdZdZdd�Zdd�Zedd��Zdd	�Zd
S)�WarningsRecorderzyConvenience wrapper for the warnings list returned on
       entry to the warnings.catch_warnings() context manager.
    cCs||_d|_dSr���	_warnings�_last)ruZ
warnings_listririrj�__init__]szWarningsRecorder.__init__cCsDt|j�|jkr t|jd|�S|tjjvr0dStd||f��dS)Nrhz%r has no attribute %r)r�rwrxr�rl�WarningMessage�_WARNING_DETAILSr�)ru�attrririrj�__getattr__as
zWarningsRecorder.__getattr__cCs|j|jd�Sr�rv�ruririrjrlhszWarningsRecorder.warningscCst|j�|_dSr�)r�rwrxr~ririrj�resetlszWarningsRecorder.resetN)	rerfrgrhryr}�propertyrlrriririrjruYs
ruccst�d�}|j�d�}|r"|��tjdd��*}tjd�d�t	|�VWd�n1s^0Yt
|�}g}|D]j\}}d}	|dd�D]8}|j}
t�
|t|
�tj�r�t|
j|�r�d}	|�|�q�|	sx|sx|�||jf�qx|r�td	|d
��|�rtd|d
��dS)z�Catch the warnings, then check if all the expected
    warnings have been raised and re-raise unexpected warnings.
    If 'quiet' is True, only re-raise the unexpected warnings.
    r�Z__warningregistry__Tr]rlr_NFzunhandled warning %srz)filter (%r, %s) did not catch any warning)r��	_getframe�	f_globalsrp�clearrlrmr�rtrur�rd�re�matchr��Ircr��remover�re�AssertionError)�filtersr6�frame�registry�wZreraiseZmissingr��cat�seenZwarningririrj�_filterwarningsps4
(
��r�cOs.|�d�}|s$dtff}|dur$d}t||�S)a�Context manager to silence warnings.

    Accept 2-tuples as positional arguments:
        ("message regexp", WarningCategory)

    Optional argument:
     - if 'quiet' is True, it does not fail if a filter catches nothing
        (default True without argument,
         default False if some filters are defined)

    Without argument, it defaults to:
        check_warnings(("", Warning), quiet=True)
    r6r�NT)rp�Warningr�)r�rwr6ririrjrK�s

rKccs\tjdd��0}tjd||d�dV|r.t�Wd�n1sB0Y|�|g�dS)a�Context manager to check that no warnings are emitted.

    This context manager enables a given warning within its scope
    and checks that no warnings are emitted even with that warning
    enabled.

    If force_gc is True, a garbage collection is attempted before checking
    for warnings. This may help to catch warnings emitted when objects
    are deleted, such as ResourceWarning.

    Other keyword arguments are passed to warnings.filterwarnings().
    Tr]r_)rdrsN)rlrmrn�
gc_collectrX)rYrdrs�force_gcreririrjrM�s�$rMccs8t|tdd��dVWd�n1s*0YdS)a"Context manager to check that no ResourceWarning is emitted.

    Usage:

        with check_no_resource_warning(self):
            f = open(...)
            ...
            del f

    You must remove the object which may emit ResourceWarning before
    the end of the context manager.
    T)rsr�N)rM�ResourceWarning)rYririrjrL�srLc@s(eZdZdZdd�Zdd�Zdd�ZdS)	ra,Context manager to force import to return a new module reference.

    This is useful for testing module-level behaviours, such as
    the emission of a DeprecationWarning on import.

    Use like this:

        with CleanImport("foo"):
            importlib.import_module("foo") # new reference
    cGsJtj��|_|D]4}|tjvrtj|}|j|kr<tj|j=tj|=qdSr�)r�r��copy�original_modulesre)ruZmodule_namesZmodule_namer�ririrjry�s



zCleanImport.__init__cCs|Sr�rir~ririrj�	__enter__�szCleanImport.__enter__cGstj�|j�dSr�)r�r�r�r��ru�
ignore_excririrj�__exit__�szCleanImport.__exit__N�rerfrgrhryr�r�riririrjr�s
rc@sheZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�ZdS)rNz_Class to help protect the environment variable properly.  Can be used as
    a context manager.cCstj|_i|_dSr�)r��environ�_environ�_changedr~ririrjry�szEnvironmentVarGuard.__init__cCs
|j|Sr�)r��ru�envvarririrj�__getitem__szEnvironmentVarGuard.__getitem__cCs*||jvr|j�|�|j|<||j|<dSr��r�r�rp�rur��valueririrj�__setitem__s
zEnvironmentVarGuard.__setitem__cCs2||jvr|j�|�|j|<||jvr.|j|=dSr�r�r�ririrj�__delitem__s

zEnvironmentVarGuard.__delitem__cCs
|j��Sr�)r��keysr~ririrjr�szEnvironmentVarGuard.keyscCs
t|j�Sr�)�iterr�r~ririrj�__iter__szEnvironmentVarGuard.__iter__cCs
t|j�Sr�)r�r�r~ririrj�__len__szEnvironmentVarGuard.__len__cCs|||<dSr�rir�ririrj�setszEnvironmentVarGuard.setcCs
||=dSr�rir�ririrj�unsetszEnvironmentVarGuard.unsetcCs|Sr�rir~ririrjr�!szEnvironmentVarGuard.__enter__cGsF|j��D].\}}|dur.||jvr8|j|=q
||j|<q
|jt_dSr�)r�r�r�r�r�)rur��k�vririrjr�$s

zEnvironmentVarGuard.__exit__N)rerfrgrhryr�r�r�r�r�r�r�r�r�r�riririrjrN�srNc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�
DirsOnSysPatha�Context manager to temporarily add directories to sys.path.

    This makes a copy of sys.path, appends any directories given
    as positional arguments, then reverts sys.path to the copied
    settings when the context ends.

    Note that *all* sys.path modifications in the body of the
    context manager, including replacement of the object,
    will be reverted at the end of the block.
    cGs(tjdd�|_tj|_tj�|�dSr�)r�r��original_value�original_object�extend)ru�pathsririrjry:szDirsOnSysPath.__init__cCs|Sr�rir~ririrjr�?szDirsOnSysPath.__enter__cGs|jt_|jtjdd�<dSr�)r�r�r�r�r�ririrjr�BszDirsOnSysPath.__exit__Nr�riririrjr�.sr�c@s*eZdZdZdd�Zdd�Zd	dd�ZdS)
r'z�Raise ResourceDenied if an exception is raised while the context manager
    is in effect that matches the specified exception and attributes.cKs||_||_dSr�)r��attrs)rur�rwririrjryLszTransientResource.__init__cCs|Sr�rir~ririrjr�PszTransientResource.__enter__NcCsT|durPt|j|�rP|j��D](\}}t||�s4qPt||�|krqPqtd��dS)z�If type_ is a subclass of self.exc and value has attributes matching
        self.attrs, raise ResourceDenied.  Otherwise let the exception
        propagate (if any).Nz%an optional resource is not available)rcr�r�r�r�r�r)ru�type_r��	tracebackr|Z
attr_valueririrjr�Ss
zTransientResource.__exit__)NNNr�riririrjr'Gsr')�errnoc
csRddl}tt|�}tt||���ztt|�VWtt||�ntt||�0dS)z�Return a context manager used by captured_stdout/stdin/stderr
    that temporarily replaces the sys stream *stream_name* with a StringIO.rN)�ior�r��setattr�StringIO)Zstream_namer�Zorig_stdoutririrj�captured_outpuths
r�cCstd�S)z�Capture the output of sys.stdout:

       with captured_stdout() as stdout:
           print("hello")
       self.assertEqual(stdout.getvalue(), "hello\n")
    r��r�riririrjrtsrcCstd�S)z�Capture the output of sys.stderr:

       with captured_stderr() as stderr:
           print("hello", file=sys.stderr)
       self.assertEqual(stderr.getvalue(), "hello\n")
    �stderrr�riririrjr}srcCstd�S)a	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�riririrjr�s
rcCs2ddl}|��trt�d�|��|��dS)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.
    rN皙�����?)�gcZcollectr?r�r�)r�ririrjr��s

r�ccsBddl}|��}|��zdVW|r>|��n|r<|��0dSr�)r�Z	isenabled�disable�enable)r�Zhave_gcririrj�
disable_gc�s
�r�cCs6t�d�pd}d}|��D]}|�d�r|}q|dvS)z,Find if Python was built with optimizations.Z	PY_CFLAGSr�z-O)r�z-O0z-Og)�	sysconfig�get_config_varr�r�)ZcflagsZ	final_optr�ririrj�python_is_optimized�s
r�ZnPZ0nZ
getobjectsZ2PZ0P�ncCst�t|t�Sr�)�struct�calcsize�_header�_align�Zfmtririrj�calcobjsize�sr�cCst�t|t�Sr�)r�r��_vheaderr�r�ririrj�calcvobjsize�sr�i@icCspddl}t�|�}t|�tkr(|jt@sBt|�tkrLt|�jt@rL||j7}dt|�||f}|�|||�dS)Nrz&wrong size for %s: got %d, expected %d)	�_testinternalcapir��	getsizeofr�	__flags__�_TPFLAGS_HEAPTYPE�_TPFLAGS_HAVE_GCZSIZEOF_PYGC_HEADrX)rx�o�sizer�r�r�ririrj�check_sizeof�s

��
�r�cs��fdd�}|S)Ncs$���fdd�}�j|_�j|_|S)Nc
s�z ddl}t|��}|�|�}Wn&ty4�YnBd}}Yn00�D](}z|�||�WqvWqLYqL0qLz&�|i|��W|r�|r�|�||�Sn|r�|r�|�||�0dSr�)�localer��	setlocaler�)rv�kwdsr�rsZorig_localeZloc)�catstrr��localesrirj�inner�s.

��z1run_with_locale.<locals>.decorator.<locals>.inner�rerh�r�r��r�r�rrjr~�sz"run_with_locale.<locals>.decoratorri)r�r�r~rir�rjrO�srOcs�fdd�}|S)Ncs"��fdd�}�j|_�j|_|S)Nc	s�z
tj}Wnty&t�d��Yn0dtjvr>tjd}nd}�tjd<|�zH�|i|��W|durttjd=n
|tjd<t��S|tjd<t��n&|dur�tjd=n
|tjd<t��0dS)Nztzset requiredZTZ)r��tzsetr�r�r�r�r�)rvr�r�Zorig_tz)r��tzrirjr�s0




�

�

z-run_with_tz.<locals>.decorator.<locals>.innerr�r��r�rrjr~�szrun_with_tz.<locals>.decoratorri)r�r~rir�rjrV�srVi�r�cCs�dttdtd�}t�d|tjtjB�}|dur>td|f��tt|�	d��||�	d��
��}|a|tkrrt}|t
dkr�td|f��|adS)Nr�)r��m�g�tz(\d+(\.\d+)?) (K|M|G|T)b?$zInvalid memory limit %rrr0z$Memory limit %r too low to be useful)�_1M�_1Gr�r��
IGNORECASE�VERBOSErr�float�group�lower�real_max_memuse�MAX_Py_ssize_t�_2Gr)�limitZsizesr�ZmemlimitririrjrS(s"�
�$rSc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�_MemoryWatchdogz`An object which periodically watches the process' memory consumption
    and prints it out.
    cCsdjt��d�|_d|_dS)Nz/proc/{pid}/statm)r7F)rr�r5�procfile�startedr~ririrjryBsz_MemoryWatchdog.__init__c
Cs�zt|jd�}WnBtyR}z*t�d�|�t�tj�	�WYd}~dSd}~00|�2t
d�}tjtj
|g|tjd�|_Wd�n1s�0Yd|_dS)N�rz!/proc not available for stats: {}zmemory_watchdog.py)r�r�T)rDr�r�rlr�rr�r�r��flushr�
subprocess�Popen�
executableZDEVNULL�mem_watchdogr�)rur�rZwatchdog_scriptririrj�startFs�
�&z_MemoryWatchdog.startcCs|jr|j��|j��dSr�)r�r�Z	terminate�waitr~ririrj�stopVs
z_MemoryWatchdog.stopN)rerfrgrhryr�r�riririrjr�=sr�cs���fdd�}|S)atDecorator 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.
    cs ���fdd����_��_�S)Ncs��j}�j}tsd}n|}ts"�sDt||krDt�d||d��trztrzt�tdj||dd��t�}|�	�nd}z�||�W|r�|�
�Sn|r�|�
�0dS)Ni�'not enough memory: %.1fG minimum needed�@z* ... expected peak memory use: {peak:.1f}G)Zpeak)r��memuser�r�r�rr�rr�r�r�)rur�r�maxsizeZwatchdog)�dry_runr�ryrirjryjs<
�
��
�

��z.bigmemtest.<locals>.decorator.<locals>.wrapper)r�rr��rrr��r�ryrjr~iszbigmemtest.<locals>.decoratorri)r�rrr~rirrjr2\s
!r2cs�fdd�}|S)z0Decorator for tests that fill the address space.csDttkr8tdkr$tdkr$t�d��q@t�dtd��n�|�SdS)Nl����lz-not enough memory: try a 32-bit build insteadr�r�)rr�r�r�r~r�rirjry�s���z!bigaddrspacetest.<locals>.wrapperrirrir�rjr3�sr3c@seZdZdd�ZdS)r+cCst��}||�|Sr�)r�Z
TestResult)rurxr�ririrj�run�szBasicTestRunner.runN)rerfrgrriririrjr+�sr+cCs|Sr�ri)r�ririrj�_id�srcCs:|dkrt�st�tj�St|�r&tSt�d�|��SdS)Nrzresource {0!r} is not enabled)r�r�rrr rrr	ririrj�requires_resource�s
rcCstdd�|�S)z9
    Decorator for tests only applicable on CPython.
    T)�cpython)�impl_detailr}ririrjr4�sr4cKsZtfi|��rtS|durPt|�\}}|r0d}nd}t|���}|�d�|��}t�|�S)Nz*implementation detail not available on {0}z%implementation detail specific to {0}z or )	rAr�
_parse_guardsrLr�rr�r�r)r��guardsZ
guardnames�defaultririrjr	�sr	cCsH|sddidfSt|���d}t|���|gt|�ks>J�||fS)NrTFr)r��valuesr�)rZis_trueririrjr
�s
r
cKs t|�\}}|�t����|�S)a5This 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
rpr�Zpython_implementationr�)rrririrjrA�srAcs,ttd�s�St����fdd��}|SdS)zEDecorator to temporarily turn off tracing for the duration of a test.�gettracec	s>t��}z$t�d��|i|��Wt�|�St�|�0dSr�)r�r�settrace)rvrwZoriginal_tracerrirjry�s

�zno_tracing.<locals>.wrapperN)r�r�r{r|rrirrj�
no_tracing�s

rcCstt|��S)aDecorator 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.

    )rr4r}ririrj�
refcount_test�srcCsNg}|jD]8}t|tj�r0t||�|�|�q
||�r
|�|�q
||_dS)z>Recursively filter test cases in a suite based on a predicate.N)Z_tests�
isinstancer��	TestSuite�
_filter_suiter�)�suiteZpredZnewtestsrxririrjr�s

rcCs�ttjttdud�}|�|�}tdur4t�|���|jsD|j	sDt
�|��s�t|j
�dkrp|jsp|j
dd}n4t|j�dkr�|j
s�|jdd}nd}ts�|d7}t|��dS)z2Run tests from a unittest.TestSuite-derived class.N)�	verbosityZcapture_outputrrzmultiple errors occurredz!; run in verbose mode for details)rr�r�r�junit_xml_listrr�Zget_xml_elementZtestsRunZskippedrZ
wasSuccessfulr��errorsZfailuresr
)rZrunnerr�r�ririrj�
_run_suite�s"�
rcCstdurdSt|���SdS�NT)�_match_test_func�idr}ririrj�
match_testsrcCsd|vot�d|�S)Nr�z[?*\[\]])r��search)r�ririrj�_is_full_match_test%srcs~|durd}|durd}d��|tkr4t|�\}�|tkrHt|�\}�t|�at|�a�dush�durz��fdd�}|adS)Nrics*d}d}�r�|�}�r �|�}|o(|S)NTFri)�test_idZacceptrk�Zaccept_funcZignore_funcrirj�match_functionDsz'set_match_tests.<locals>.match_function)�_accept_test_patterns�_compile_match_function�_ignore_test_patternsr�r)Zaccept_patternsZignore_patternsr"rir!rj�set_match_tests/s	r&cs^|sd}d}nHttt|��r(t|�j}n.d�ttj|��}t�	|�j
��fdd�}|}||fS)Nri�|cs$�|�rdStt�|�d���SdS)NTr�)�anyr
r�)r �Zregex_matchrirj�match_test_regex_sz1_compile_match_function.<locals>.match_test_regex)�allr
rr��__contains__r��fnmatch�	translater�rVr�)Zpatternsr�Zregexr*rir)rjr$Psr$cGs�tjtjf}t��}|D]`}t|t�rR|tjvrH|�t�tj|��qxt	d��qt||�rh|�|�q|�t�
|��qt|t�t
|�dS)z1Run tests from unittest.TestCase-derived classes.z)str arguments must be keys in sys.modulesN)r�rZTestCaserr�r�r�ZaddTestZ
findTestCasesrZ	makeSuiterrr)�classesZvalid_typesr�clsririrjr,os




r,cCsdS)z,Just used to check if docstrings are enabledNririririrj�_check_docstrings�sr1ZWITH_DOC_STRINGSztest requires docstringscCs`ddl}|durt}nd}|j|||d�\}}|rBtd||f��trXtd|j|f�||fS)aRun doctest on the given module.  Return (#failures, #tests).

    If optional argument verbosity is not specified (or is None), pass
    support's belief about verbosity on to doctest.  Else doctest's
    usual behavior is used (it searches sys.argv for -v).
    rN)r�optionflagsz%d of %d doctests failedz,doctest (%s) ... %d tests with zero failures)�doctestrZtestmodr
r�re)r�rr2r3r�r�ririrjr-�s�r-cCs(|��D]}td|��tjdd�qdS)NzWarning -- T)r�r�)�
splitlinesr�r�r�)r��lineririrj�
print_warning�sr6cCstj��fSr�)r�r�r�riririrj�
modules_setup�sr7cCs:dd�tj��D�}tj��tj�|�tj�|�dS)NcSs"g|]\}}|�d�r||f�qS)z
encodings.)r�)rJr�r�ririrjrK�s
�z#modules_cleanup.<locals>.<listcomp>)r�r�r�r�r�)Z
oldmodulesZ	encodingsririrj�modules_cleanup�s
r8cCst��tj��fSr�)�_thread�_count�	threading�	_danglingr�riririrjrG�srGc	Gs�d}t|�D]�}t��tjf}||kr*q�|s�da|d}td|d|d�d|d�dt|��d��|D]}td	|���qnd}d}t�	d
�t
�qdS)N�dTrz&threading_cleanup() failed to cleanup rz threads (count: z, dangling: �)zDangling thread: �{�G�z�?)�ranger9r:r;r<�environment_alteredr6r�r�r�r�)Zoriginal_valuesZ
_MAX_COUNT�countr
Zdangling_threads�threadririrjrH�s*���

rHcst����fdd��}|S)z�Use this function when threads are being used.  This will
    ensure that the threads are cleaned up even when the test fails.
    cs(t�}z�|�Wt|�St|�0dSr�)rGrH)rv�keyrrirjr~s�zreap_threads.<locals>.decoratorrz)r�r~rirrjrI�srIccs|durt}t��}z�dVWt��}||}t��}||kr@q�t��|kr�t��|}d||�d|d�d|�d|�d�	}t|��t�d�t�q.n~t��}||}t��}||kr��qt��|k�rt��|}d||�d|d�d|�d|�d�	}t|��t�d�t�q�0dS)	aH
    bpo-31234: Context manager to wait until all threads created in the with
    statement exit.

    Use _thread.count() to check if threads exited. Indirectly, wait until
    threads exit the internal t_bootstrap() C function of the _thread module.

    threading_setup() and threading_cleanup() are designed to emit a warning
    if a test leaves running threads in the background. This context manager
    is designed to cleanup threads started by the _thread.start_new_thread()
    which doesn't allow to wait for thread exit, whereas thread.Thread has a
    join() method.
    Nz!wait_threads() failed to cleanup z threads after �.1fz seconds (count: z
, old count: r>r?)r`r9r:r��	monotonicr�r�r�)r�Z	old_countZ
start_timeZdeadlinerB�dtr�ririrj�wait_threads_exitsN���

����
rHcCs8|durt}|�|�|��r4d|d�d�}t|��dS)zcJoin a thread. Raise an AssertionError if the thread is still alive
    after timeout seconds.
    Nzfailed to join the thread in rE� seconds)r`r��is_aliver�)rCr�r�ririrj�join_thread1s
rKcCshttd�rttd�sdSzt�dtj�\}}WntyDYqdYn0|dkrPqdtd|���daqdS)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�WNOHANGNrhrz%reap_children() reaped child process T)r�r�rLrMr�r6rA)r7�statusririrjrF=s	
rFccsLddl}t|�}g}�z<z |D]}|��|�|�qWn*tr\tdt|�t|�f��Yn0dVWz�|rx|�t��}}t	dd�D]\}|d7}|D]}|�
t|t��d��q�dd�|D�}|s�q�tr�td	t|�|f�q�Wd
d�|D�}|�rR|�t
j�tdt|���n2d
d�|D�}|�rP|�t
j�tdt|���0n�z�|�rb|�t��}}t	dd�D]f}|d7}|D]}|�
t|t��d���q�dd�|D�}|�s��q�t�rxtd	t|�|f��qxWd
d�|D�}|�rF|�t
j�tdt|���n2d
d�|D�}|�rD|�t
j�tdt|���00dS)Nrz/Can't start %d threads, only %d threads startedr��<r?cSsg|]}|��r|�qSri�rJ�rJr�ririrjrKrr�z!start_threads.<locals>.<listcomp>z7Unable to join %d threads during a period of %d minutescSsg|]}|��r|�qSrirQrRririrjrKyr�zUnable to join %d threads)�faulthandlerr�r�r�rr�r�r�rFr@r��maxZdump_tracebackr�r�r�)ZthreadsZunlockrSr�r�ZendtimeZ	starttimer�ririrjrJYsz�
�
��
��rJc
cs�t||�rHt||�}t|||�z|VWt|||�q�t|||�0nBt|||�zdVWt||�r�t||�nt||�r�t||�0dS)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�r|�new_val�real_valririrjrQ~s


�
rQc	csn||vr8||}|||<z|VW|||<qj|||<0n2|||<zdVW||vrj||=n||vrh||=0dS)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.
    Nri)r��itemrVrWririrjrP�s�rPcCst��S)znReturn a list of command-line arguments reproducing the current
    settings in sys.flags and sys.warnoptions.)r�Z_args_from_interpreter_flagsriririrj�args_from_interpreter_flags�srYcCst��S)zgReturn a list of command-line arguments reproducing the current
    optimization settings in sys.flags.)r�Z"_optim_args_from_interpreter_flagsriririrj�!optim_args_from_interpreter_flags�srZc@s eZdZdZdd�Zdd�ZdS)rR)r�rdcKs:d}|D],}||}|�|�}|�|||�sd}q6q|S)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)rp�match_value)ru�drwr�r�r��dvririrj�matches�s
zMatcher.matchescCsHt|�t|�krd}n.t|�tus,||jvr6||k}n|�|�dk}|S)zT
        Try to match a single stored value (dv) with a supplied value (v).
        Fr)rr��_partial_matches�find)rur�r]r�r�ririrjr[�s
zMatcher.match_valueN)rerfrgr_r^r[riririrjrR�srRc
CsXtdurtStd}zt�t|�d}WntttfyDd}Yn0t�|�|a|S)NrTF)�_can_symlinkrr��symlinkr��NotImplementedErrorr�r�)Zsymlink_path�canririrjr�s

rcCs t�}d}|r|St�|�|�S)z8Skip decorator for tests that require functional symlinkz*Requires functional symlink implementation)rr�r�rx�okr�ririrjr.�sr.cCsXddl}tdurBtjdkr>|��ddkr>t��jdkr>dandatrTt�	d	�|�S|S)
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
    rNrbr�cp65001r�TFz!buggy MSVC UCRT strptime/strftime)
r��_buggy_ucrtr�r�Zgetdefaultlocaler��	localtime�tm_zoner�r)rxr�ririrjr=	s

��r=c@sheZdZdZddd�Zdd�Zejdkr0dd�Zd	d
�Zdd�Z	d
d�Z
dd�dd�Zdd�dd�ZdS)�
PythonSymlinkz3Creates a symlink for the current Python executableNcCs@|ptj�t�|_g|_tj�tj�|_	g|_
d|_|��dSr�)
r�r�r�r�link�_linkedr3r�r��real�
_also_link�_env�_platform_specific)rurlririrjry	szPythonSymlink.__init__cCsdSr�rir~ririrjrq!	sz PythonSymlink._platform_specificrbc
Csddl}tj�|j�r0tj�|j�s0|�d�|_|�tj�}tj�	|�}tj�	|j
�}|j�|tj�
|tj�|��f�t�tj�
t�|�d��D]&}|j�|tj�
|tj�|��f�q�dd�tjD�|_tj�	|j�|jd<t�d�r�tj�	tj�|jd<dS)Nrzvcruntime*.dllcSsi|]}|��t�|��qSri)�upperr��getenv)rJr�ririrj�
<dictcomp>:	r�z4PythonSymlink._platform_specific.<locals>.<dictcomp>Z
PYTHONHOMETZ
PYTHONPATH)�_winapir�r��lexistsrnrAZGetModuleFileNamer�Z	dllhandler�rlror�r��basename�glob�escaper�rpr�Zis_python_buildr�)rururZsrc_dirZdest_dirZruntimeririrjrq%	s&��
cCsJt�|j|j�|j�|j�|jD] \}}t�||�|j�|�q$|Sr�)r�rbrnrlrmr�ro)rurnrlririrjr�?	szPythonSymlink.__enter__cCsX|jD]L}zt�|�WqtyP}z tr<td�||��WYd}~qd}~00qdS)Nzfailed to clean up {}: {})rmr�r��IOErrorrr�r)ru�exc_type�	exc_valueZexc_tbrlZexririrjr�G	s
zPythonSymlink.__exit__cCsp|g|�}tj|tjtj|d�}|��}|j|krltr\tt|d��tt|d�tj	d�t
d�|j���|S)N)r�r��envrrr�z'unexpected return code: {0} (0x{0:08X}))r�r��PIPE�communicate�
returncoderr��reprr�r��RuntimeErrorr)ruZpythonrvr}r��cmdr�r�ririrj�_callO	s

�

�zPythonSymlink._callr)r�cGs|�|j|d|�Sr�)r�rn�rur�rvririrj�	call_real\	szPythonSymlink.call_realcGs|�|j||j|�Sr�)r�rlrpr�ririrj�	call_link_	szPythonSymlink.call_link)N)
rerfrgrhryrqr�r�r�r�r�r�r�riririrjrk	s



rkc	Csddl}tdurtSttd�s$d}n�|��}|j|d�\}}z�ttd���}z`t�|dd�t�|dd	�t�|�	�dd�t
��}t�
d
|�}|dup�t|�d��dk}Wnty�d}Yn0Wd�n1s�0YWtt�t|�t|�ntt�t|�t|�0|a|S)
Nr�setxattrF��dirrNs	user.testr�strusted.foos42z
2.6.(\d{1,2})r�')r1�
_can_xattrr�r�r2ZmkstemprDrr�rOr�rr�r�rr�r�rr�)r1rdZtmp_dirZtmp_fpZtmp_name�fpZkernel_versionr�ririrj�	can_xattrd	s4
*
�
r�cCs t�}d}|r|St�|�|�S)zDSkip decorator for tests that require functional extended attributesz(no non-broken extended attribute support)r�r�rreririrjr7�	sr7cCs$tpt}d}|r|St�|�|�S)z;Skip decorator for tests not run in (non-extended) PGO taskz#Not run for (non-extended) PGO task)rW�PGO_EXTENDEDr�rreririrj�skip_if_pgo_task�	s
r�c	Cs�ddl}|j|d��n}|j}|��}||kr4|��}ztj�||�WWd�StyrYWd�dS0Wd�n1s�0YdS)zKDetects if the file system for the specified directory is case-insensitive.rNr�F)	r1ZNamedTemporaryFiler�rrr�r�r��samefiler�)Z	directoryr1�base�	base_pathZ	case_pathririrjr�	srrpcCs>tt|��tt|��}|r(|t|�8}tdd�|D��}|S)aReturns 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 '__'.
    css&|]}|�d�r|�d�r|VqdS)�_�__N)r��endswith)rJr�ririrj�	<genexpr>�	s�z&detect_api_mismatch.<locals>.<genexpr>)r�r�)Zref_apiZ	other_apirkZ
missing_itemsririrjr;�	s
r;cCs�|dur|jf}nt|t�r"|f}t|�}t|�D]R}|�d�s2||vrJq2t||�}t|dd�|vszt|d�s2t|tj	�s2|�
|�q2|�|j|�dS)aAssert 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 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 'blacklist' 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'}
                blacklist = {'baz'}  # Undocumented name.
                # bar imports part of its API from _bar.
                support.check__all__(self, bar, ('bar', '_bar'),
                                     extra=extra, blacklist=blacklist)

    Nr�rf)
rerr�r�r�r�r�r��types�
ModuleType�addZassertCountEqual�__all__)Z	test_caser�Zname_of_moduleZextraZ	blacklistZexpectedr�r�ririrjr<�	s )


�
�r<cCs�zddl}Wnty YdS0|�|j|jB|jB|jB�t|d�r�|j|j	|j
fD]2}|r�|�||j�|�
||j�qZ|�|d�qZdS)Nr�CrtSetReportMode)�msvcrtr��SetErrorModeZSEM_FAILCRITICALERRORSZSEM_NOALIGNMENTFAULTEXCEPT�SEM_NOGPFAULTERRORBOXZSEM_NOOPENFILEERRORBOXr��CRT_WARN�	CRT_ERROR�
CRT_ASSERTr��CRTDBG_MODE_FILE�CrtSetReportFile�CRTDBG_FILE_STDERR)rr�r�ririrj�suppress_msvcrt_asserts�	s"���
r�c@s(eZdZdZdZdZdd�Zdd�ZdS)rTz�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		Cs�tj�d�r�zddl}Wnty,YdS0|�|j�|_|�|j|jB�t|d�r�i|_	|j
|j|jfD].}|�
||j�}|�||j�}||f|j	|<qnn�zddl}||_Wnty�d|_Yn0|jdu�r$z2|j�|jj�|_|j�|jjd|jdf�Wnttf�y"Yn0tjdk�r�gd�}tj|tjtjd�}|�|��d}Wd�n1�st0Y|��d	k�r�td
ddd
�|S)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�rNr�rr�)z/usr/bin/defaultsrqzcom.apple.CrashReporterZ
DialogType)r�r�s	developerz:this test triggers the Crash Reporter, that is intentionalr�T)�endr�)r�r�r�r�r�r�r��	old_valuer��	old_modesr�r�r�r�r�r�r�r
Z	getrlimit�RLIMIT_CORE�	setrlimitrr�r�r�r~r�stripr�)	rur��report_type�old_mode�old_filer
r��procr�ririrjr�
s\
���
��,�zSuppressCrashReport.__enter__c	Gs�|jdurdStj�d�rfddl}|�|j�|jr�|j��D]$\}\}}|�||�|�	||�q>n:|j
dur�z|j
�|j
j|j�Wnt
tfy�Yn0dS)zARestore Windows ErrorMode or core file behavior to initial value.Nr�r)r�r�r�r�r�r�r�r�r�r�r
r�r�rr�)rur�r�r�r�r�ririrjr�I
s

zSuppressCrashReport.__exit__)rerfrgrhr�r�r�r�riririrjrT�	s
CrTc	spt���d�z�j��Wn"ttfy>t��d��Yn0d�����fdd�}|�|�t��|�dS)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'.

    FNTcs �rt����n
t���dSr�)r�rUri�Z
attr_is_local�	attr_name�object_to_patchr�rirj�cleanupt
szpatch.<locals>.cleanup)r��__dict__r�r�Z
addCleanupr�)Z
test_instancer�r�Z	new_valuer�rir�rj�patch^
s


r�cCsDzddl}WntyYn0|��r2t�d��ddl}|�|�S)zi
    Run code in a subinterpreter. Raise unittest.SkipTest if the tracemalloc
    module is enabled.
    rNzUrun_in_subinterp() cannot be used if tracemalloc module is tracing memory allocations)�tracemallocr��
is_tracingr�r��	_testcapi�run_in_subinterp)�coder�r�ririrjr��
s
r�csHG��fdd�d|�}d�|||���|�tt��t�|���dS)NcseZdZ��fdd�ZdS)z%check_free_after_iterating.<locals>.Acs(d�zt��Wnty"Yn0dSr)�next�
StopIterationr~�Zdone�itrirj�__del__�
s
z-check_free_after_iterating.<locals>.A.__del__N)rerfrgr�rir�rirj�A�
sr�F)ZassertRaisesr�r�r�rb)rxr�r0rvr�rir�rj�check_free_after_iterating�
s	r�cCs�ddlm}m}m}m}|��}|�|�|jdkrXz|��Wn|j	yVYdS0|j
D]Z}|rp||vrpq^t||�}|r�|dus�Jd|��n|s�q^|�|d�dur^|dSq^dS)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.

    r)�	ccompilerr��spawnrZmsvcNz%the '%s' executable is not configured)
Z	distutilsr�r�r�rZnew_compilerZcustomize_compilerZ
compiler_typeZ
initializeZDistutilsPlatformErrorZexecutablesr�Zfind_executable)Z	cmd_namesr�r�r�rZcompilerr�r�ririrjrX�
s(	




�rXcCs@d}tr6||kr6tdur.t�ddg���dkatr6|}t�|�S)Ng�h㈵��>Zgetpropzro.kernel.qemu�1)r@�_is_android_emulatorr�Zcheck_outputr�r�rC)ZintervalZminimum_intervalririrjrC�
s��rCc
csXddl}tj��}|��}z$|��dVW|rT|j|dd�n|rR|j|dd�0dS)NrT)r�Zall_threads)rSr�r�rO�
is_enabledr�r�)rSrIr�ririrj�disable_faulthandler�
s
�r�c	Cs�tj�d�r8zt�d�}t|�dWSty6Yn0d}ttd�rhzt�d�}Wnt	yfYn0d}tjdkr�zd	dl
}|jWntt
fy�Yn,0i}|j|j|jfD]}|�|d	�||<q�z�d	}t|�D]\}zt�|�}Wn6t	�y }z|jtjk�r�WYd}~q�d}~00t�|�|d7}q�W|du�r�|j|j|jfD]}|�|||��qRn4|du�r�|j|j|jfD]}|�|||��q�0|S)
z/Count the number of open file descriptors.
    )�linuxZfreebsdz
/proc/self/fdr��sysconf�SC_OPEN_MAXNrbr)r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r@�dupr�ZEBADFrH)	�namesZMAXFDr�r�r�rBrIZfd2rririrjrY�
s`



�

��
�rYc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�SaveSignalsz�
    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	Cs^ddl}||_|��|_dD]6}zt||�}WntyDYqYn0|j�|�qi|_dS)Nr)�SIGKILL�SIGSTOP)�signal�
valid_signals�signalsr�r�r��handlers)rur�Zsigname�signumririrjry+s

zSaveSignals.__init__cCs0|jD]$}|j�|�}|dur q||j|<qdSr�)r�r��	getsignalr��rur�Zhandlerririrj�save8s

zSaveSignals.savecCs&|j��D]\}}|j�||�q
dSr�)r�r�r�r�ririrj�restoreDszSaveSignals.restoreN)rerfrgrhryr�r�riririrjr�"s
r�cCsddl}|jSr�)r�Z
WITH_PYMALLOC)r�ririrj�
with_pymallocIsr�c@s(eZdZdZdd�Zdd�Zdd�ZdS)	�FakePathz.Simple implementing of the path protocol.
    cCs
||_dSr�r�)rur�ririrjryQszFakePath.__init__cCsd|j�d�S)Nz
<FakePath �>r�r~ririrj�__repr__TszFakePath.__repr__cCs6t|jt�s$t|jt�r,t|jt�r,|j�n|jSdSr�)rr��
BaseExceptionrrcr~ririrj�
__fspath__Ws
�
�zFakePath.__fspath__N)rerfrgrhryr�r�riririrjr�Nsr�c@s eZdZdZdd�Zdd�ZdS)�
_ALWAYS_EQz+
    Object that is equal to anything.
    cCsdSrri�ru�otherririrj�__eq__dsz_ALWAYS_EQ.__eq__cCsdS�NFrir�ririrj�__ne__fsz_ALWAYS_EQ.__ne__N)rerfrgrhr�r�riririrjr�`sr�c@s(eZdZdZdd�Zdd�Zdd�ZdS)	�	_NEVER_EQz/
    Object that is not equal to anything.
    cCsdSr�rir�ririrjr�osz_NEVER_EQ.__eq__cCsdSrrir�ririrjr�qsz_NEVER_EQ.__ne__cCsdS)Nrrir~ririrj�__hash__ssz_NEVER_EQ.__hash__N)rerfrgrhr�r�r�riririrjr�ksr�c@s eZdZdZdd�Zdd�ZdS)�_LARGESTz?
    Object that is greater than anything (except itself).
    cCs
t|t�Sr�)rr�r�ririrjr�}sz_LARGEST.__eq__cCsdSr�rir�ririrj�__lt__sz_LARGEST.__lt__N)rerfrgrhr�r�riririrjr�xsr�c@s eZdZdZdd�Zdd�ZdS)�	_SMALLESTz<
    Object that is less than anything (except itself).
    cCs
t|t�Sr�)rr�r�ririrjr��sz_SMALLEST.__eq__cCsdSr�rir�ririrj�__gt__�sz_SMALLEST.__gt__N)rerfrgrhr�r�riririrjr��sr�cCsddl}|jjS)zDReturn the global event loop policy if one is set, else return None.rN)Zasyncio.eventsZeventsZ_event_loop_policy)Zasyncioririrj�maybe_get_event_loop_policy�sr�)� �@c
Cs�||}}ddl}|����}|��d}t|d�|_|�|�}|d||}||}	||	}
||
}||d|d|||	d|	}t|�t|���fWd�S1s�0YdS)Nrr��r)�decimalZlocalcontext�
bit_lengthrTZprecZDecimalr�Zsqrt)
ZnbinsZnballsr�r�r��ctx�bitsrBZp1emptyZ	meanemptyZoccupiedZ
collisions�varririrj�collision_stats�s


(r�c@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�catch_unraisable_exceptiona�
    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)
    cCsd|_d|_dSr�)�
unraisable�	_old_hookr~ririrjry�sz#catch_unraisable_exception.__init__cCs
||_dSr�)r�)rur�ririrj�_hook�sz catch_unraisable_exception._hookcCstj|_|jt_|Sr�)r��unraisablehookr�r�r~ririrjr��sz$catch_unraisable_exception.__enter__cGs|jt_|`dSr�)r�r�r�r��ru�exc_inforirirjr��sz#catch_unraisable_exception.__exit__N�rerfrgrhryr�r�r�riririrjr��s
r�c@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�catch_threading_exceptiona
    Context manager catching threading.Thread exception using
    threading.excepthook.

    Attributes set when an exception is catched:

    * exc_type
    * exc_value
    * exc_traceback
    * thread

    See threading.excepthook() documentation for these attributes.

    These attributes are deleted at the context manager exit.

    Usage:

        with support.catch_threading_exception() as cm:
            # code spawning a thread which raises an exception
            ...

            # check the thread exception, use cm attributes:
            # exc_type, exc_value, exc_traceback, thread
            ...

        # exc_type, exc_value, exc_traceback, thread attributes of cm no longer
        # exists at this point
        # (to avoid reference cycles)
    cCs"d|_d|_d|_d|_d|_dSr�)r{r|�
exc_tracebackrCr�r~ririrjry
s
z"catch_threading_exception.__init__cCs$|j|_|j|_|j|_|j|_dSr�)r{r|rrC)rurvririrjr�szcatch_threading_exception._hookcCstj|_|jt_|Sr�)r;�
excepthookr�r�r~ririrjr�sz#catch_threading_exception.__enter__cGs|jt_|`|`|`|`dSr�)r�r;rr{r|rrCr�ririrjr�s
z"catch_threading_exception.__exit__Nr�riririrjr��s
r�rlcCs&tjdkr�ddl}|durt}t��}d}d}t�|tj�\}}|dkrJq�t��|}	|	tkr�zt�||j	�t�|d�Wnt
y�Yn0td|�d|	d�d	���t|d
|�}t�
|�q.nt�|d�\}}t�|�}
|
|k�rtd|�d|
�d|�d
���||k�r"td|�d|����dS)a�
    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 (SHORT_TIMEOUT by default),
    kill the process (if signal.SIGKILL is available) and raise an
    AssertionError. The timeout feature is not available on Windows.
    r,rNr�r�zprocess z is still running after rErIr�z exited with code z, but exit code z is expectedzpid z != pid )r�r�r�r`r�rFrLrM�killr�r�r��minr��waitstatus_to_exitcode)r7Zexitcoder�r�Zt0r�Z	max_sleepZpid2rNrGZ	exitcode2ririrj�wait_process$s<

�


�

rcCs ddl}|��}|dddkS)Nr�configZ_use_peg_parser)r�Zget_configs)r�rririrj�use_old_parserYsrcCst�t�|�Sr�)r�rr)r�ririrj�skip_if_new_parser_src
cs<tjdd�}zdVW|tjdd�<n|tjdd�<0dSr�)rlr�)Zold_filtersririrj�save_restore_warnings_filterscsr	c
Csdtd�td�}tjdkr`z|jdd�Wn4ty^}zt�d|����WYd}~n
d}~00dS)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).
    Z_multiprocessingzmultiprocessing.synchronizer�N)r�z broken multiprocessing SemLock: )r
r�r�ZLockr�r�r�)Zsynchronizer�ririrj�*skip_if_broken_multiprocessing_synchronizels
r
c	cs8t��}zt�|�dVWt�|�nt�|�0dS)z>Temporarily change the integer string conversion length limit.N)r��get_int_max_str_digits�set_int_max_str_digits)Z
max_digitsZcurrentririrj�adjust_int_max_str_digits�s

r
)T)F)ririF)F)N)r!)r$)r&)r()NF)F)r<F)N)r�)r�)F)T)N)NN)Nr)N)N)N)Nriri)F)ri(rhrer��collections.abc�collections�
contextlibr�r-r{rxr��importlib.utilr�r�r�r�r�r�r�r�r9r;r�r�r�rlZ
testresultrr�r^�machiner_r`rarr	r
rr�r�contextmanagerrqr>r
r�r�r9r:rr5rrrr�rrr�rrrr�r�r�r�r�r�r�rr�rr�rr�r r!rr"r#r$r rZ
SOCK_MAX_SIZEr#r��
__getformat__r6r8r/r0r1r?r�r@rBr�ZTESTFN_ASCIIrr5Z
TEST_HTTP_URLZFS_NONASCII�	character�fsdecode�fsencode�UnicodeErrorZTESTFN_UNICODE�unicodedataZ	normalize�getfilesystemencodingZTESTFN_ENCODINGZTESTFN_UNENCODABLEZgetwindowsversion�encode�UnicodeEncodeErrorr��decode�UnicodeDecodeErrorZTESTFN_UNDECODABLEZTESTFN_NONASCIIrr9rrWr�r8r;rrEr�r�r�r�ZTEST_SUPPORT_DIRr@r�rorrrUrPr%r&rD�objectrur�rKr�rMrLr�abc�MutableMappingrNr�r'r�Z	ETIMEDOUTr(Z
ECONNRESETr)r*r�rrrr�r�r�r�r�r�r�r�r�r�r�rOrVr�r�r�Z_4Grr�rSr�r2r3r+rrr4r	r
rArrrrrr#r%rrr&r$r,r1r�ZMISSING_C_DOCSTRINGSZHAVE_DOCSTRINGSZrequires_docstringsr-r6r7r8rArGrHrIrHrKrFrJrQrPrYrZrRrarr.rhr=rkr�r�r7r�rr;r<r�rTr�r�r�rXr�rCr�rYr�r�r�r�rZr�r[�total_orderingr�r\r�r]r��	hash_info�widthZ	NHASHBITSr�r�r�rrrr	r
r
riririrj�<module>sz8
2	
!

L			�
!
�
�



'


6'

 5
		


$#0


!�
���
$$"N�;a";'	
	
	
",95