403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/__pycache__/test_runpy.cpython-315.opt-1.pyc
R
>lqj"�c��]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s
]PH,s]PH0s]PH4s
]PH8s]PH<s]QH@GsGsGsGsGsGs]QH\Gs]QHdGsGsGs]QHtGsGsG s ]QH�G"s"G#s#]QH�G%s%]PH�s&]QH�G's'G(s(G)s)G*s*Qs+Q	PQ
PQPQPQ
P-s,Q\Q\&QQQ,Q\OZ]*QP
QP
Q\.\,]QPQ5-s/\/Oa\,2QQ2s1QQ\Od\12s3QQ\Od\12s4QQ \Od\12s5\Q!Q"\Od22s6\7Q#6Xc\Op2P!P!)$�)�force_not_colorized_test_class�infinite_recursion�
no_tracing�requires_resource�requires_subprocess�verbose)�support)�forget�make_legacy_pyc�unload)�create_empty_file�temp_dir�FakePath)�make_script�make_zip_script)�temporary_pycache_prefix)�	_run_code�_run_module_code�
run_module�run_patha�# Check basic code execution
result = ['Top level assignment']
def f():
    result.append('Lower level reference')
f()
del f
# Check the sys module
import sys
run_argv0 = sys.argv[0]
run_name_in_sys_modules = __name__ in sys.modules
module_in_sys_modules = (run_name_in_sys_modules and
                         globals() is sys.modules[__name__].__dict__)
