403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.220
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/test/support/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/support/__pycache__/isolation.cpython-315.opt-1.pyc
R
>lqj5/c��Qs]PHs]PHs]PHs]PHsP	sQsQsQsP
r	QQ\
2sQQ\
2sQs
QsQ	sQ
sQsQsQ
sQsQsQsP!)a�Run tests in isolated subprocesses (the test.support.isolation.runInSubprocess decorator).

A failure, error or skip that happens in the subprocess is replayed in the
parent process so that the test runner records it.  The original (subprocess)
traceback is attached as the cause of the replayed exception, the same way
:mod:`concurrent.futures` surfaces tracebacks from worker processes.
c	�Z�]PHGo[Tt-tFDp[V2aJ	to!ttoh)�)�test.support�support�_PROPAGATED_CONFIG�getattr)r�names  �+C:\Python315\\Lib\test\support\isolation.py�
_child_configr	s'��"�5G�H�5G�T�'�'�(�(�5G�H�H��Hs�(c���]PHo]PHGoP	rUO	[
O
U22O2FDvq4[V#U2J	UOUO]6�2P!)aSet up the child to run the test like a regrtest worker would.

Mark this process as the subprocess, mirror the parent's -u/-M/-v config,
then suppress the Windows CRT assertion dialogs, which would block a debug
build on a modal dialog and hang the parent.
)�marshalrr�runningInSubprocess�loads�bytes�fromhex�items�setattr�suppress_msvcrt_asserts�verbose)�configrrr�values&    r�_apply_child_configrsY���"����}�}�U�]�]�6�%:�;�A�A�C�����u�%�D��#�#�G�O�O�q�$8�9�c�2`�\sQs]4snQsQsQsQsUsP!)�_RemoteTracebackz�Carry a formatted traceback string from the subprocess for display.

