403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.64
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 :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test__interpreters.cpython-315.pyc
R
>lqj�c�V�]PHs]PHs]PHs]QHGs]PHs]PHs]QHGs]QH$G
s
]QH$Gs]QH$Gs\
OQ2s]QH8GsQsQ	sQ(Q
ks\O&Q2sQsQ
Q\O,2sQQ\O,2sQQ\2sQQ\2sQQ\2sQQ\2sQQ\2sQQ\2sQQ\2sQQ \2s Q!Q"\2s!Q#Q$\2s"Q%Q&\2s#\$Q'6Xc\OJ2P!P!))�)�dedent)�support)�
import_helper)�	os_helper)�
script_helper�
_interpreters)�InterpreterNotFoundErrorc��[O2vqUOQQ2o[QUQUQ02oU[	UQQ51!)�
�
                z-
        import contextlib
        with open(zg, 'w', encoding="utf-8") as spipe:
            with contextlib.redirect_stdout(spipe):
                z	
        �utf-8��encoding)�os�pipe�replacer�open)�script�r�w�indented�wrappeds&    �,C:\Python315\\Lib\test\test__interpreters.py�_captured_scriptrs\��
�7�7�9�D�A��~�~�d�$8�9�H����#���
�	�	�
�G��D��W�-�-�-�c��[U2vq#U9^tt^2[OV2UO2ttPPP2!)%fhP!9h�N)rr�
run_string�read)�interp�requestr�rpipes&&  r�_run_outputr"!s6��$�W�-�M�F�	��� � ��0��z�z�|�
����s�%A	�	A	�A	c��Ue[Oo[OUP
Q5FD"o[O	U2%fJ P!	[Q2g)N)�errorzinterp is not running)r�
SHORT_TIMEOUT�sleeping_retryr�
is_running�RuntimeError)r�timeout�_s&& r�_wait_for_interp_to_runr+(sP�����'�'��
�
#�
#�G�5�
9�
9���#�#�F�+�+��:��2�3�3rc#�f`` �[O2vnoUU1Qko[OUQ5oUO	2[R2Pw�	[
UQQQ59^tt^2oUOQ2PPP2UO2P!)%fhK"9h3h)c�P:�[OR[QRQ022P!)z7
            # wait for "signal"
            with open(zG, encoding="utf-8") as rpipe:
                rpipe.read()
            )rrr)rrs��r�run�_running.<locals>.run8s.���� � ���5��c�
�1�*�	r��targetrrr
�done)	rr�	threading�Thread�startr+r�write�join)rrr.�t�spipersf    @r�_runningr:5ss����
�7�7�9�D�A�q��	����$�A��G�G�I��F�#�	�	
�a��w�	'�	'�5�
���F��
(��F�F�H�
(�	'�s$�A.B1�2B�B1�B.	�'B.	�)B1c��[O2FD#uqU]6XcJ
[OU2J%	P![OcJAh9h�r)r�list_all�destroy�InterpreterError)�idr*s  r�clean_up_interpretersrAJsN���(�(�*���
��7��	��!�!�"�%�	+��
�-�-�	��	�s�A�A�A�Ac�(`�\sQs]TsnQsQsUsP!)�TestBasec��[2P!r)rA��selfs&r�tearDown�TestBase.tearDownVs���r�)�__name__�
__module__�__qualname__�__firstlineno__rG�__static_attributes__�__classdictcell__��
__classdict__s@rrCrCTs���� � rrCc�.`�\sQs]]snQsQsQsUsP!)�IsShareableTestsc	���,QNoSFDIoUOU29^tt^2UO[OU22PPP2JK	P!)%fhJ`9h)N)	N�spam�spam�
i����TFgY@)�)rV�eggs)�subTest�
assertTruer�is_shareable)rF�
shareables�objs&  r�test_default_shareables�(IsShareableTests.test_default_shareables_sP���
��C����c�"�"����!�.�.�s�3�5�#�"��"�"�"�s�%A	�A)
�!A)
c�z�QQ2oQQ[2o[Q[[[2[	2UUQ2UQ2,	oSFDRoUO[
U229^tt^2UO[OU22PPP2JT	P!)%fhJi9h)c�.`�\sQs]ssnQsQsQsUsP!)�3IsShareableTests.test_not_shareable.<locals>.Cheesec��VmP!r��name)rFrfs&&r�__init__�<IsShareableTests.test_not_shareable.<locals>.Cheese.__init__ts�� �	rc��UO!rrerEs&r�__str__�;IsShareableTests.test_not_shareable.<locals>.Cheese.__str__vs���y�y� rre)rJrKrLrMrgrjrNrOrPs@r�Cheesercss����
!�
!�
!rrlc��\sQs]ysQsQsP!)�5IsShareableTests.test_not_shareable.<locals>.SubByteszA subclass of a shareable type.rI)rJrKrLrM�__doc__rNrIrr�SubBytesrnys��1rrp.�WensleydalerU)
�bytes�NotImplemented�type�object�	ExceptionrZ�repr�assertFalserr\)rFrlrp�not_shareablesr^s&    r�test_not_shareable�#IsShareableTests.test_not_shareablers���	!�	!�	2�u�	2�
����������}�%���!�
��"�C����d�3�i�(�(�� � �!�.�.�s�3�5�)�(�"�(�(�(�s�6%B)	�)B:
�2B:
rI)rJrKrLrMr_rzrNrOrPs@rrSrS]s����5�&5�5rrSc�(`�\sQs]�snQsQsUsP!)�ModuleTestsc�D�[[O2Q2P!)zimport _interpreters)r"r�createrEs&r�test_import_in_interpreter�&ModuleTests.test_import_in_interpreter�s���� � �"�"�	
rrI)rJrKrLrMr�rNrOrPs@rr}r}�s����
�
rr}c�4`�\sQs]�snQsQsQsQsUsP!)�ListAllTestsc��[O2uq[O2TTt,tFDuq2UMJ	oooUOVA,2P!ttoohr)r�get_mainr=�assertEqual)rF�mainr*r@�idss&    r�test_initial�ListAllTests.test_initial�sH�� �)�)�+��� -� 6� 6� 8�9� 8�f�b�r� 8��9�����f�%��:s�Ac��[O2uq[O2o[O2o[O2TTt,tFDuqRUMJ	oooUO	VaV4,2P!ttoohr)rr�rr=r��rFr�r*�first�secondr@r�s&      r�test_after_creating� ListAllTests.test_after_creating�sg�� �)�)�+����$�$�&���%�%�'�� -� 6� 6� 8�9� 8�f�b�r� 8��9�����U�3�4��:s�A;c�,�[O2uq[O2o[O2o[OU2[O	2TTt,tFDuqRUMJ	oooUOVaU,2P!ttoohr)rr�rr>r=r�r�s&      r�test_after_destroying�"ListAllTests.test_after_destroying�st�� �)�)�+����$�$�&���%�%�'�����e�$� -� 6� 6� 8�9� 8�f�b�r� 8��9�����V�n�-��:s�*BrI)	rJrKrLrMr�r�r�rNrOrPs@rr�r��s����&�
5�.�.rr�c�.`�\sQs]�snQsQsQsUsP!)�GetCurrentTestsc��[O2uq[O2uq2UOV12UO	U[
2P!r)rr��get_currentr��assertIsInstance�int)rFr�r*�curs&   r�	test_main�GetCurrentTests.test_main�s@�� �)�)�+����+�+�-�������#����c�3�'rc�Z�[O2uq[O2o[U[	Q22o[UO
22o[O2TTt,tFDuqbUMJ	toovq'UOVW2UOVQ2P!ttooh)z�
            import _interpreters
            cur, *_ = _interpreters.get_current()
            print(cur)
            assert isinstance(cur, int)
            )
rr�rr"rr��stripr=r��assertNotEqual)rFr�r*r�outr�r@�expecteds&       r�test_subinterpreter�#GetCurrentTests.test_subinterpreter�s��� �)�)�+����%�%�'���&�&�*�#����#�)�)�+���(5�(>�(>�(@�A�(@�f�b�r�(@�A�������'����C�&��Bs�/B'rI)rJrKrLrMr�r�rNrOrPs@rr�r��s����(�'�'rr�c�.`�\sQs]�snQsQsQsUsP!)�GetMainTestsc���[O2TTt,tFDuqUMJ	toovo[O2uqBUOVC2UO	U[
2P!ttoohr)rr=r�r�r�r�)rFr@r*r�r�s&    r�test_from_main�GetMainTests.test_from_main�sY��'4�'=�'=�'?�@�'?�V�R�b�'?�@�
�� �)�)�+�������(����d�C�(��As�A*c��[O2TTt,tFDuqUMJ	toovo[O2o[U[	Q22o[UO
22oUOVc2P!ttooh)z�
            import _interpreters
            main, *_ = _interpreters.get_main()
            print(main)
            assert isinstance(main, int)
            )rr=rr"rr�r�r�)rFr@r*r�rr�r�s&      r�test_from_subinterpreter�%GetMainTests.test_from_subinterpreter�sq��'4�'=�'=�'?�@�'?�V�R�b�'?�@�
���%�%�'���&�&�*�#����3�9�9�;�������(��As�BrI)rJrKrLrMr�r�rNrOrPs@rr�r��s����)�
)�
)rr�c�p`�\sQs]�snQs\OQ2Q2sQsQs	Qs
QsQsUs
P!)	�IsRunningTestsc�z�[O2uqUO[OU22P!r)rr�r[r')rFr�r*s&  rr��IsRunningTests.test_main�s)�� �)�)�+������
�0�0��6�7rzFails on FreeBSDc�f�[O2oUO[OU22[	U29^tt^2UO[OU22PPP2UO[OU22P!)%fhK69hr)rrrxr'r:r[�rFrs& rr��"IsRunningTests.test_subinterpreter�sr���%�%�'������1�1�&�9�:�
�f�
�
��O�O�M�4�4�V�<�=������1�1�&�9�:��
�s�
%B � B0	�)B0	c��[O2o[U[QUQ022oUO	UO2Q2P!)zJ
            import _interpreters
            if _interpreters.is_running(zZ):
                print(True)
            else:
                print(False)
            �True)rrr"rr�r�)rFrr�s&  rr��'IsRunningTests.test_from_subinterpreter�sO���%�%�'���&�&�.)�)/��1
�*�#���	
�������f�-rc��[O2o[OU2UO[29^tt^2[OU2PPP2P!)%fhP!9hr)rrr>�assertRaisesrr'r�s& r�test_already_destroyed�%IsRunningTests.test_already_destroyed�sM���%�%�'�����f�%�
�
�
�7�
8�
8��$�$�V�,�9�
8�
8�
8���A(�(A9	�1A9	c��UO[29^tt^2[OQ2PPP2P!)%fhP!9h�i@B)r�rrr'rEs&r�test_does_not_exist�"IsRunningTests.test_does_not_exist�s1��
�
�
�7�
8�
8��$�$�Y�/�9�
8�
8�
8���?�A	�A	c��UO[29^tt^2[OP2PPP2P!)%fhP!9h�rX)r��
ValueErrorrr'rEs&r�test_bad_id�IsRunningTests.test_bad_ids0��
�
�
�z�
*�
*��$�$�R�(�+�
*�
*�
*�r�rI)rJrKrLrMr��unittest�skipr�r�r�r�r�rNrOrPs@rr�r��sA����8��]�]�%�&�;�'�;�	.�-�0�)�)rr�c�`�\sQsQsnQs\OQ2Q2s\OQP	Q5Q2s
QsQ	sQ
s
QsQsUsP!)
�CreateTests�c���[O2oUOU[2[O	2TTt,tFDuqUMJ	oooUOWU2P!ttoohr)rrr�r�r=�assertIn)rFr@r*�afters&   r�test_in_main�CreateTests.test_in_main
sT��
�
!�
!�
#�����b�#�&�"/�"8�"8�":�;�":����":��;��
�
�b�%� ��<s�A'z*enable this test when working on pystate.cc���[2o[]d2FD=o[O2o[O	U2UOU2J?	UO
[U2]d2P!)�d)�set�rangerrr>�addr��len)rF�seenr*r@s&   r�test_unique_id�CreateTests.test_unique_idsT���u���s��A��%�%�'�B��!�!�"�%��H�H�R�L��
	