# Check nested operation
import runpy
nested = runpy._run_module_code('x=1\n', mod_name='<run>')
�__name__�__file__�__package__�__doc__�__spec__�sys�runpy�resultzTop level assignmentzLower level reference�	run_argv0�run_name_in_sys_modules�module_in_sys_modules�nestedz<run>)�xr�
__loader__c�6`�\sQs]Lsn,QNsQsQsQsUsP!)�CodeExecutionMixinc��UO2oUO2o[U2FDsoUOQ2%fJUOQ2%fJ5V27cUO	U2V2Q*7fJ[UQ*O	U2Ju	UO	Q2oUO	Q2oUeUOU2L�UOd9UO[UO2[UO22UOFD7oQU*oU[VF21oU[VV21oUOVx2J9	UO[U2[U22SFD(oV1U*1oV2U*1oUOVx2J*	P!)zOCheck two namespaces match.

Ignores any unspecified interpreter created names
�__r!rz	__spec__.)�copy�list�
startswith�endswith�pop�assertIsNone�loader�assertEqual�type�CHECKED_SPEC_ATTRIBUTES�getattr�set)	�self�	result_ns�expected_ns�k�result_spec�
expected_spec�attr�actual�expecteds	&&&      �$C:\Python315\\Lib\test\test_runpy.py�assertNamespaceMatches�)CodeExecutionMixin.assertNamespaceMatchesXss���N�N�$�	�!�&�&�(���i��A��|�|�D�!�!�a�j�j��&6�&6��'��M�M�!�$���1�1��h�'�+�+�A�.�!� �m�m�J�/��#���
�3�
�� ����k�*��#�#�/�� � ��k�&8�&8�!9�!%�m�&:�&:�!;�=��4�4���$�&���W�[�7�8���w�}�;�<��� � ��2�	5�	
����Y���[�)9�:��A��1��&�F��q�>�*�H����V�.��c��[2oUO2oUQ*o[O]*o[OOVS2oUP2oUO
V�2UO[O]*U2UO[OOVS2U2QU-o	V4Q$UU	2oUOV�2UO
V�2UO[O]*U2UO[OOVS2U2P!)z�Check that an interface runs the example code correctly

First argument is a callable accepting the initial globals and
using them to create the actual namespace
Second argument is the expected result
r�sentinel)	�objectr(r�argv�modules�getr>�assertIs�assertIsNot)
r4�create_namespace�expected_namespacerBr6�run_name�saved_argv0�	saved_modr5�
initial_nss
&&&       r=�check_code_execution�'CodeExecutionMixin.check_code_execution�s����8��(�-�-�/���z�*���h�h�q�k���K�K�O�O�H�7�	�$�T�*�	��#�#�I�;��
�
�c�h�h�q�k�;�/��
�
�c�k�k�o�o�h�9�9�E� �(�+�
�"*�J��$�Z�0�	�����/��#�#�I�;��
�
�c�h�h�q�k�;�/��
�
�c�k�k�o�o�h�9�9�Er@�)�name�parent�origin�cached�has_location�submodule_search_locations)	r�
__module__�__qualname__�__firstlineno__r1r>rO�__static_attributes__�__classdictcell__��
__classdict__s@r=r%r%Ls ����M��&/�PF�Fr@r%c�2`�\sQs]�snQsQsQsQsUsP!)�ExecutionLayerTestCasez9Unit tests for runpy._run_code and runpy._run_module_codec�~�[O2oUOQP-2QoUOV!2P!)r#c�&�[[-U2!�N)r�example_source)�init_globalss&r=�	create_ns�7ExecutionLayerTestCase.test_run_code.<locals>.create_ns�s���^�R��>�>r@)�example_namespacer(�updaterO)r4r6rfs&  r=�
test_run_code�$ExecutionLayerTestCase.test_run_code�s;��'�,�,�.������$�
�	�	?��!�!�)�9r@c�``�QnQoQoPo[OORUUQ5n[O	2oUOQRQUQUQUQRQ	UQ
P	QP	-2UU1QkoUO
VT2P!)
z
<Nonsense>zSome other nonsensezNow you're just being silly)rTr.rrr#rrrrr c�*:�[[URR2!rc)rrd)re�mod_name�mod_specs&��r=rf�>ExecutionLayerTestCase.test_run_module_code.<locals>.create_ns�s���#�N�$0�$,�$,�.�
.r@)�	importlib�	machinery�
ModuleSpecrhr(rirO)r4�	mod_fname�
mod_loader�mod_packager6rfrnros&     @@r=�test_run_module_code�+ExecutionLayerTestCase.test_run_module_code�s������)�	�2�
����&�&�1�1�(�9B�9C�2�E��(�,�,�.��������	��*��;�����%�t�#�T�	
�		�	.�
	
�!�!�)�9r@rQ)	rrXrYrZrrjrwr[r\r]s@r=r`r`�s����C�:�:�:r@r`c�`�\sQs]�snQsQsQsQsQsQ Qks	Q!QP
QP
-Q	kks
Q
sQsQ QP
QP
-Qkks
Q QP
QP
-Q
kksQsQ"QksQsQsQsQsQsQsQsQsQsQsQsQsQsQsQsQs Us!P!)#�RunModuleTestCasezUnit tests for runpy.run_modulec�t�[U2UOQU*2P![cP!h9h)zExpected import error for )r�fail�ImportError)r4rns&&r=�expect_import_error�%RunModuleTestCase.expect_import_error�s7��	?��x� �
�I�I�2�X�=�>���	��	�s�(�	7�7�7c�:�UOQ2UOQ2UOQ2UOQ2UOQ2UOQ2UOQ2UOQ2UOQ2P!)	r�sys.imp.ericzos.path.halfza.beez.howardz..eatenz.test_runpyz	.unittest�multiprocessing)r~�r4s&r=�test_invalid_names�$RunModuleTestCase.test_invalid_names�s���� � ��'�� � ��0�� � ��0�� � ��)�� � ��+�� � ��+�� � ��/�� � ��-�� � �!2�3r@c	�F�,QNoSFDLvq#UOUQ59^tt^2[U2UOQU*2PPP2JN	P![c'oSO	SO
S2Po=K:Po=hh9h)%fhJ�9h)�nonexistent_runpy_test_module�rnzExpected ImportError for %r))r�r�)r�r�)�.relative_namer�)rr)r�r�)�subTestrr|r}r/rR)r4�casesrn�
expected_name�excs&    r=�%test_invalid_names_set_name_attribute�7RunModuleTestCase.test_invalid_names_set_name_attribute�s���
��(-�#�H����x��0�0�H��x�(��I�I�;�h�F�G�
1�0�(-��#�>��$�$�S�X�X�}�=�=��>��1�0�0�s?�B	�A�B	�	B�%B�&B�B	�B�B	�B 
�B 
c�L�UO[Q2Q*Q2P!)rr)r/rr�s&r=�test_library_module�%RunModuleTestCase.test_library_module�s������G�,�Z�8�'�Br@c��[OU2U%cP![OOUQ2o[	U2U!)N�__init__.py)�os�mkdir�path�joinr)r4�pkg_dir�	namespace�	pkg_fnames&&& r=�_add_pkg_dir�RunModuleTestCase._add_pkg_dir�s6��
��������G�G�L�L��-�8�	��)�$��r@r��parent_namespacesc��U%f	U%cU%f[Q2gQoU[O*Q*o[OO	[
O229q�[]6�c
[QU	2[OO]U2[]6�c"[Q[O]*2U%cyU,U*o
VJP$S
FDco[OOV�2o	UOV�2o[]6�c
[QU	2[]6�fJW[QU2Je	[OOV�2o
[U
Q29^tt^2oUOU2PPP2[]6�c
[QU
2UQ*U*U*o[O O#UU
2oV�UU1!)%fhKc9h)	z2Can't mark top level module as a namespace package�
__runpy_pkg__�pyz  Package tree in:z  Updated sys.path:z  Next level in:z
  Created:�w�.)�RuntimeErrorr��extsepr��realpath�tempfile�mkdtempr�printr�insertr�r��open�writerq�util�spec_from_file_location)r4�source�depth�mod_baser�r��pkg_name�
test_fnamer��sub_dir�namespace_flags�namespace_flagr�rt�mod_filernros&&&&$$           r=�	_make_pkg�RunModuleTestCase._make_pkg�s~��
�*�E�� 3�4�
4�"���b�i�i�'��,�
��G�G�,�,�X�-=�-=�-?�@�@���Q�;��2�G�<�������7�#��Q�;��3�S�X�X�a�[�A��0�1�E�9�O�"+�B��"1���'�'�,�,�w�9�� �-�-�g�F�	��Q�;��&8�'� B��Q�;��l�I� >�	#2�
�G�G�L�L��5�	�
�)�S�
!�
!�X��N�N�6�"�"��Q�;��l�I�6��S�L�%�'�(�2���>�>�9�9�(�:C�E���8�X�5�5�
"�
!�s�G;�;H	�H	c
��[[O2FD-oUOQ2%fJ[OUJ/	[]6�c[Q2[O][]6�c[Q2[OUP
Q5FD�vq4oSFD7o[O[OOV622J9	SFD9o[OOV62o[OU2J;	J�	[OU2[]6�c[Q2P!P![c(o[]6�c[S2Po=J�Po=J�Po=hh9h[c(o[]6�c[S2Po=J�Po=J�Po=hh9h[c(o[]6�c[S2Po=P!Po=P!Po=hh9h)r�z  Removed sys.modules entriesz  Removed sys.path entry)�topdownz  Removed package tree)
r)rrEr*rr�r�r��walk�remover��OSError�rmdir)	r4�top�entry�root�dirs�filesrR�ex�fullnames	&&       r=�_del_pkg�RunModuleTestCase._del_pkgsY���#�+�+�&�E�����0�0��K�K��&�'��Q�;��=�>��H�H�Q�K��Q�;��8�9�!#����e�!<�!<��D����.��I�I�b�g�g�l�l�4�6�7��
���7�7�<�<��3��.��H�H�X�&��
"=�	&��H�H�S�M���{�E�":�;�{���.���{�E�"�I�I�{��.���.���{�E�"�I�I�{��.��
�	&���{�E�"�I�I�{��	&�sr�03E�
F�, G�
G�	F�&F�'
F	�2F	�	F�	G�G�
F>�'F>�>G�	G8�G8�
G3�G3�3G8c���QoUQ99*U*
tt$UQ*o[OOUOUQ*2oVQQ$U%cUQ99*U*
tt$P!P!)�crrr)rqr�r�rR)r4�ns�	alter_sys�char_to_add�spec�new_specs&&&   r=�_fix_ns_for_legacy_pyc�(RunModuleTestCase._fix_ns_for_legacy_pyc0s]����
�:��+�%���*�~���>�>�9�9�$�)�)�:<�Z�.�J��!�:����{�O�{�*�O�r@c
�``
�UO[UUUQ5vqVn
o[R
2[O	2oUOQR
QUQR
O
Q2]*QU-2R%cUOQUQP	QP	-2UU
1Q	ko	[]6�c
[Q
R
2UOV�2[O2[R
2[O%f[UP	Q5[!R
2["O$U2[O2[]6�c
[QR
2UO'UR2UOV�2L["O$U2UO)U2[]6�c[Q
2P!P!SO)S2h9h)�r�r�rrrr�rrrr c�":�[RURQ5!��r��r)rer�rns&��r=rf�2RunModuleTestCase._check_module.<locals>.create_nsO�����h��	�J�Jr@�Running from source:��
allow_compile�Running from compiled:�Module executed successfully)r�rdr	rhr(ri�
rpartitionrr�rOrq�invalidate_caches�
__import__r�dont_write_bytecoder
rr�r�r�r�)r4r�r�r�r�r�rtror6rfrns&&f$$     @r=�
_check_module�RunModuleTestCase._check_module;s~����~�~�n�e�(1�0A��C�	/��H�h�	�x��'�,�,�.��������	��8�.�.�s�3�A�6���	
�	������Y�)�4�'�� �
�
	K�	#���{�E�"8�(�C��%�%�i�=��'�'�)��x� ��*�*�*��	��>��x� ��	�	�)�$��+�+�-��Q�;��&>�� I��+�+�K��C��)�)�)�A��	�	�)�$��M�M�'�"��Q�;��<�=�;��
�M�M�'�"�s!�
F3�!AF3�4A
F3�AF3�3Gc
�``�UO[UQUUQ5vqVqxUOQ2]*n[U2[O2o	U	O
QUQUQRQU-2R%cU	O
QUQP	Q	P	-2UU1Q
ko
[]6�c
[QR2UOV�2[O2[U2[O%f[UP	Q5[!U2["O$U2[]6�c
[Q
R2[O2UO'U	R2UOV�2L["O$U2UO)U2[]6�c[Q2P!P!SO)S2h9h)�__main__r�r�rrrrrrr c�":�[RURQ5!r�r�)rer�r�s&��r=rf�3RunModuleTestCase._check_package.<locals>.create_nsyr�r@r�r�r�zPackage executed successfully)r�rdr�r	rhr(rirr�rOrqr�r�rr�r
rr�r�r�r�)r4r�r�r�r�r�rtrnror6rfr�s&&f$$      @r=�_check_package� RunModuleTestCase._check_packageds�����~�~�n�e�Z�(1�0A��C�	/��H��&�&�s�+�A�.���x��'�,�,�.��������	��8���	
�	������Y�)�4�'�� �
�
	K�	#���{�E�"8�(�C��%�%�i�=��'�'�)��x� ��*�*�*��	��>��x� ��	�	�)�$��Q�;��&>�� I��+�+�-��+�+�K��C��)�)�)�A��	�	�)�$��M�M�'�"��Q�;��=�>�;��
�M�M�'�"�s �
F5�#AF5�68F5�/AF5�5Gc���U]6:c[Q2gQoSo[U2FD$oSo[OO	VT2oJ&	[OO	UQ2o[U2[]6�c
[QU2[OO	WQ2o	UOU	2[]6�c
[QU	2[OO	U	Q2o
UOU
2[]6�c
[QU
2[OO	U
Q	2o[U2[]6�c[Q
U2P!P!)�z$Relative module test needs depth > 1r�z
sibling.pyz  Added sibling module:�unclez  Added uncle package:�cousinz  Added cousin package:z	nephew.pyz  Added nephew module:)	�
ValueError�ranger�r�r�rrr�r�)r4�base_dirr�r�r��
module_dir�i�
parent_dir�
sibling_fname�	uncle_dir�
cousin_dir�nephew_fnames&&&&        r=�_add_relative_modules�'RunModuleTestCase._add_relative_modules�s���A�:��C�D�D�"���
��u��A�#�J������j�;�J�������Z��>�
��-�(��Q�;��7��G��G�G�L�L��W�5�	����)�$��Q�;��6�	�B��W�W�\�\�)�X�6�
����*�%��Q�;��7��D��w�w�|�|�J��<���,�'��Q�;��6��E�;r@c�0�QoUOV12vqEqgUeSoLSoUOVCU2UOQ2]*o	[]6�c
[	QU2[VbQ5o
UO
U
Q*U2UO
U
Q*U	2UOQU
2UOQU
2=
[O2[U2[OU2[O%f�[OO %c�[#U2[%U2[]6�c
[	QU2[O2[VbQ5oUO
UQ*U2UO
UQ*U	2UOQU2UOQU2=UO'U2[]6�c[	Q	2P!P!SO'S2h9h)
za\
from __future__ import absolute_import
from . import sibling
from ..uncle.cousin import nephew
r�r��rKrr�sibling�nephewr�r�)r�r�r�rr�rr/�assertInrqr�r�r�r�rr��implementation�	cache_tagr
rr�)r4r�rK�contentsr�rtrnror�r��d1�d2s&&&         r=�_check_relative_imports�)RunModuleTestCase._check_relative_imports�s������~�~�h�.�	/��H���$�M�$�M�	#��&�&�w�%�@��*�*�3�/��2�H���{�E�"8�(�C��H�8�B����R�
�^�]�;����R�
�.��9��M�M�)�R�(��M�M�(�B�'���'�'�)��x� ��I�I�i� ��*�*�*�s�/A�/A�/K�/K�/K��	�*��x� ��Q�;��&>�� I��+�+�-���<��� � ��J���?�� � ��M�!2�H�=��
�
�i��,��
�
�h��+���M�M�'�"��Q�;��<�=�;��
�M�M�'�"�s%�4H�B:H�H�2 H�BH�Hc�~�[]2FD+o[]6�c
[QU2UOU2J-	P!)��Testing package depth:�r�rr�r��r4r�s& r=�test_run_module�!RunModuleTestCase.test_run_module�s/���1�X�E���{�E�":�E�B����u�%�r@c��[]]2FD.o[]6�c
[QU2UOUP	P	Q5J0	P!�r�r	r�r
rs& r=�$test_run_module_in_namespace_package�6RunModuleTestCase.test_run_module_in_namespace_package�s8���1�a�[�E���{�E�":�E�B����u����M�!r@c��[]]2FD+o[]6�c
[QU2UOU2J-	P!)r�r	�r�rr�r�rs& r=�test_run_package�"RunModuleTestCase.test_run_package�s1���1�a�[�E���{�E�":�E�B�����&�!r@c��UOP]Q2oUvq#qCUOQP2oUOUOU2[O
O
UQQ2o[[[[1oSFD�oUOoUOU29^tt^2QOU2o	[UQQQ59^tt^2o
U
OU	2PPP2[!U2UO#Q	OU22[!UQ*2UO#Q	OU22PPP2J�	P!)%fhK}9hSc&oSO%Q
[S22Po=K{Po=hh9hSc&oSO%Q
[S22Po=KwPo=hh9h)%fhCJZ9h)�r��	.__main__r�r�z raise {0}('{0} in __init__.py.')�wt�ascii��encodingzNothing raised; expected {}zfinding specz
.submodule)r��replace�
addCleanupr�r�r�r�r}�AttributeError�	TypeErrorr�rr��formatr�r�rr|�assertNotIn)r4rr��_rn�init�
exceptions�	exceptionrRr�r��errs&           r=� test_run_package_init_exceptions�2RunModuleTestCase.test_run_package_init_exceptions�s�������A�z�2��"(���H��#�#�K��4������
�
�w�/��w�w�|�|�G�_�m�D��!�>�9�j�I�
�#�I��%�%�D����d�#�#�;�B�B�4�H���$��w�7�7�8��N�N�6�*�8�J��x�(��I�I�;�B�B�4�H�I�J��x�,�6�7��I�I�;�B�B�4�H�I�$�#�$�8�7��!�B��$�$�^�V�C�[�A�A��B��!�B��$�$�^�V�C�[�A�A��B��$�#�#�s��*(G
	�E
�$G
	�-E,�8 G
	�F�+ G
	�E)�"E)�$G
	�,F�2F�3F�G
	�F�G
	�G�!G�"G�=G
	�G�G
	�
G
�G
c�"�UOP]2vqq2[U2UO[Q29^tt^2[	U2PPP2UOU2P!)%fhK#9hSOS2h9h)r�found in sys\.modules)r�r��assertWarnsRegex�RuntimeWarningrr�)r4r�r#rns&   r=�test_submodule_imported_warning�1RunModuleTestCase.test_submodule_imported_warning�sq��"&�.�.��Q�"7���H�	#��x� ��&�&�~�,�.�.��8�$�.�
�M�M�'�"�	.�.��
�M�M�'�"�s)�)A;�A(�
A;�(A8	�1A8	�3A;�;Bc�F�UOP]Q2vqq2UOUOU2UOQP2o[	U2UOU[O2[O29^tt^2[OQ[2[U2PPP2[	U2UO[Q29^tt^2[U2PPP2P!)%fhKO9h)%fhP!9h)rr�r�errorr+)r�rr�rr�r�rrE�warnings�catch_warnings�simplefilterr-rr,)r4r�r#rn�packages&    r=� test_package_imported_no_warning�2RunModuleTestCase.test_package_imported_no_warnings���"&�.�.��Q�
�"C���H�����
�
�w�/��"�"�;��3���7���
�
�g�s�{�{�+�
�
$�
$�
&�
&��!�!�'�>�:��w��'�	�8��
�
"�
"�>�3K�
L�
L��w��M�
L�'�
&��
M�
L�
L�s$�'C<�&D�<D	�D	�D 	�D 	c��[]]2FD-o[]6�c
[QU2UOUP	Q5J/	P!)r�r	)r�rrs& r=�%test_run_package_in_namespace_package�7RunModuleTestCase.test_run_package_in_namespace_packages6���1�a�[�E���{�E�":�E�B�������>�!r@c��[]]2FD-o[]6�c
[QU2UOUP	Q5J/	P!)r�r	)r�rrs& r=�test_run_namespace_package�,RunModuleTestCase.test_run_namespace_package�6���1�a�[�E���{�E�":�E�B�������6�!r@c��[]]2FD.o[]6�c
[QU2UOUP	P	Q5J0	P!rrrs& r=�/test_run_namespace_package_in_namespace_package�ARunModuleTestCase.test_run_namespace_package_in_namespace_packages8���1�a�[�E���{�E�":�E�B��������N�!r@c��[]2FD-o[]6�c
[QU2UOUP	Q5J/	P!)rr	r�r
rs& r=�test_run_module_alter_sys�+RunModuleTestCase.test_run_module_alter_sys s4���1�X�E���{�E�":�E�B����u���5�r@c��[]]2FD-o[]6�c
[QU2UOUP	Q5J/	P!)r�r	r�rrs& r=�test_run_package_alter_sys�,RunModuleTestCase.test_run_package_alter_sys%r>r@c��[]]2FD+o[]6�c
[QU2UOU2J-	P!)�z"Testing relative imports at depth:�r�rr�rrs& r=�test_explicit_relative_import�/RunModuleTestCase.test_explicit_relative_import*s1���1�a�[�E���{�E�"F��N��(�(��/�!r@c��[]]2FD,o[]6�c
[QU2UOUQ2J.	P!)rIz'Testing main relative imports at depth:r�rJrs& r=�test_main_relative_import�+RunModuleTestCase.test_main_relative_import/s3���1�a�[�E���{�E�"K�U�S��(�(��
�;�!r@c
�d``�]oQnUO[U2vq#no[R2[O	2oUOQRQUQRO
Q2]*QU-2UU1QkoUOVe2UOU2P!SOS2h9h)r�z*And now for something completely differentrrrr�rc� :�[RUR2!rcr�)rernrKs&��r=rf�2RunModuleTestCase.test_run_name.<locals>.create_nsAs����h��h�?�?r@)	r�rdr	rhr(rir�rOr�)	r4r�r�rtror6rfrnrKs	&      @@r=�
test_run_name�RunModuleTestCase.test_run_name4s������?���~�~�n�e�4�	/��H�h��x��'�,�,�.��������	��8�.�.�s�3�A�6���	
�	�	@�	#��%�%�i�=��M�M�'�"��D�M�M�'�"�s�8B�B/c��]PHo]oQoQQ,oQUQ*,o[2o[2o[]U2FDoQOU,U*2o	UO	U	2SFD"o
UO	U	Q*U
*2J$	SFD"o
UO	U	Q*U
*2J$	J�	QOU,U*2o	UO	U	2UO	U	Q*2UOPU2vq�q�UO
UOU2[]U]*2FDoUOUPU2J	UOU,2FD�oUOV�O2UOUO[OO2UO %cUO#UO$2J�UO#UO$2J�	UO'[)U2]U2UO'[)U2]U2P!)rr�r�zuncle.cousinzuncle.cousin.nephewz.siblingr�z.runpy_test)�pkgutilr3r�r��addr�rr�r��
walk_packages�assertIsInstance�
ModuleInfo�
module_finderrqrr�
FileFinder�ispkgr�rRr/�len)r4rV�	max_depth�	base_name�package_suffixes�module_suffixes�expected_packages�expected_modulesr�r�rRr�rtrnro�
moduleinfos&               r=�test_pkgutil_walk_packages�,RunModuleTestCase.test_pkgutil_walk_packagesHs���	��	�#�	�#�^�4��0�)�j�2H�I���E���5���1�i�(�E��x�x���e� 3�4�H��!�!�(�+�(��!�%�%�h��n�t�&;�<�)�'�� �$�$�X��^�d�%:�;�(�)��8�8�Y�K�)�3�4�����h�'����X�
�5�6��~�~�b�)�,�	/��H�����
�
�w�/��1�i��k�*�E��&�&�w��E�:�+�!�/�/��	�:�J��!�!�*�.@�.@�A��!�!�*�":�":�"+�"5�"5�"@�"@�
B�����!�(�(����9� �'�'�
���8�;�	
����.�/��4E�F�����-�.��3C�Dr@rQ)F)�
runpy_testrc)"rrXrYrZrr~r�r�r�r�r�r�r�r�r�r�rrrrr(r.r6r9r<r@rCrFrKrNrSrfr[r\r]s@r=rzrz�s�����)�?�
4�H�&C��6�"'�6�;@�6�:&�2+�'>�&+�'>�?D�'>�R(?�',�(?�@E�(?�TF�.&>�P&�
N�
'�
J�8#�
 �?�
7�
O�
6�
7�
0�
<�
#�("E�"Er@rzc�`�\sQsQsnQsQQksQQksQsQsQs	Qs
\O\
OOPIQ	2Q
2sQsQsQ
sQsQsQsQs\\Q2Q22sQsQsQsQsUsP!)�RunPathTestCase�lzUnit tests for runpy.run_pathc�0�Ue[o[VV42!rc)rdr)r4�
script_dir�script_basenamer��omit_suffixs&&&&&r=�_make_test_script�!RunPathTestCase._make_test_scriptos���>�#�F��:�!�0�	0r@c�2``
�U1Qko[O2o	UeSo
LSo
U%c=[OO	U
U2oUO
oU%fPUmLP9q�U	OQUQUQPQUQUQP	QP	-2UOV�2Qn
U
U1Q	koU%c8Ue4[OO	R
U2oU%fPUmV�Q$R
U	Q$R
OQ
2]*U	Q$UOV�2P!)c�:�[RU2!rc�r)re�script_names&�r=rf�0RunPathTestCase._check_script.<locals>.create_nszs����K��6�6r@rrrrrrr zprove.issue15230.is.fixedc� :�[RUR2!rcrt)rerKrus&��r=rfrv�s����K��x�@�@r@r�)
rhr(rqr�r�rUr.rirOr�)r4rur��
expected_file�expected_argv0rn�expect_spec�check_loaderrfr6�	spec_namero�
mod_cachedrKs&f&&&&&&     @r=�
_check_script�RunPathTestCase._check_scriptvs���	7�'�,�,�.����%�I� �I�� �~�~�=�=�i�>K�M�H�!���J��"&����$(�(�H�����
��
��2�����%�t�#�T�
�	�	
�!�!�)�9�.��	A��8�+� �~�~�=�=�h�>K�M�H��"&���&.�
�#�"*��J��%-�%8�%8��%=�a�%@��M�"��!�!�)�9r@c�l�[OU2oUO[U[U2P!rc)�re�escape�assertRaisesRegexr}r)r4ru�msgs&&&r=�_check_import_error�#RunPathTestCase._check_import_error�s#���i�i��n�����{�C��;�Gr@c
��[29^tt^2oQoUOV2oUOUQUUP
Q5PPP2P!)%fhP!9h��script�
<run_path>�rz�r
rpr~�r4rmrnrus&   r=�test_basic_script�!RunPathTestCase.test_basic_script�sJ��
�Z�Z�:��H��0�0��F�K����{�L�+�*��
�
?��Z�Z�Z�s�*A�A	�A	c
���[29^tt^2oQoUOV2oUO[U2QUUP
Q5PPP2P!)%fhP!9hr�)r
rpr~rr�s&   r=�&test_basic_script_with_pathlike_object�6RunPathTestCase.test_basic_script_with_pathlike_object�sQ��
�Z�Z�:��H��0�0��F�K����x��4�l�*�*�+0�
�
2��Z�Z�Z�s�3A�A"	�A"	c
��[29^tt^2oQoUOVP	Q5oUOUQUUP
Q5PPP2P!)%fhP!9h)r�)ror�r�r�r�s&   r=�test_basic_script_no_suffix�+RunPathTestCase.test_basic_script_no_suffix�sU��
�Z�Z�:��H��0�0��=A�1�C�K����{�L�+�*��
�
?�	�Z�Z�Z�s�,A
�
A	�A	z%requires sys.implementation.cache_tagc
��[29^tt^2oQoUOV2o[OUP	Q5o[O
U2UO
UQUUP
Q5PPP2P!)%fhP!9h)r���doraiser�r�)r
rp�
py_compile�compiler�r�r~)r4rmrnru�
compiled_names&    r=�test_script_compiled�$RunPathTestCase.test_script_compiled�sk���Z�Z�:��H��0�0��F�K�&�.�.�{�D�I�M��I�I�k�"����}�l�M�,�%�
�
A��Z�Z�Z�s�AA6�6B	�?B	c
��[29^tt^2oQoUOV2oUOUQUVQ5PPP2P!)%fhP!9h)r�r�r�r�r�s&   r=�test_directory�RunPathTestCase.test_directory�sH��
�Z�Z�:�!�H��0�0��F�K����z�<��)�
�
>��Z�Z�Z�s�)A�A	�A	c
��[29^tt^2oQoUOV2o[UP	Q5o[OU2UOUQUVQ5PPP2P!)%fhP!9h)r�r�r�r�)r
rpr
r�r�r~)r4rmrnru�
legacy_pycs&    r=�test_directory_compiled�'RunPathTestCase.test_directory_compiled�s`��
�Z�Z�:�!�H��0�0��F�K�(��D�I�J��I�I�k�"����z�<��)�
�
>��Z�Z�Z�s�AA*�*A;	�3A;	c��[29^tt^2oQoUOV2oQU*oUOV2PPP2P!)%fhP!9h)�not_main�"can't find '__main__' module in %r)r
rpr�)r4rmrnrur�s&    r=�test_directory_error�$RunPathTestCase.test_directory_error�sD��
�Z�Z�:�!�H��0�0��F�K�6��C�C��$�$�Z�5�	�Z�Z�Z�s�.A�A	�A	c�,�[29^tt^2oUOUQ2[U2UOQ2PPP2P![c'oSOSOQ2Po=K6Po=hh9h)%fhP!9h)r�z6Expected ImportError for directory without __main__.pyr�)r
rprr|r}r/rR)r4rmr�s&  r=�(test_directory_error_sets_name_attribute�8RunPathTestCase.test_directory_error_sets_name_attribute�su��
�Z�Z�:��"�"�:�z�:�
)���$��	�	�(�)��Z���
7�� � ����:�6�6��
7��	�Z�Z�s?�B�A�B�	A?�A?�A:�5B�:A?�?B�B	�B	c���[29^tt^2oQoUOV2o[UQU2vqEUOUQVTUP
Q5PPP2P!)%fhP!9h)r��test_zipr��rnr{)r
rprr~)r4rmrnru�zip_name�fnames&     r=�test_zipfile�RunPathTestCase.test_zipfile�s[��
�Z�Z�:�!�H��0�0��F�K�-�j�*�k�R�O�H����x��u�(0�u�
�
F�	�Z�Z�Z�s�9A�A(	� A(	c��[29^tt^2oQoUOV2oUQ*o[OV4P	Q5[	UQU2vqVUOUQVeUP
Q5PPP2P!)%fhP!9h)r�r�r�r�r�r�)r
rpr�r�rr~)r4rmrnrur�r�r�s&      r=�test_zipfile_compiled�%RunPathTestCase.test_zipfile_compiled�sx��
�Z�Z�:�!�H��0�0��F�K�'�#�-�M����{�4�H�-�j�*�.;�=�O�H����x��u�(0�u�
�
F��Z�Z�Z�s�AA8�8B		�B		c���[29^tt^2oQoUOV2o[UQU2vqEQU*oUOVF2PPP2P!)%fhP!9h)r�r�r�)r
rprr�)r4rmrnrur�r�r�s&      r=�test_zipfile_error�"RunPathTestCase.test_zipfile_error�sT��
�Z�Z�:�!�H��0�0��F�K�-�j�*�k�R�O�H�6��A�C��$�$�X�3��Z�Z�Z�s�=A�A,	�$A,	�cpuc��[29^tt^2o[29^tt^2oQoQU*oUOVU2o[UQU2vqg[]29^tt^2UO	[
[U2PPP2PPP2PPP2P!)%fhK"9h)%fhK-9h)%fhP!9h)r�z import runpy
runpy.run_path(%r)
r�)r
rprr�assertRaises�RecursionErrorr)r4rm�	dummy_dirrnr�rur�r�s&       r=�test_main_recursion_error�)RunPathTestCase.test_main_recursion_errors����Z�Z�:�x�z�z�Y�!�H�-�09�:�F��0�0��v�N�K�-�j�*�k�R�O�H�#�B�'�'��!�!�.�(�H�E�(�
(2�Z�Z�(�'��
(2�z��Z�Z�Z�sM�C�AB0	�'B
�B0	�C�B-�&B-�(B0	�0C
�9C
�;C�C	�C	c	�t�[29^tt^2o[OOUQ2o[	UQQQ59^tt^2oUOQ2PPP2[
U2oUOUQ*Q2PPP2P!)%fhK>9h)%fhP!9h)z	script.pyr��latin1ru%
#coding:latin1
s = "non-ASCII: hé"
�sunon-ASCII: hé)r
r�r�r�r�r�rr/)r4rm�filename�frs&    r=�
test_encoding�RunPathTestCase.test_encodings��
�Z�Z�:��w�w�|�|�J��<�H��h��h�7�7�1������8�
�h�'�F����V�C�[�*<�=��Z�7�7���Z�Z�s/�7B&�B	�,B&�B#
�B#
�B&�&B7	�/B7	c���Qo[29^tt^2o[U29^tt^2[OP	Q59^tt^2o[OQ2[O
QUQ5[O
QQQ5[
Q2oPPP2PPP2PPP2UO[QW22,Q	N2WQ*oSFD?oUOUOU2UOUO[2JA	P!)%fhK�9h)%fhK�9h)%fhK�9h)
z*test\.test_import\.data\.syntax_warnings\z��recordr1�always��module�syntax_warningsz%test.test_import.data.syntax_warningsc3�D�SF �DpOw�	J	P!3hrc��lineno��.0�wms& r=�	<genexpr>�SRunPathTestCase.test_run_module_filter_syntax_warnings_by_module.<locals>.<genexpr>&���D���D�b�	�	�D��� r�r��
�
��)
r
rr2r3r4�filterwarningsrr/�sortedr�rG�category�
SyntaxWarning)r4�	module_re�tmpdir�wlogr�r�r�s&      r=�0test_run_module_filter_syntax_warnings_by_module�@RunPathTestCase.test_run_module_filter_syntax_warnings_by_modules���A�	��j�j�F�&�v�.�.��%�%�T�2�2�d��!�!�'�*��#�#�H�Y�?��#�#�G�4E�F��C�D�B�	3�/��	
����9�D�9�9�;Q�R��j�>���B����R�[�[�(�3��M�M�"�+�+�}�5��3�2��/�.���j�sM�E� D;	�
AD(
�D;	�$E�(D8�1D8�3D;	�;E
�E
�E�E	�E	c�r�[OQ2o[OP	Q59^tt^2o[OQ2[O
QQQ5[O
QQQ5[O
QQQ5[O
QQQ5[
U2PPP2UO[Q	W22,QN2SFD?oUOUOU2UOUO[2JA	[OP	Q59^tt^2o[OQ2[O
QQ
Q5[O
QQQ5[O
QQQ5[O
QQQ5[O
QQQ5[
UQQ
5PPP2UO[QU22,QN2P!)%fhCKb9h)%fhKI9h)z#test_import/data/syntax_warnings.pyr�r1r�z<run_path>\zr��testr�z(test\.test_import\.data\.syntax_warningsc3�D�SF �DpOw�	J	P!3hrcr�r�s& r=r��QRunPathTestCase.test_run_path_filter_syntax_warnings_by_module.<locals>.<genexpr>6r�r�zpackage\.script\zr�zpackage.scriptr�c3�D�SF �DpOw�	J	P!3hrcr�r�s& r=r�r�Dr�r�r�)
r�findfiler2r3r4r�rr/r�r�rGr�r�)r4r�r�r�s&   r=�.test_run_path_filter_syntax_warnings_by_module�>RunPathTestCase.test_run_path_filter_syntax_warnings_by_module,s����#�#�$I�J��
�
$�
$�D�
1�
1�T��!�!�'�*��#�#�H�_�E��#�#�G�F�;��#�#�G�4E�F��#�#�G�F�
H��X��2�	
����9�D�9�9�;Q�R��B����R�[�[�(�3��M�M�"�+�+�}�5���
$�
$�D�
1�
1�T��!�!�'�*��#�#�H�5I�J��#�#�G�L�A��#�#�G�F�;��#�#�G�4E�F��#�#�G�F�
H��X�(8�9�2�	
����9�D�9�9�;Q�R�-2�
1�
1��2�
1�s%�BH�	BH&�H#	�H#	�&H6	�/H6	rQ)NF)NTT) rrXrYrZrrpr~r�r�r�r��unittest�skipIfrrrr�r�r�r�r�r�r�r�rrr�r�r�r�r[r\r]s@r=rjrjls�����'�0�*:�XH�?�2�?��_�_�S�'�'�1�1�T�9�<�>�A�>�A�>�>�6�	)�F�	F�4���u��F���F�	>�
6�S�Sr@rjc��``�\sQsQsnQs\OQ6Xc\L\O's	\
\OQ22s
U1Qks\2Q2sQsQsQ	sQ
sQsQsQ
sQsUsU9s!)�TestExit�Gl:�win32c/� �[29^tt^2o[OU2w�PPP2P!)%fhP!9h3hrc)r
�pathlib�Path)�args�kwargs�tmp_fns*, r=�tmp_path�TestExit.tmp_pathOs*����Z�Z�6��,�,�v�&�&��Z�Z�Z�s�A�:�
A�A	�A	�	Ac�:�UO29^tt^2oUQ*9UmoUO[OQ22[
RU_U-U@PPP2P!)%fhP!9h)zham.pyz@                    raise KeyboardInterrupt
                    )r��ham�
write_text�textwrap�dedent�super�run)r4r�r��tmpr��	__class__s&*,  �r=r�TestExit.runVs\���
�]�]�_�_�� �8�^�+�D�H�s��N�N������
�
�G�K��(��(��_�_�_�s�AA,�,A=	�5A=	c��[OQ,UNo[OU,UN3-U@QP	Q[O-@oUOUOQ2UOUOUO2P!)z-E�text�stderrz
KeyboardInterrupt
)
r�
executable�
subprocessr�PIPE�assertEndsWithr
r/�
returncode�
EXPECTED_CODE)r4�cmdr�r��procs&&*, r=�assertSigInt�TestExit.assertSigIntbsl���~�~�t�*�c�*���~�~�c�V�D�V�F�V��V�j�o�o�V�����D�K�K�)@�A�������$�*<�*<�=r@c�@�UOUO,2P!rc)rr�r�s&r=�test_pymain_run_file�TestExit.test_pymain_run_filejs�����4�8�8�*�%r@c��UOOoUQ*oUO[OQ22UOU,UQ5P!)z
run_module.pyzU                import runpy
                runpy.run_module("ham")
                ��cwd�r�rSrrrr)r4rrs&  r=�%test_pymain_run_file_runpy_run_module�.TestExit.test_pymain_run_file_runpy_run_modulemsO���h�h�o�o���?�*�
�����O�O��
�	
�	
���:�,�C��0r@c��UOOoUQ*oUO[OQ22UOU,UQ5P!)zrun_module_as_main.pyz^                import runpy
                runpy._run_module_as_main("ham")
                rr)r4r�run_module_as_mains&  r=�-test_pymain_run_file_runpy_run_module_as_main�6TestExit.test_pymain_run_file_runpy_run_module_as_mainzsS���h�h�o�o�� �#:�:���%�%��O�O��
�	
�	
���-�.�C��8r@c�Z�UOQQ,UOOQ5P!)�-cz%import runpy; runpy.run_module('ham')r�rr�rSr�s&r=�"test_pymain_run_command_run_module�+TestExit.test_pymain_run_command_run_module�s)�����
�:�;������	�	
r@c�Z�UOQQ,UOOQ5P!)r#�
import hamrr$r�s&r=�test_pymain_run_command� TestExit.test_pymain_run_command�s"�����4��.�D�H�H�O�O��Dr@c�X�UO,QUOOQ5P!)r()�inputrr$r�s&r=�test_pymain_run_stdin�TestExit.test_pymain_run_stdin�s�����"�L�d�h�h�o�o��Fr@c�r�UOoUOQUO,UOQ5P!)z-mr)r�r�stemrS)r4r�s& r=�test_pymain_run_module�TestExit.test_pymain_run_module�s+���h�h�����4����*��
�
��;r@)r�)rrXrYrZ�STATUS_CONTROL_C_EXITr�platform�signal�SIGINTr�staticmethod�
contextlib�contextmanagerr�rrrrrr r%r)r-r1r[r\�
__classcell__)rr^s@@r=r�r�Gs�����&���<�<�7�"�	��m�m�^��
����'���'�

)���>��>�&�1�9�
�E�G�<�<r@r�r�)9r8�importlib.machineryrq�importlib.util�os.pathr�r�r�r�r5rrr�rr�r2�test.supportrrrrrrr�r�test.support.import_helperr	r
r�test.support.os_helperrr
r�test.support.script_helperrr�test.test_importlib.utilrrrrrrrd�implicit_namespacerD�dictrhrir%�TestCaser`rzrjr�r�mainrQr@r=�<module>rGst���*����	�
��
��������F�F�H�H�C�=�
�C�C���&�����4�
�t�����
�3��U��%�'>�?�����!���u��U��d�%���T�;�	�����+�,�LF�LF�^$:�X�.�.�0B�$:�NhE��)�)�+=�hE�T
XS�h�'�'�);�XS�v �M<�x� � �M<� �M<�`�z���M�M�O�r@

Youez - 2016 - github.com/yon3zu
LinuXploit