Attached as the ``__cause__`` of the replayed failure/error, so that the
original traceback is shown by the traceback machinery.
c��VmP!�N��tb)�selfrs&&r�__init__�_RemoteTraceback.__init__:s���rc��UO!rr)rs&r�__str__�_RemoteTraceback.__str__=s���w�w�rr)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr"�__static_attributes__�__classdictcell__)�
__classdict__s@rrr4s�����
��rrc��\sQs]AsQsQsP!)�_SubprocessTestErrorzBReplay a subprocess error (as opposed to a failure) in the parent.�)r$r%r&r'r(r)r.rrr-r-As��Lrr-c���U%fP!]PHo[OO%cQLUO	2oUOUQ2O
QQ2!)�zutf-8�backslashreplacez
�
)�locale�sys�flags�	utf8_mode�getencoding�decode�replace)�datar3�encodings&  r�_decoder<EsK������)�)�-�-�-�w�6�3E�3E�3G�H��;�;�x�!3�4�<�<�V�T�J�Jrc�"�[QUQ02!)z
"""
z""")r)�details&r�_remoter?Os���g�f�X�S�1�2�2rc�d�]PHGoUO%f[OQ2gP!)rzrequires subprocess support)rr�has_subprocess_support�unittest�SkipTest)rs r�_check_subprocess_supportrDUs*��#��)�)�)���� =�>�>�*rc
���]PHo]PHo]PH
oUOQQ5vqV[O
U2[OQQVUUO[22O2,oUOUP	Q5o[UQ29^tt^2o	UOU	2o
PPP2[O"U2W
[%UO&2[%UO(2*UO*1!)%fhKc9h[[[ 1cPo
K�h9h[cKzh9h[O"S2h[chh9h9h)aRun module.qualname (a test method or class) in a fresh subprocess.

Return ``(payload, output, returncode)``, where *payload* is the decoded
``{'outcomes': ..., 'durations': ...}`` mapping from the subprocess, or
``None`` if it did not run to completion (crash, import error, ...).
z.json)�suffixz-mztest.support.subprocess_runner)�capture_output�rb)r�
subprocess�tempfile�mkstemp�os�closer4�
executable�dumpsr	�hex�run�open�load�OSError�EOFError�
ValueError�unlinkr<�stdout�stderr�
returncode)�module�qualnamerrIrJ�fd�result_path�cmd�proc�f�payloads&&         r�_run_in_subprocessrc]s1������&�&�g�&�6�O�B��H�H�R�L��
�~�~�t�%E����}�}�]�_�-�1�1�3�5���~�~�c�$�~�7��	��k�4�(�(�A�!�,�,�q�/��)�
	��I�I�k�"��G�D�K�K�(�7�4�;�;�+?�?����P�P�)�(����:�.�	��G�	��
�	��	��	��I�I�k�"���	��	�s��AE�D�D	�.D�7D:�	D	�D	�D�E�D�D7�1D7�4E�6D7�7E�:	E�E�E�E5�
E$�#E5�$	E2�.E2�/E5�1E2�2E5c���UQ*oUQ*oUQ6XcUOU2P!UQ7cUOQ2oU[U2g[Q2oU[U2g)�kindr>�skippedztest failed in the subprocess)�failure�expected_failure)�skipTest�failureExceptionr?r-)�test�outcomerer>�excs&&   r�_replay_outcomernsh���6�?�D�
�X�
�F��y���
�
�f��	
�0�	0��#�#�$C�D���w�v��&�"�#B�C���w�v��&rc	��,oSFDYoUQ*%c7UOUQ*29^tt^2[V2PPP2JHUOU2J[	SFDo[V2J	P!)%fhJ�9h)�subtest�desc)�subTestrn�append)rk�outcomes�mainrls&&  r�_replay_outcomesrv�so���D����9������g�f�o�.�.���.�/�.�
�K�K�� ������&��	/�.�.�s�A;	�;B
�B
c��UQ*Q6Xc[OUQ*2g[Q2oU[UQ*2g)rerfr>zclass failed in the subprocess)rBrCr-r?)rlrms& r�_raise_fixture_outcomerx�sC���v��)�#������ 1�2�2�
�?�
@�C�

�7�7�8�,�-�-rc�H`�[OR2U1Qk2oU!)c�0:�[%cR	U,UN3-U@![2[U2oUOQR	O0o[UOU2vqVoUe[QUQ02oU[U2g[VQ*2P!)�.z1test did not complete in a subprocess (exit code �)rt)
rrD�typer&r$rcr%r-r?rv)
r�args�kwargs�clsr\rb�outputrZrm�funcs
"*,      �r�wrapper� _isolate_method.<locals>.wrapper�s��������.�t�.�v�.�.�!�#��4�j���&�&�'�q�����8��&8����9A�'C�#����?�&�C�J�<�q�Q�S�C��7�6�?�*�	��z�2�3r)�	functools�wraps)r�r�sf r�_isolate_methodr��s%����_�_�T��4��4� �Nrc�```	`
``�UOOnUOOnUOnUOn	UO
n
UOnU1QkoU1QkoU1QkoU	1QkoU
1QkoU1Qko[U2Um[U2UmV0mV@mVPmV`mU!)c��:�[%cRU2P![2[UOUO2vqoUe[QUQ02oU[
U2g-oUQ*FDEoUQ*%c[U2UOUQ*,2OU2JG	VPm
[UOQQ22Um
P!)Nz2class did not complete in a subprocess (exit code r|rt�fixture�id�	durationsr.)rrDrcr%r&r-r?rx�
setdefaultrs�_isolated_outcomes�dict�get�_isolated_durations)r�rbr�rZrm�by_idrl�orig_setUpClasss&      �r�
setUpClass�"_isolate_class.<locals>.setUpClass�s�������C� ��!�#�'9����9<�9I�9I�'K�#����?�&�D�Z�L�PQ�R�T�C��7�6�?�*����z�*�*�G��y�!�!�'�w�/����W�T�]�B�/�6�6�w�?�+�"'��"&�w�{�{�;��'C�"D��rc�R:�[%cRU2P!PUmPUmP!r)rr�r�)r��orig_tearDownClasss&�r�
tearDownClass�%_isolate_class.<locals>.tearDownClass�s!������s�#�%)�C�"�&*�C�#rc�6:�[%cRU2P!P!r�r)r�orig_callSetUps&�r�
_callSetUp�"_isolate_class.<locals>._callSetUp�s������4� �rc�6:�[%cRU2P!P!rr�)r�orig_callTearDowns&�r�
_callTearDown�%_isolate_class.<locals>._callTearDown�s������d�#�rc�:�[%cRV2P![[U2QP2oUe"[[U2OQ02g[VO
UO2,22P!)Nr�zW did not run in a subprocess; an overriding setUpClass() must call super().setUpClass())rrr}r-r$rvr�r�)r�methodr��orig_callTestMethods&& �r�_callTestMethod�'_isolate_class.<locals>._callTestMethod�sr�������-����T�
�$8�$�?���=�&���:�&�&�'�(L�M�N�
N�	��y�y�����B�7�8rc�:�[%fA[[U2QP29%f-oUOUO	2U2oRVU2P!)r�)rrr}r�r�)r�result�elapsedr��orig_addDurations&&& �r�_addDuration�$_isolate_class.<locals>._addDuration�sF���#�"���T�
�,A�4�H�N�N�B�I��m�m�D�G�G�I�w�7�G���w�/r)r��__func__r�r�r�r�r��classmethod)
r�r�r�r�r�r�r�r�r�r�r�r�r�s
&      @@@@@@r�_isolate_classr��s�����n�n�-�-�O��*�*�3�3���^�^�N��)�)���-�-���'�'��E�.+�!�
$�	9�0�!��,�C�N�#�M�2�C���N�%��)��#���Jrc��QoU!)a�Decorator to run a test method or class in a fresh subprocess.

The decorated test runs in a separate, fresh Python process, so it does not
share global or interpreter state with the rest of the test run.  When a
:class:`~unittest.TestCase` subclass is decorated, the whole class runs in a
single subprocess and its ``setUpClass()``/``setUpModule()`` fixtures run
once there; when a method is decorated, only that method runs in a
subprocess.  Decorated methods must take no extra arguments.

A failure, error or skip of the whole test is reported for the test, and
individual subtests (:meth:`~unittest.TestCase.subTest`) that fail or are
skipped are reported individually.  The original subprocess traceback is
shown as the cause of a reported failure or error.  Use
:data:`runningInSubprocess` in fixtures to choose what to run in the subprocess.

The test is skipped on platforms without subprocess support, since it must
spawn one.
c��[U[2%c,[U[O2%c[U2![
U2!r)�
isinstancer}�
issubclassrB�TestCaser�r�)�objs&r�	decorator�"runInSubprocess.<locals>.decorators7���c�4� � �Z��X�5F�5F�%G�%G�!�#�&�&��s�#�#rr.)r�s r�runInSubprocessr�s��&$��r)�
use_resources�
max_memuse�real_max_memuser�failfast)r(r�rLr4rB�
__unittestrr	rr�	Exceptionrr-r<r?rDrcrnrvrxr�r�r�r.rr�<module>r�s�����	�
���
���I�
:�$��
�y�
�M�9�M�K�3�?�Q�D
'� '�.��*M�`r

Youez - 2016 - github.com/yon3zu
LinuXploit