����T��C�(rzgh-129824: race on tp_flags)�threadc��``�[O2nPnUU1Qko[OUQ5oR9^tt^2UO2PPP2UO	2[
9PIc%.Q[O22DjJ	LQ[O222oUORU2P!)%fhK�9h)Nc�r:�[O2nRO2RO2P!r)rr�acquire�release)r@�locks��r�f�%CreateTests.test_in_thread.<locals>.fs#����%�%�'�B��L�L�N��L�L�Nrr0c3�4�SF �D	uqUw�	J	P!3hrrI��.0r@r*s&  r�	<genexpr>�-CreateTests.test_in_thread.<locals>.<genexpr>)���%=���%=�6�2�B�%=���)	r3�Lockr4r5r7r�rr=r�)rFr�r8r�r@r�s&   @@r�test_in_thread�CreateTests.test_in_threads�����~�~���
��	�
���A�&��
�T�
�G�G�I��	������>�]�%;�%;�%=�>���>�]�%;�%;�%=�>�>���
�
�b�%� �	�T�s�C�C	�C	c��[O2TTt,tFDuqUMJ	toovo[O2o[U[	Q22o[UO
22o[9PIc%.Q[O22DjJ	LQ[O222oUOVsVF.2P!ttooh)z�
            import _interpreters
            id = _interpreters.create()
            print(id)
            assert isinstance(id, int)
            c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr��5CreateTests.test_in_subinterpreter.<locals>.<genexpr>7r�r�)	rr=rr"rr�r�r�r�)rFr@r*r��id1r��id2r�s&       r�test_in_subinterpreter�"CreateTests.test_in_subinterpreter,s���"/�"8�"8�":�;�":����":�;����"�"�$���#�v�'� ����#�)�)�+�����>�]�%;�%;�%=�>���>�]�%;�%;�%=�>�>������s� 0�1��<s�Cc��``�[O2TTt,tFDuqUMJ	toovo[O2nPnUU1Qko[OUQ5oUO2UO
2[9PIc%.Q[O22DjJ	LQ[O222oUOVcRR.2P!ttooh)Nc�f:�[R[Q22o[UO22nP!)z|
                import _interpreters
                id = _interpreters.create()
                print(id)
                )r"rr�r�)r�r�r�s ��rr��6CreateTests.test_in_threaded_subinterpreter.<locals>.f>s-����c�6�+�$��C�
�c�i�i�k�"�Crr0c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr��>CreateTests.test_in_threaded_subinterpreter.<locals>.<genexpr>Kr�r�)	rr=rr3r4r5r7r�r�)	rFr@r*r�r�r8r�r�r�s	&      @@r�test_in_threaded_subinterpreter�+CreateTests.test_in_threaded_subinterpreter:s����"/�"8�"8�":�;�":����":�;����"�"�$����	#�
���A�&��	���	�	������>�]�%;�%;�%=�>���>�]�%;�%;�%=�>�>������s�C� 0�1��#<s�C&c�L�[9PIc%.Q[O22DjJ	LQ[O222o,o[]2FD(o[O	2oUOU2J*	SFDo[O
U2J	[O	2o[9PIc%.Q[O22DjJ	LQ[O222oUOVQU.*2P!)c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr��5CreateTests.test_after_destroy_all.<locals>.<genexpr>O���&>���&>�F�B�R�&>�r�c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr�r�Zr�r�)r�rr=r�r�appendr>r�)rF�beforer�r*r@r�s&     r�test_after_destroy_all�"CreateTests.test_after_destroy_allNs�����?�m�&<�&<�&>�?���?�m�&<�&<�&>�?�?�����q��A��%�%�'�B��J�J�r�N���B��!�!�"�%���
!�
!�
#����>�]�%;�%;�%=�>���>�]�%;�%;�%=�>�>������"��
�.rc�f�[9PIc%.Q[O22DjJ	LQ[O222o[O2o[O2o[O2o[O	U2[O	U2[O2o[9PIc%.Q[O22DjJ	LQ[O222oUOVaVS.*2P!)c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr��6CreateTests.test_after_destroy_some.<locals>.<genexpr>^r�r�c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr�rhr�r�)r�rr=rr>r�)rFr�r�r��id3r@r�s&      r�test_after_destroy_some�#CreateTests.test_after_destroy_some]s�����?�m�&<�&<�&>�?���?�m�&<�&<�&>�?�?���"�"�$���"�"�$���"�"�$�����c�"����c�"�
�
!�
!�
#����>�]�%;�%;�%=�>���>�]�%;�%;�%=�>�>������"�� 2�3rrI)rJrKrLrMr�r�r�r�r�skip_if_sanitizerr�r�r�r�rrNrOrPs@rr�r�se����!��]�]�?�@�)�A�)�
���<�T�J�!�K�!� 2�2�(
/�4�4rr�c�^`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsUsP!)
�DestroyTests�lc�j�[O2o[O2o[O2o[9PIc%.Q[O22DjJ	LQ[O222oUO	V$2[OU2[9PIc%.Q[O22DjJ	LQ[O222oUO
V%2UO	V2UO	V52P!)c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr��(DestroyTests.test_one.<locals>.<genexpr>rr�r�c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr�rwr�r�)rrr�r=r�r>�assertNotIn)rFr�r�rr�r�s&     r�test_one�DestroyTests.test_onens����"�"�$���"�"�$���"�"�$����?�m�&<�&<�&>�?���?�m�&<�&<�&>�?�?���
�
�c�"����c�"���>�]�%;�%;�%=�>���>�]�%;�%;�%=�>�>������$��
�
�c�!��
�
�c�!rc���[9PIc%.Q[O22DjJ	LQ[O222o[2o[]2FD(o[O	2oUOU2J*	[9PIc%.Q[O22DjJ	LQ[O222oUO
VQU*2SFDo[OU2J	[9PIc%.Q[O22DjJ	LQ[O222oUO
Va2P!)c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr��(DestroyTests.test_all.<locals>.<genexpr>}s��'?���'?�V�R�b�'?�r�c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr�r�r�r�c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr�r�r�r�)r�rr=r�rr�r�r>)rF�initialr�r*r@r�r�s&      r�test_all�DestroyTests.test_all|s����#�@�}�'=�'=�'?�@�#�#�@�}�'=�'=�'?�@�@���e���q��A��%�%�'�B��G�G�B�K����?�m�&<�&<�&>�?���?�m�&<�&<�&>�?�?������3��/��B��!�!�"�%����>�]�%;�%;�%=�>���>�]�%;�%;�%=�>�>������(rc�``�[O2TTt,tFDuqUMJ	toovnRO[O29^tt^2[O	R2PPP2UU1Qko[
OUQ5oUO2UO2P!ttooh)%fhKV9h)Nc�:�RO[O29^tt^2[OR2PPP2P!)%fhP!9hr)r�rr?r>)r�rFs��rr��!DestroyTests.test_main.<locals>.f�s8����"�"�=�#A�#A�B�B��%�%�d�+�C�B�B�B�s�A
�
A	�A	r0)	rr=r�r?r>r3r4r5r7)rFr@r*r�r8r�sf    @rr��DestroyTests.test_main�s����"/�"8�"8�":�;�":����":�;���
�
�
�}�=�=�
>�
>��!�!�$�'�?�	,�
���A�&��	���	�	�����<�
>�
>�s�B3�B9�9C		�C		c��[O2o[OU2UO[29^tt^2[OU2PPP2P!)%fhP!9hr)rrr>r�r�rFr@s& rr��#DestroyTests.test_already_destroyed�sM��
�
!�
!�
#�����b�!�
�
�
�7�
8�
8��!�!�"�%�9�
8�
8�
8�r�c��UO[29^tt^2[OQ2PPP2P!)%fhP!9hr�)r�rrr>rEs&rr�� DestroyTests.test_does_not_exist�s1��
�
�
�7�
8�
8��!�!�)�,�9�
8�
8�
8�r�c��UO[29^tt^2[OP2PPP2P!)%fhP!9hr�)r�r�rr>rEs&rr��DestroyTests.test_bad_id�s0��
�
�
�z�
*�
*��!�!�"�%�+�
*�
*�
*�r�c��[O2TTt,tFDuqUMJ	toovo[O2o[QUQ02o[O	V2[
9PIc%.Q[O22DjJ	LQ[O222oUO
VSU.2P!ttooh)zY
            import _interpreters
            try:
                _interpreters.destroy(zV)
            except _interpreters.InterpreterError:
                pass
            c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr��1DestroyTests.test_from_current.<locals>.<genexpr>�r�r��rr=rrrr�r�)rFr@r*r�rr�s&     r�test_from_current�DestroyTests.test_from_current�s���"/�"8�"8�":�;�":����":�;���
�
!�
!�
#���'�(*�d�+
����	� � ��,���>�]�%;�%;�%=�>���>�]�%;�%;�%=�>�>������r�
�+��<s�Cc���[O2TTt,tFDuqUMJ	toovo[O2o[O2o[QUQ02o[O	VF2[
9PIc%.Q[O22DjJ	LQ[O222oUO
VsU.2P!ttooh)zD
            import _interpreters
            _interpreters.destroy(�)
            c3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr��1DestroyTests.test_from_sibling.<locals>.<genexpr>�r�r�r))rFr@r*r�r�r�rr�s&       r�test_from_sibling�DestroyTests.test_from_sibling�s���"/�"8�"8�":�;�":����":�;����"�"�$���"�"�$���#�#&�%�(
����	� � ��-���>�]�%;�%;�%=�>���>�]�%;�%;�%=�>�>������s��,��<s�Cc�`�[O2nU1Qko[OUQ5oUO	2UO2P!)c�4:�[OR2P!r)rr>�r@s�rr��.DestroyTests.test_from_other_thread.<locals>.f�s����!�!�"�%rr0)rrr3r4r5r7)rFr�r8r@s&  @r�test_from_other_thread�#DestroyTests.test_from_other_thread�s:���
�
!�
!�
#��	&�
���A�&��	���	�	���rc	�H�[O2TTt,tFDuqUMJ	toovo[O2o[U29^tt^2UO	[OU2QUQ0Q5UO
[OQUQ0Q59^tt^2[OU2PPP2UO	[OU22PPP2P!ttooh)%fhKD9h)%fhP!9h)zInterp z& should be running before destruction.)�msgz%Should not be able to destroy interp z while it's still running.)	rr=rr:r[r'r�r?r>)rFr@r*r�rs&    r�test_still_running�DestroyTests.test_still_running�s���"/�"8�"8�":�;�":����":�;����%�%�'��
�f�
�
��O�O�M�4�4�V�<�")�&��1W� X�
�
Z��"�"�=�#A�#A�)N�v�h�Vp�'q�#�s�s��%�%�f�-�s�
�O�O�M�4�4�V�<�=��
��<�s�s��	�
�
�s6�C7�AD�+C=	�,D�=D

�D

�D�D!	�D!	rI)rJrKrLrMrrr�r�r�r�r*r0r6r:rNrOrPs@rr
r
ls<����"�)��&�-�&�
,�-��
>�
>rr
c�F``�\sQsQsnU1QksQsQsQsQsUs	U9s
!)�CommonTests��c�X:�[RU_2[O2UmP!r��super�setUprrr@�rF�	__class__s&�rrB�CommonTests.setUp�����
��
���&�&�(��rc��QoUO[U29^tt^2[OUOQ]2PPP2UO[U29^tt^2[OUOQ]Q5PPP2QoUO[U29^tt^2[OUOQ]Q5PPP2QoUO[U29^tt^2[O
UOQ]Q5PPP2QoUO[U29^tt^2[OUO]2PPP2P!)%fhCK<9h)%fhCK9h)%fhK�9h)%fhK�9h)%fhP!9h)z0exec\(\) argument 'shared' must be dict, not int�a��sharedz6run_string\(\) argument 'shared' must be dict, not intz4run_func\(\) argument 'shared' must be dict, not intc��P!rrIrIrr�<lambda>�-CommonTests.test_signatures.<locals>.<lambda>����Drz?set___main___attrs\(\) argument 'updates' must be dict, not int��assertRaisesRegex�	TypeErrorr�execr@r�run_func�set___main___attrs�rFr9s& r�test_signatures�CommonTests.test_signatures�s=��A��
�
#�
#�I�s�
3�
3����t�w�w��Q�/�4�
�
#�
#�I�s�
3�
3����t�w�w��A��6�4�G��
�
#�
#�I�s�
3�
3��$�$�T�W�W�c�!�$�<�4�E��
�
#�
#�I�s�
3�
3��"�"�4�7�7�L��"�C�4�Q��
�
#�
#�I�s�
3�
3��,�,�T�W�W�a�8�4�
3�4�
3�
3��
3�
3�
3��4�
3��4�
3��4�
3�
3�sY�"E7�*#F�5#F�$F2�!G�7F	�F	�F	�F	�F/	�(F/	�2G	�;G	�G	�G	c���QoUO[U29^tt^2[OUOQPQ5PPP2UO[U29^tt^2[OUOQPQ5PPP2UO[U29^tt^2[O
UOQPQ5PPP2UO[U29^tt^2[OUOP2PPP2P!)%fhK�9h)%fhK�9h)%fhK9h)%fhP!9h)zmust be dict, not NonerHrIc��P!rrIrIrrrL�6CommonTests.test_invalid_shared_none.<locals>.<lambda>�rNrrOrUs& r�test_invalid_shared_none�$CommonTests.test_invalid_shared_none�s���'��
�
#�
#�I�s�
3�
3����t�w�w��D��9�4�
�
#�
#�I�s�
3�
3��$�$�T�W�W�c�$�$�?�4�
�
#�
#�I�s�
3�
3��"�"�4�7�7�L��"�F�4�
�
#�
#�I�s�
3�
3��,�,�T�W�W�d�;�4�
3�
4�
3��
3�
3��
3�
3��
3�
3�
3�sG�#D)�+#D<�4$E�>!E"�)D9	�2D9	�<E	�E	�E	�E	�"E3	�+E3	c�@�Q]-oQoUO[U29^tt^2[OUOQUQ5PPP2UO[U29^tt^2[OUOQUQ5PPP2UO[U29^tt^2[O
UOQUQ5PPP2P!)%fhK�9h)%fhKo9h)%fhP!9h)u�zsurrogates not allowedrHrIc��P!rrIrIrrrL�:CommonTests.test_invalid_shared_encoding.<locals>.<lambda>rNr)rP�UnicodeEncodeErrorrrRr@rrS)rF�
bad_sharedr9s&  r�test_invalid_shared_encoding�(CommonTests.test_invalid_shared_encoding�s�����]�
�&��
�
#�
#�$6��
<�
<����t�w�w��J��?�=�
�
#�
#�$6��
<�
<��$�$�T�W�W�c�*�$�E�=�
�
#�
#�$6��
<�
<��"�"�4�7�7�L��"�L�=�
<�	=�
<��
<�
<��
<�
<�
<�s5�#C&�/#C9�8$D�&C6	�/C6	�9D		�D		�D	�D	r4)rJrKrLrMrBrVr[rbrNrO�
__classcell__�rDrQs@@rr=r=�s ����)�9�$	<�	M�	Mrr=c�``�\sQsQsnU1QksQsQsQsQsQs	Qs
\O2Q	2s
Q
sQsQsQ
sQsQsQsQsQsQsQsQs\O6Q2Q2sQsUsU9s!)�RunStringTests�c�X:�[RU_2[O2UmP!rr@rCs&�rrB�RunStringTests.setUprFrc���[Q2vqU9^tt^2[OUOU2UO	2oPPP2UOWQ2P!)%fhK$9h)�print("it worked!", end="")�
it worked!)rrrr@rr�)rFr�filer�s&   r�test_success�RunStringTests.test_success
sR��'�(E�F���
�T��$�$�T�W�W�f�5��)�)�+�C��	
����l�+�	�T�s�1A&�&A6	�/A6	c�4``�[Q2vnoU9^tt^2UU1Qko[OUQ5oUO2UO	2UO2oPPP2RO
WQ2P!)%fhK$9h)rlc�J:�[OROR2P!r)rrr@)rrFs��rr��(RunStringTests.test_in_thread.<locals>.fs����(�(����&�9rr0rm)rr3r4r5r7rr�)rFrnr�r8r�rsf    @rr��RunStringTests.test_in_threadsj���'�(E�F����
�T�
:�� � ��*�A�
�G�G�I�
�F�F�H��)�)�+�C��	
����l�+��T�s�AB�B	�B	c��[O2o[Q2vq#U9^tt^2[OV2UO	2oPPP2UOWQ2P!)%fhK$9h)z�
            import threading
            def f():
                print('it worked!', end='')

            t = threading.Thread(target=f)
            t.start()
            t.join()
            rm�rrrrrr�)rF�	subinterprrnr�s&    r�test_create_thread�!RunStringTests.test_create_threads`��!�(�(�*�	�'�)�����T��$�$�Y�7��)�)�+�C��	
����l�+�	�T�s�&A/�/A?	�8A?	c	���UOQ29^tt^2Qo[OQ2o[QUQ02vq4U9^tt^2[O	V#2UO2oPPP2UO
WU2PPP2UOQ29^tt^2[OQ2o[Q2vq4U9^tt^2[O	V#2UO2oPPP2UO
WQ2PPP2P!)%fhK�9h)%fhK�9h)%fhKR9h)%fhP!9h)�isolated�spam spam spam spam spama<
                import threading
                def f():
                    print('it worked!', end='')

                try:
                    t = threading.Thread(target=f, daemon=True)
                    t.start()
                    t.join()
                except RuntimeError:
                    print('z', end='')
                znot isolated�legacyz�
                import threading
                def f():
                    print('it worked!', end='')

                t = threading.Thread(target=f, daemon=True)
                t.start()
                t.join()
                rm)rZrrrrrr��rFr�rwrrnr�s&     r�test_create_daemon_thread�(RunStringTests.test_create_daemon_thread0s��
�\�\�*�
%�
%�1�H�%�,�,�Z�8�I�+�
1�%�:�&�-��L�F����(�(��;��i�i�k���
���S�(�+�'&�*�\�\�.�
)�
)�%�,�,�X�6�I�+�-��L�F����(�(��;��i�i�k���
���S�,�/�*�
)�
���&�
%��@���*�
)�
)�s_�3D9�&D&	�4D9�/-E�&E	�E�&D6
�/D6
�1D9�9E		�E		�E
�E
�E�E0	�(E0	c�.�[O2o,QNoSFD`oUOU29^tt^2[OU[	UQ52[OUQU8Q02PPP2Jb	P!)%fhJw9h)N)r^zassert(obj == �))NrVrU�*)rrrZrT�dictr)rFr�objectsr^s&   r�test_shareable_types�#RunStringTests.test_shareable_typesWsu���%�%�'��
���C����c�"�"��0�0���#��G��(�(��$�S�G�1�-��#�"��"�"�"�s�<B	�B
�B
c��Qo[O2o[QUQ02vq4U9^tt^2[OV#2UO	2oPPP2UOWU2P!)%fhK$9h)r|z�
            import os, sys
            try:
                os.execl(sys.executable)
            except RuntimeError:
                print('z', end='')
            rvr~s&     r�test_os_exec�RunStringTests.test_os_execgsv��-��!�(�(�*�	�'�-�
!�z�"
�)�����T��$�$�Y�7��)�)�+�C��	
����h�'�	�T�s�&A5�5B	�>B	c	��]PHoUOQQQ59^tt^2oUOP2UO2Qo[	QUO
QUQ02o[OUOU2UO]2UO2oUOVS2PPP2P!)%fhP!9h)rzw+rr
r|z�
                import os
                try:
                    os.fork()
                except RuntimeError:
                    with open('zE', 'w', encoding='utf-8') as out:
                        out.write('z')
                )�tempfile�NamedTemporaryFiler6�flushrrfrrr@�seekrr�)rFr�rnr�r�contents&     r�	test_fork�RunStringTests.test_forkws����
�
(�
(���
(�
@�
@�D��J�J�r�N��J�J�L�1�H��! �
!%�	�	�{�+$�$,�:�.�
��F�
�$�$�T�W�W�f�5��I�I�a�L��i�i�k�G����W�/�#A�
@�
@�
@�s�BB=�=C	�C	c	�B�[UO29^tt^2UO[O29^tt^2[OUOQ2PPP2PPP2P!)%fhK9h)%fhP!9h)�
print("spam"))r:r@r�rr?rrEs&r�test_already_running�#RunStringTests.test_already_running�s]��
�d�g�g�
�
��"�"�=�#A�#A�B�B��(�(����/�B�C��
�B�B���
�
�s/�(B
�!A:	�(B
�:B

�B

�B
�
B	�B	c�h�]oS[9PIc%.Q[O22DjJ	LQ[O2227cU]*
oJ^UO[29^tt^2[OUQ2PPP2P!)%fhP!9h)rc3�4�SF �D	uqUw�	J	P!3hrrIr�s&  rr��5RunStringTests.test_does_not_exist.<locals>.<genexpr>�s��)A���)A�v�r��)A�r�r�)r�rr=r�rrr s& rr��"RunStringTests.test_does_not_exist�st��
���C�C�B��)?�)?�)A�B�C�C�B��)?�)?�)A�B�B�B��!�G�B�
�
�
�7�
8�
8��$�$�R��9�9�
8�
8�
8�s�?B � B1	�)B1	c��UO[29^tt^2[OPQ2PPP2P!)%fhP!9h)rXr�)r�r�rrrEs&r�
test_error_id�RunStringTests.test_error_id�s2��
�
�
�z�
*�
*��$�$�R��9�+�
*�
*�
*���A�A	�	A	c��UO[29^tt^2[OQQ2PPP2P!)%fhP!9h)rVr�)r�rQrrrEs&rr��RunStringTests.test_bad_id�s2��
�
�
�y�
)�
)��$�$�V�_�=�*�
)�
)�
)�r�c��UO[29^tt^2[OUO]
2PPP2P!)%fhP!9h)rW�r�rQrrr@rEs&r�test_bad_script�RunStringTests.test_bad_script�s6��
�
�
�y�
)�
)��$�$�T�W�W�b�1�*�
)�
)�
)���!A
�
A	�A	c��UO[29^tt^2[OUOQ2PPP2P!)%fhP!9h)s
print("spam")r�rEs&r�test_bytes_for_script�$RunStringTests.test_bytes_for_script�s7��
�
�
�y�
)�
)��$�$�T�W�W�.>�?�*�
)�
)�
)�r�c��QQ[2o[UOUQ22oUOUQ2P!)c��\sQsQsQsP!)�<RunStringTests.test_str_subclass_string.<locals>.StrSubclass�rI)rJrKrLrMrNrIrr�StrSubclassr��s��rr�zprint(1 + 2)z3
)�strr"r@r�)rFr��outputs&  r�test_str_subclass_string�'RunStringTests.test_str_subclass_string�s/��$�#�$��T�W�W�k�.�&A�B�������'rc�6�[O2vqQQQQQP-o[QUQ02o[O	UO
U2[O
UO
U2[UQ29^tt^2o[OU2oPPP2UOWQ*]*2UOUQ*P2UOUQ*])2UOUQ*2P!)%fhKu9h)	rV�hamrYs-1�cheddarz�
            eggs = int(eggs)
            spam = 42
            result = spam + eggs

            ns = dict(vars())
            del ns['__builtins__']
            import pickle
            with open(�C, 'wb') as chan:
                pickle.dump(ns, chan)
            �rb�result)rrrrrTr@rr�pickle�loadr��assertIsNone�rFrrrJr�chan�nss&      r�test_with_shared�RunStringTests.test_with_shared�s����w�w�y��������4���
���c�
�
�
��	�(�(����&�9�� � ����&�1�
�!�T�]�]�d����T�"�B��	
����F��R�(�����F��R�(�����H��r�*����"�Y�-�(�
�]�s�D�D	�D	c���[OUO[Q22QQ-o[Q2o[O	UOU2[OUOU2[
O2vq4[QUQ02o[OUOU2[UQ29^tt^2o[OU2oPPP2UOWQ*Q*Q2UOUQ	*Q*Q2UOUQ*Q2P!)%fhKk9h)
zj
            spam = 'eggs'
            ns1 = dict(vars())
            del ns1['__builtins__']
            rVr�zL
            ns2 = dict(vars())
            del ns2['__builtins__']
        zr
            ns = dict(vars())
            del ns['__builtins__']
            import pickle
            with open(r�r��ns1rY�ns2)rrr@rrTrrrr�r�r�)rFrJrrrr�r�s&      r�test_shared_overwrites�%RunStringTests.test_shared_overwrites�s��� � ����&�2�+�	��&�!����
��	�(�(����&�9�� � ����&�1��w�w�y������c�
�	���	� � ����&�1�
�!�T�]�]�d����T�"�B��	
����E��6�*�F�3�����E��6�*�F�3�����F��V�,��]�s�E�E	�E	c��[O2vqQQ-o[QUQ02o[O	UO
U2[O
UO
U2[UQ29^tt^2o[OU2oPPP2UOWQ*Q2P!)%fhK+9h)rJsnot __main__z�
            spam = 42

            ns = dict(vars())
            del ns['__builtins__']
            import pickle
            with open(r�r�)rrrrrTr@rrr�r�r�r�s&      r�#test_shared_overwrites_default_vars�2RunStringTests.test_shared_overwrites_default_vars�s����w�w�y����o�.�����c�
�
���	�(�(����&�9�� � ����&�1�
�!�T�]�]�d����T�"�B��	
����J���9��]�s�B:�:C
	�C
	c��[O2vq[OUO[QUQ022[
UQ29^tt^2o[OU2oPPP2[O2vq[OUO[QUQ022[
UQ29^tt^2o[OU2oPPP2UOQW2UOQU2UOQW2UOQU2P!)%fhK�9h)%fhKm9h)z�
            spam = True

            ns = dict(vars())
            del ns['__builtins__']
            import pickle
            with open(zd, 'wb') as chan:
                pickle.dump(ns, chan)
            del ns, pickle, chan
            r�z�
            eggs = False

            ns = dict(vars())
            del ns['__builtins__']
            import pickle
            with open(r�rVrY)rrrrr@rrr�r�r�r)rFrrr�r�r�s&     r�test_main_reused�RunStringTests.test_main_reused�s���w�w�y���� � ����&�6��c�
�
	2�	+�		��!�T�]�]�d��+�+�d�#�C���w�w�y���� � ����&�6��c�
�
2�+�	��!�T�]�]�d��+�+�d�#�C��	
�
�
�f�c�"������%��
�
�f�c�"��
�
�f�c�"�'�]���]�s$�D:�E
�:E
	�E
	�
E	�E	c
��[O2vq[QUQ02o[O	UO
U2[
UQ29^tt^2o[OU2oPPP2WOQ2UOQ2UOUQQQPQPQ	PQ
]*-2P!)%fhKP9h)z�
            spam = 42

            ns = dict(vars())
            ns['__builtins__'] = str(ns['__builtins__'])
            import pickle
            with open(r�r��__builtins__�
__loader__rJ�__main__ro�__package__�__spec__rV)rrrrrr@rr�r��popr�)rFrrrr�r�s&     r� test_execution_namespace_is_main�/RunStringTests.test_execution_namespace_is_main s����w�w�y������c�
�
���	� � ����&�1�
�!�T�]�]�d����T�"�B��	���~��
���|�������
��t��4����B��	��]�s�B;�;C	�C	zblocking foreverc	�x�[Q2o[O29^tt^2o[OUQU2o[O
U29^tt^2oUO
2oPPP2PPP2UOW]2P!)%fhK,9h)%fhK79h)a�
        from textwrap import dedent
        import threading
        import _interpreters
        id = _interpreters.create()
        def f():
            _interpreters.run_string(id, dedent('''
                import time
                # Give plenty of time for the main interpreter to finish.
                time.sleep(1_000_000)
                '''))

        t = threading.Thread(target=f)
        t.start()
        r)rr�temp_dirr�make_script�spawn_python�waitr�)rFr�dirname�filename�proc�retcodes&     r�test_still_running_at_exit�)RunStringTests.test_still_running_at_exit;s�����
���
�
�
�
�7�$�0�0��(�F�K�H��+�+�H�5�5���)�)�+��6� �
	
����!�$�6�5�� �
�s/�7B)�!B	�2B)�B&
�B&
�!B)�)B9	�2B9	r4) rJrKrLrMrBror�rxrr�r�r�
requires_forkr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rNrOrdres@@rrgrgs�����)�,�,�,�"%0�N� (� 
����0��0�*C�
:�:�>�2�@�(�)�:-�>:�(#�B�6�]�]�%�&�%�'�%�%rrgc�``�\sQsQsnU1QksQsQP
-QksQsQsQs	Q	s
Q
sQsQs
Q
sQsQsQsUsU9s!)�RunFailedTests�Tc�X:�[RU_2[O2UmP!rr@rCs&�rrB�RunFailedTests.setUpVrFrc��`�]PHoUO2nUOU1Qk2[O	UO
[
QR8Q022[ORV2!)rc�2:�[OR2!r)r�rmtree)�tempdirs�rrL�+RunFailedTests.add_module.<locals>.<lambda>]s���	� 0� 0�� 9rz7
            import sys
            sys.path.insert(0, r-)	r��mkdtemp�
addCleanuprrr@rrr�)rF�modname�textr�r�s&&& @r�
add_module�RunFailedTests.add_moduleZse�����"�"�$�����9�:�� � ����&�6 � '�{�+
�2�+�	��(�(��'�@�@r�failsc��[O2vq4[QUQUQ02O[U22oU%ca[OUOU2oUOUP2U[OU2[OU2![OUOU2oUOUP2[OU2[OU2P!g9h[OS2[OS2h9h)z9
                import os, sys
                os.write(z�, b'0')

                # This raises an exception:
                {}

                # Nothing from here down should ever run.
                os.write(z{, b'1')
                class NeverError(Exception): pass
                raise NeverError  # never raised
                )rrr�formatrrr@�assertIsNot�close�assertIsrr�)rFr�r�rrr�errr9s&&$     r�
run_script�RunFailedTests.run_scriptds����w�w�y���	��!����������V�F�4�L�)�
��#�.�.�t�w�w��?��� � ��d�+��
�H�H�Q�K��H�H�Q�K�$�.�.�t�w�w��?���
�
�c�4�(��
�H�H�Q�K��H�H�Q�K��	���

�H�H�Q�K��H�H�Q�K�s#�1D
�3D
�,2D
�
D�D�.Ec��[U[2%cSoPoLUOoUOUP	Q5oUO	UO
OU2Ue5UO	UOOQ2]*U2U!UO	UOQOVB22U!)N)r��:z{}: {})	�
isinstancer�rJr�r�rt�	formatted�splitr�)rF�exctyper9r�exctype_name�excinfos&&&&  r�_assert_run_failed�!RunFailedTests._assert_run_failed�s����g�s�#�#�"�L��G�"�+�+�L��/�/�&��/�5��	
������.�.��=��;����W�.�.�4�4�S�9�!�<�)�
+���
���W�.�.�%�_�_�\�?�
A��rc�.�UOUPU2P!r�r)rFr�rs&&&r�assert_run_failed� RunFailedTests.assert_run_failed�s�������v�6rc�,�UOVU2P!rr)rFr�r9rs&&&&r�assert_run_failed_msg�$RunFailedTests.assert_run_failed_msg�s������f�5rc�f�UOQ29^tt^2UO[Q2PPP2UOQ29^tt^2UO[Q2PPP2UOQ29^tt^2UO[QQ2PPP2UOQ29^tt^2UO[QQ2PPP2P!)%fhK�9h)%fhK�9h)%fhKq9h)%fhP!9h)	zsys.exit(0)z-
                sys.exit(0)
                z
sys.exit()zG
                import sys
                sys.exit()
                zsys.exit(42)�42zI
                import sys
                sys.exit(42)
                �
SystemExitz6
                raise SystemExit(42)
                )rZrrrrEs&r�	test_exit�RunFailedTests.test_exit�s���
�\�\�-�
(�
(��"�"�:�0�
�)��\�\�,�
'�
'��"�"�:�0�
�(��\�\�.�
)�
)��&�&�z�4�:�
�*��\�\�,�
'�
'��&�&�z�4�:�
�(�
'�%)�
(��(�
'��*�
)��(�
'�
'�sG�C&�C9�D�D�&C6	�/C6	�9D		�D		�D	�D	�D0	�(D0	c�6�UO[QQ2P!)rVz1
            raise Exception("spam")
            )rrvrEs&r�test_plain_exception�#RunFailedTests.test_plain_exception�s���"�"�9�f�7�	rc	��[Q2oUOQ29^tt^2UO[29^tt^2[OUOU2PPP2PPP2UOQ29^tt^2QoUOV!2oUO[QUQ02PPP2P!)%fhKi9h)%fhKt9h)%fhP!9h)z�
            x = 1 + 2
            y = 2 + 4
            z = 4 + 8

            # missing close paren
            print("spam"

            if x + y + z < 20:
                ...
            r�module�spam_spam_spamz
                import r)	rrZr��SyntaxErrorrrr@r�r)rFrr�r�s&   r�test_invalid_syntax�"RunFailedTests.test_invalid_syntax�s����
�
���\�\�(�
#�
#��"�"�;�/�/��(�(����&�9�0�$��\�\�(�
#�
#�&�G����w�7�H��"�"�;�5��y�!�1�
�$�
#�0�/��$�
#��$�
#�
#�sA�C�!C	�%C�.C,�C
�C
�C�C)	�"C)	�,C=	�5C=	c�4�UO[Q2P!)z+
            res = spam + eggs
            )r�	NameErrorrEs&r�test_NameError�RunFailedTests.test_NameError�s�����y�+�	rc�4�UO[Q2P!)z'
            object().spam
            )r�AttributeErrorrEs&r�test_AttributeError�"RunFailedTests.test_AttributeError�s�����~�0�	rc�4�UO[Q2P!)z�
            raise ExceptionGroup('exceptions', [
                Exception('spam'),
                ImportError('eggs'),
            ])
            )r�ExceptionGrouprEs&r�test_ExceptionGroup�"RunFailedTests.test_ExceptionGroup�s�����~�0�	rc�.�UOQQQ2P!)�MyErrorrVzj
            class MyError(Exception):
                pass
            raise MyError('spam')
            )rrEs&r�test_user_defined_exception�*RunFailedTests.test_user_defined_exception�s���"�"�9�f�7�	rr4)rJrKrLrMrBr�r�rrrr
rrrrr"r&rNrOrdres@@rr�r�TsT����)�A����@�*7�6��4�
�0����rr�c�X``�\sQsQsnU1QksQsQsQsQsQs	Qs
Q	sUsU9s
!)
�RunFuncTests��c�X:�[RU_2[O2UmP!rr@rCs&�rrB�RunFuncTests.setUp�rFrc�v�[O2vqQo[OUO[UQ52[O
UOU2[UQQ59^tt^2oUO2oPPP2UOWQ2P!)%fhK$9h)c	��]PHo[[QQQ59^tt^2oUOU29^tt^2[	QPQ5PPP2PPP2P!)%fhK9h)%fhP!9h�rrrr
rm)�end��
contextlibrr�redirect_stdout�print�r2r9s  rr�)RunFuncTests.test_success.<locals>.script��Q����a��w�/�/�5��/�/��6�6��,�B�/�7�0�/�6�6��0�/�/��.�A.�A	�	A.�A+
�$A+
�&A.�.A?	�7A?	�rrr
rm)
rrrrTr@r�rSrrr�)rFrrr�outfiler�s&     rro�RunFuncTests.test_success�s|���w�w�y���	0�	�(�(����$��)�<����t�w�w��/�
�!�g�
&�
&�'��,�,�.�C�'�	
����l�+�'�
&�s�;B(�(B8	�1B8	c�````�[O2vonQnPnUUUU1Qko[OUQ5oUO	2UO2R%c[Rg[UQQ59^tt^2oUO2oPPP2ROWQ2P!)%fhK$9h)c	��]PHo[[QQQ59^tt^2oUOU29^tt^2[	QPQ5PPP2PPP2P!)%fhK9h)%fhP!9hr/r1r5s  rr�+RunFuncTests.test_in_thread.<locals>.script
r7r8c��:�[ORO[RQ52[O	ROR2P![
coSnPo=P!Po=hh9h)r9)rrTr@r�rSrv)�exc�failedrrFrs ����rr��&RunFuncTests.test_in_thread.<locals>.fsI���
��0�0����$��)�D��&�&�t�w�w��7���
����
�s�A
A�	A(�A(�A#�#A(r0rr
rm)
rrr3r4r5r7rvrrr�)	rFrr�r8r:r�rArrs	f     @@@rr��RunFuncTests.test_in_threads�����w�w�y���1�	0���	�	�
���A�&��	���	�	�������'�
�!�g�
&�
&�'��,�,�.�C�'�	
����l�+�'�
&���B4�4C	�=C	c��[O2vqQoUOo[O	UO
[
UQ52[OUO
U2[UQQ59^tt^2oUO2oPPP2UOWQ2P!)%fhK$9h)c	��]PHo[[QQQ59^tt^2oUOU29^tt^2[	QPQ5PPP2PPP2P!)%fhK9h)%fhP!9hr/r1r5s  rr�-RunFuncTests.test_code_object.<locals>.script&r7r8r9rr
rm)rr�__code__rrTr@r�rSrrr�)rFrrr�coder:r�s&      r�test_code_object�RunFuncTests.test_code_object#s����w�w�y���	0������(�(����$��)�<����t�w�w��-�
�!�g�
&�
&�'��,�,�.�C�'�	
����l�+�'�
&�rDc��`�P	nU1QkoUO[29^tt^2[OUOU2PPP2P!)%fhP!9h)Tc�:�R%fPgP!rrI�rVs�rr�)RunFuncTests.test_closure.<locals>.script7s
����K�4r�r�r�rrSr@)rFrrVs& @r�test_closure�RunFuncTests.test_closure5sA�����	�
�
�
�z�
*�
*��"�"�4�7�7�F�3�+�
*�
*�
*�s�!A�A$	�A$	c���QoUO[29^tt^2[OUOU2PPP2P!)%fhP!9h)c��Q!rNrIrIrrr�.RunFuncTests.test_return_value.<locals>.script=s��rrP�rFrs& r�test_return_value�RunFuncTests.test_return_value<s;��	�
�
�
�z�
*�
*��"�"�4�7�7�F�3�+�
*�
*�
*�s�!A
�
A	�A	c	���UOQ29^tt^2QQkoUO[29^tt^2[O	UO
U2PPP2PPP2UOQ29^tt^2QoUO[29^tt^2[O	UO
U2PPP2PPP2UOQ29^tt^2QoUO[29^tt^2[O	UO
U2PPP2PPP2UOQ29^tt^2QP	-QkoUO[29^tt^2[O	UO
U2PPP2PPP2UOQ	29^tt^2Q
oUO[29^tt^2[O	UO
U2PPP2PPP2P!)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCKE9h)%fhCKQ9h)%fhK�9h)%fhCK	9h)%fhK�9h)%fhP!9h)�argsc��V6XfPgP!rrI)rH�bs&&rr�&RunFuncTests.test_args.<locals>.scriptEs���v�
�vrz*argsc��U%cPgP!rrI)rZs*rrr]Ks����x�4rz**kwargsc��U%cPgP!rrI)�kwargss,rrr]Qs��!�!�z�6r�kwonlyrVc��U%fPgP!rrIrNs$rrr]W�	����tr�posonlyc��U%fPgP!rrIrNs"rrr]]rcrr<)rZr�r�rrSr@rVs& r�	test_args�RunFuncTests.test_argsCs���
�\�\�&�
!�
!�
��"�"�:�.�.��&�&�t�w�w��7�/�"��\�\�'�
"�
"�
 ��"�"�:�.�.��&�&�t�w�w��7�/�#��\�\�*�
%�
%�
"��"�"�:�.�.��&�&�t�w�w��7�/�&��\�\�(�
#�
#�
�t�
��"�"�:�.�.��&�&�t�w�w��7�/�$��\�\�)�
$�
$�
��"�"�:�.�.��&�&�t�w�w��7�/�%�
$�+/�.�.��"�
!�
!��/�.�.��#�
"�
"��/�.�.��&�
%�
%��/�.��$�
#�
#��/�.��%�
$�
$�s��#H5�!H!	�H5�!I�)!I		�
I�3!J�!I1	�5J�%J,�!J	�$J,�
!K�.!K	�K�!H2
�*H2
�,	H5�5I	�>I	�	I
�I
�	I�I.	�&I.	�1J
�:J
�<	J�J	�J	�J)
�"J)
�$J,�,J=	�5J=	�K
�	K
�K�K$	�K$	r4)rJrKrLrMrBror�rJrQrWrfrNrOrdres@@rr)r)�s-����)�,� ,�6,�$4�4�8�8rr)r�r)&r2rr��textwraprr3r��testr�test.supportrrr�
import_modulerrrr"r+�contextmanagerr:rA�TestCaserCrSr}r�r�r�r�r�r
r=rgr�r)rJr�rIrr�<module>rns:���	�
�����&�"�&��+�+�O�<�
�2�	.��
4����
��
�(� �x� � � �05�x�(�(�05�f
�(�
�.�8�.�.'�h�'�.)�8�)�*&)�X�&)�Ra4�(�a4�Hg>�8�g>�T+M�(�+M�\M%�X�M%�`
[�X�[�|n8�8�n8�b�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit