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_cmd_line.cpython-315.pyc
R
>lqj��c�F�]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]QH$G
s
]QH,Gs]QH,G
s
]QH,Gs]QH<GsGsGsGsGs]QHGs\
O,%f\O.Q2gQsQ	sQ
Q2s\2s\2\m\\O8mQQ
\O<2s\O@\2Q2QQ\O<22s!QQ\O<2s"Qs#\$Q6Xc\OJ2P!P!)�)�support)�	os_helper)�force_not_colorized)�threading_helper)�spawn_python�kill_python�assert_python_ok�assert_python_failure� interpreter_requires_environment��dedentztest module requires subprocessc�@�[U2oUO2oV1!�N)r�wait)�p�data�
returncodes&  �'C:\Python315\\Lib\test\test_cmd_line.py�_kill_python_and_exit_coders���q�>�D�����J����c��[Q2P!)zpresite func)�print�rr�presite_funcr$s
��	�.�rc��\sQs]'sQsP!)�	Namespacer)�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__rrrrr's��rrc�z`�\sQs]/snQsQs\O\OQ22s	\O\OQ22s
\O\OQ22s\O\OQ22s\O\OQ22s\O\OQ22sQ	sQ
s\OQ2sQs\O*\2Q
2Q2sQs\OQ2s\OQ2sQsQs\OQ2sQsQs\O@\!ODQ2Q2s#\O@\!ODQ2Q2s$\O*\%OLQ6HQ2Q2s'\O*\%OLQ6HQ2Q2s(\O@\%OLQ6H9%f
\ORQ2Q 2s*\O*\+OXO[Q!Q"2Q"6gQ#2Q$2s.Q%s/Q&s0Q's1\O*\%OdOfQ(2Q)2s4Q*s5Q+s6Q,s7Q-s8Q.s9Q/s:\Q02s;Q1s<\O*\+OzQ26gQ32\O*\%OLQ46HQ52Q622s>Q7s?Q8s@Q9sAQ:sBQ;sCQ<sD\OQ=2sE\O*\2Q>2Q?2sFQ@sGQAsHQBP	QCP	-QDksI\OQE2sJQqQFksKQGsLQHsM\OQI2sNQJsOQKsPQLsQ\O@\RO�QM2QN2QO2sT\O@\RO�QM2QN2QP2sU\O@\%OLQ6HQQ2QR2sV\O@\O�QS2QT2sX\O@\O�QS2QU2sY\O*QV\RO�2O[QWQp27QX2QY2s[QZs\Q[s]\O@\RO�Q\2Q]2Q^2s^\O@\%OLQ6HQ_2Q`2s_\O\OQa22s`QbsaQcsbQdscQesdQfseQgsfQhsg\O@\O�Qi2\iO�2Qj22sk\O@\O�Qi2\iO�2Qk22sl\O@\O�Qi2Ql2sm\O@\O�Qm2Qn2soQospQpsqUsrP!)r�CmdLineTestc�4�[Q2[Q2P!)�.z< .)r	��selfs&r�test_directories�CmdLineTest.test_directories0s���c�"��e�$rc��[U2vq#oUQ6wcUOUQ2UOQU2UOQU2U!)r�
s	Traceback)r�assertEndsWith�assertNotIn)r&�cmd_line�rc�out�errs&&   r�verify_valid_flag�CmdLineTest.verify_valid_flag4sL��'��1�����#�:�����U�+�����s�+�����s�+��
rc�>�UOQ2UOQ2UOQ2oUO2oUOQU]*2UOQU2UOQU2UO	[U2]22P!)z-hz-?�--help�usage�
PYTHONHOME�-X dev)r1�
splitlines�assertInr,�
assertLess�len�r&r/�liness&  r�	test_help�CmdLineTest.test_help<s���	
���t�$����t�$��$�$�X�.����� ���
�
�h��a��)������,�����C�(�����E�
�B�'rc
��UOQ2oUOQU2QoUOQ2oSFDFo[OQU[O
2oUO
U[VRQ5Q2JH	P!)z
--help-envr6c�D�UOQQ2O2!)�_r)�replace�lower)�names&r�<lambda>�+CmdLineTest.test_help_env.<locals>.<lambda>Os�����T�3� 7� =� =� ?rsThese variables have equivalents^(PYTHON\w+))�keyz(env vars should be sorted alphabetically)r1r9�split�re�findall�	MULTILINE�assertEqual�sorted)r&r/�sort_key�sections�section�envvarss&     r�
test_help_env�CmdLineTest.test_help_envHsu���$�$�\�2���
�
�m�S�)�@���9�9�?�@���G��j�j�!1�7�B�L�L�I�G����W�f�W�&C�G�
I� rc���UOQ2oUOQU2[OQU[O2oUOU[
U2Q2P!)z--help-xoptionsr7s	^-X (\w+)z'options should be sorted alphabetically)r1r9rJrKrLrMrN)r&r/�optionss&  r�test_help_xoptions�CmdLineTest.test_help_xoptionsVsS���$�$�%6�7���
�
�i��%��*�*�]�C����>������&��/�B�	Drc��UOQ2oUO2oUOQU]*2UOQU2UOQU2QOUQ*2O	Q2P!)z
--help-allr5r6r7r:�NN�ascii)r1r8r9�join�decoder<s&  r�
test_help_all�CmdLineTest.test_help_all_sk���$�$�\�2����� ���
�
�h��a��)��
�
�m�S�)��
�
�i��%�	����r���"�"�7�+rc��[QQQ5vqoUOQU2UOQU2UOQU2UOQU2UOQU2UOQU2P!)	r4�1)�FORCE_COLOR�usage:s-hs
--help-allscmds
Arguments:�rr9�r&r.r/r0s&   r�test_help_colorized�CmdLineTest.test_help_colorizedlsh��(��c�B�����
�
�h��$��
�
�i��%��
�
�e�S�!��
�
�m�S�)��
�
�f�c�"��
�
�m�S�)rc�H�[Q2vqoUOQU2P!)r4rc�rr,res&   r�test_help_not_colorized�#CmdLineTest.test_help_not_colorizedys"��(��1��������3�'rc�L�UOQ2UOQ2P!)z-Oz-OO�r1r%s&r�
test_optimize�CmdLineTest.test_optimizes�����t�$����u�%rc�*�UOQ2P!)�-Srmr%s&r�test_site_flag�CmdLineTest.test_site_flag�s�����t�$rc���Q[OQ**OQ2oQFD3o[U2vq4oUO	VQ2UOVA2J5	P!)zPython %d.%d:N�Nr[)z-Vz	--versionz-VV)�sys�version_info�encoder�assertNotStartsWith�assertStartsWith)r&�version�switchr.r/r0s&     r�test_version�CmdLineTest.test_version�sV��!�C�$4�$4�R�$8�8�@�@��I��.�F�+�F�3�L�B�S��$�$�S�2��!�!�#�/�/rc��[Q2vqoUOQU2[Q2vqoUOQU2P!)z-vsstack overflowz-vvrires&   r�test_verbose�CmdLineTest.test_verbose�sB��(��-�������*�C�0�'��.�������*�C�0rz6Cannot run -E tests when PYTHON env vars are required.c�~�QoU2oUOU-2UQQ2oUOUQP	QQ-2P!)c��[OQ1U*oUQ*
o[OU2o[	UO2]*2oU!)�-E)�-c� import sys; print(sys._xoptions))rv�
executable�
subprocess�check_output�evalr8)�argsr/�optss*  r�get_xoptions�/CmdLineTest.test_xoptions.<locals>.get_xoptions�sM���N�N�D�)�D�0�D��>�>�D��)�)�$�/�C�����(��+�,�D��Krz-Xaz	-Xb=c,d=e�a�bzc,d=e)rM)r&r�r�s&  r�
test_xoptions�CmdLineTest.test_xoptions�sE��	��~������r�"��E�;�/�������T�3��8�9rc�l`�U1QkoQoUQU2vq4oROUO2Q2ROUQ2UQQQQU2vq4oROUO2Q2[O%cRO	UQ	2P!ROUQ2P!)
c�j:�[O,oUOU2[Oo[O
VUQ5oUO
2vqEUOO2UOO2UOoROU]2VdU1!)��stdout�stderr)rvr��extendr��PIPE�Popen�communicater��closer�rrM)r��cmdr�rr/r0r.r&s*      �r�
run_python�1CmdLineTest.test_showrefcount.<locals>.run_python�s�����>�>�"�C��J�J�t���?�?�D�� � ��$�?�A��}�}��H�C�
�H�H�N�N��
�H�H�N�N�����B����R��#��C�<�rr�r�s{}r�-I�-X�showrefcounts{'showrefcount': True}s^\[-?\d+ refs, \d+ blocks\])rM�rstripr�Py_DEBUG�assertRegex)r&r��coder.r/r0sf     r�test_showrefcount�CmdLineTest.test_showrefcount�s����
	 �2��!�$��-�����������u�-�����c�"�!�$��n�d�D�I�����������'@�A�����
���S�"A�B����S�#�&rc	��.QloSFDevq#QQU0QQ,oUOU29^tt^2[UoUOUOO	Q2U2PPP2Jg	P!)%fhJ|9h)�=onr��frozen_modulesr��,import os; print(os.__spec__.loader, end="")�utf-8>�z=off�SourceFileLoader���FrozenImporter��=r��r�r���subTestrr�r/r]�r&�tests�raw�expectedr��ress&     r�test_xoption_frozen_modules�'CmdLineTest.test_xoption_frozen_modules�s{��
��#�M�C��>�#��/��G�I�C����c�"�"�&��,��� � �������!8�(�C�#�"�#�#�"�"�s�6A4	�4B
�=B
c	�
�QQ.oSFDbvq#QQ,oUOU29^tt^2[UQU-oUOUOO	Q2U2PPP2Jd	P!)%fhJy9h)�onr�r��PYTHON_FROZEN_MODULESr�)r�r�)�offr�r�r�s&     r�test_env_var_frozen_modules�'CmdLineTest.test_env_var_frozen_modules�sw��
%�'�
��#�M�C��G�H�C����c�"�"�&��G�3�G��� � �������!8�(�C�#�"�#�"�"�"�s�8A1	�1B
�:B
c�l�[Q2[QQ2[QQQ2[QQQQ2P!)�-m�
fnord43520xyz�runpy�timeit�-nra�r	rr%s&r�test_run_module�CmdLineTest.test_run_module�s2��	�d�#��d�O�4�	�d�G�_�=���x��s�3rc�4�[QQQQQ2oUOOQ2UOOQ2[U2oUO	UOQ2P6g2UO	UOQ2P6g2P!)	�-ir�r�r�rasTimer
�exit()
s1 loops__main__.Timer)r�stdin�writer�
assertTrue�find)r&rrs&  r�test_run_module_bug1764407�&CmdLineTest.test_run_module_bug1764407�st��
��t�X�t�S�9��	���
�
�j�!�	���
�
�k�"��1�~������	�	�)�,��2�3�����	�	�"3�4��:�;rc��[Q2oUOQ[OQ5UO	UO
]2P!)r��)�timeout)rr�r�
SHORT_TIMEOUTrMr)r&�procs& r�"test_null_byte_in_interactive_mode�.CmdLineTest.test_null_byte_in_interactive_mode�s;���D�!������'�*?�*?��@�������!�,rc��[OO[2O	Q2o[
OU29^tt^2[QQQ2[QQQ2PPP2P!)%fhP!9h)�testr��unittestztest/test_longexp.pyz./test/test_longexp.py)�os�path�dirname�__file__�removesuffixr�
change_cwdr)r&�projectlibpaths& r�test_relativedir_bug46421�%CmdLineTest.test_relativedir_bug46421s[��������2�?�?��G��
�
!�
!�.�
1�
1��T�:�/E�F��T�:�/G�H�2�
1�
1�
1�s�A7�7B	�B	c�N�[Q2[QQ2[QQ2P!)r�zraise Exception�passr�r%s&r�
test_run_code�CmdLineTest.test_run_codes!��	�d�#��d�$5�6���v�&rzneed os_helper.FS_NONASCIIc��Q[O8Q[[O28Q0o[QU2P!)zassert(ord(z) == �)r�)r�FS_NONASCII�ordr)r&�commands& r�test_non_ascii�CmdLineTest.test_non_asciis,�� �+�+�S��1F�1F�-G�I����w�'rc���[OoQUQ0o[QU2oUOUOO2[
U2OQ22P!)z# coding: latin1
print(ascii('z'))r�r[)rr�rrMr/r�r[rx)r&�chr�r�s&   r�test_coding�CmdLineTest.test_codingsS���
"�
"��/��t�3�7���t�S�)����������)�5��9�+;�+;�G�+D�Er�win32z Windows has a native unicode APIc�
�Qo[OO2oQUQ$QUQ$QU*Q*o[O[
OQU,[O[OUQ5oUO2vqVUO]6XcQ	oL1UO]6XcQ
oL[QUO8QU802gUOU2%f[U8Q
U802gP!)���C�LC_ALL�0�PYTHONCOERCECLOCALEsimport locale; print(ascii("s"), locale.getencoding())r�)r�r��envs3Unable to decode the command from the command line:s'\xff' zUnknown exit code: z	, output=z doesn't start with )
r��environ�copyr�r�rvr�r��STDOUTr�r�AssertionError�
startswith)r&�undecodablerr�rr�r��patterns&       r�test_undecodable_code�!CmdLineTest.test_undecodable_code(s������j�j�o�o�����H�
�%(��!�"�
�*�
+�.)�
)�	
�
���
�^�^�T�4�(��?�?�:�+<�+<��
���������<�<�1��
M�G�
�\�\�Q�
�"�G�!�q�|�|�U[�!\�]�]�� � ��)�)� �v�w�!O�P�P�*rc�`
�Qn
U
1QkoU
1QkoU
1QkoU
1QkoQOQ2oQoVV,oU[O21UP1UP1U[O211FD�vq�UOUOQ59^tt^2U	d3[[[Q	22OU	Q
22Q	6Ho
LP	o
U
%fUOU	Q02SFD>oUU2oUOUOO2[!U22J@	PPP2J�	P![cP
o
K~h9h)%fhJ�9h)z;import sys, os; s=os.fsencode(sys.argv[1]); print(ascii(s))c�|:�[OQRU,o[OU[OP	Q5!)r��r��text�rvr�r��runr���argr�r�s& �r�run_default�6CmdLineTest.test_invalid_utf8_arg.<locals>.run_defaultVs,����>�>�4��s�3�C��>�>�#�j�o�o�D�I�Irc�:�[OQRU,o[[O2oQUQ$[
OU[
OP	UQ5!)r�r�r�)r�r
r)rvr��dictr�rr�rr�)rr�rr�s&  �r�run_c_locale�7CmdLineTest.test_invalid_utf8_arg.<locals>.run_c_localeZsJ����>�>�4��s�3�C��r�z�z�"�C��C��M��>�>�#�j�o�o�'+��6�
6rc�:�[OQQQRU,o[OU[OP	Q5!)r��utf8r�rrrs& �r�
run_utf8_mode�8CmdLineTest.test_invalid_utf8_arg.<locals>.run_utf8_modeas0����>�>�4���t�S�A�C��>�>�#�j�o�o�D�I�Irc�:�[OQQQRU,o[OU[OP	Q5!)r�zutf8=0r�rrrs& �r�run_no_utf8_mode�;CmdLineTest.test_invalid_utf8_arg.<locals>.run_no_utf8_modees0����>�>�4��4��s�C�C��>�>�#�j�o�o�D�I�Ir�e:é, euro:€, non-bmp:􏿿r�s��é�������)�run_cmd��surrogateescapez- cannot losslessly round-trip arbitrary bytes)rxrv�getfilesystemencoding�locale�getencodingr�rr;�bytes�ranger]�UnicodeError�skipTestrMr�r�r[)r&rrrr�
valid_utf8�invalid_utf8�	test_argsr �encoding�losslessrr�r�s&            @r�test_invalid_utf8_arg�!CmdLineTest.test_invalid_utf8_argKsd���M��	J�	6�	J�	J�?�E�E�g�N�
�
(�	� �.�	��#�3�3�5�6�
�4� �
�D�!�
�v�1�1�3�4�	"
��G����g�&6�&6��7�7��'�)�#&�u�U�3�Z�'8�'?�'?�$�&7�(9�$:�=@�$A��
 $�H���M�M�X�J�/?�#@�A�$�C�"�3�<�D��$�$�T�[�[�%7�%7�%9�5��:�F�%�8�7�
"
��(�)�#(��)��8�7�7�sC�E	�0D9�
E	�AE	�9	E	�E	�E	�E	�	E	�E
�E
�darwinz%test specific to Mac OS X and Androidc���QOQ2oQoUOQQ2o[U2OQ2Q*o[OO2oQUQ$[O[OQV!1[OUQ	5oUO2vqxUOVt2UOUO]2P!)
rr�z%import sys; print(ascii(sys.argv[1]))r"r[r*r�r�r�)r�r)rxr]r[r�rrr�r�rvr�r�r�rMr)	r&r
r��decodedr�rrr�r�s	&        r�test_osx_android_utf8�!CmdLineTest.test_osx_android_utf8�s���9�?�?��H��6���+�+�g�'8�9����>�(�(��1�E�9���j�j�o�o�����H�
����
�^�^�T�4�.��?�?��
������������*�������q�)r�PYTHONUNBUFFEREDr�z#Python stdio buffering is disabled.c��[OQ2o[OQU,o[O
U[O[OP	P	Q5oUOUOQ2P!)z�
            import sys
            out = sys.stdout
            print(out.isatty(), out.write_through, out.line_buffering)
            err = sys.stderr
            print(err.isatty(), err.write_through, err.line_buffering)
        r�)r�r�r
�checkz#False False False
False False True
)	�textwraprrvr�r�rr�rMr�)r&r�r�r�s&   r�%test_non_interactive_output_buffering�1CmdLineTest.test_non_interactive_output_buffering�sd����� �
������d�+���~�~�d�:�?�?�%/�_�_�4�t�M��������.�	/rc��Q	FDoQU*o[QQU2vq4oUQ6XcSLSoUOUQQU*2QU*o[QQU2vq4oUQ6XcSLSoUOUQQU*2J�	P!)
r�r�z6import os, sys; sys.%s.buffer.write(b'x'); os._exit(0)�-ur��xzbinary %s not unbufferedz.import os, sys; sys.%s.write('x'); os._exit(0)ztext %s not unbufferedr��rrM)r&�streamr�r.r/r0rs&      r�test_unbuffered_output�"CmdLineTest.test_unbuffered_output�s���*�F�L���D�+�D�$��=�L�B�S� �H�,�3�#�D����T�4�)C�f�)L�M�D���D�+�D�$��=�L�B�S� �H�,�3�#�D����T�4�)A�F�)J�K�+rc���Qo[QQU2oUOOQ2UOO2[	U2vq4UOU]2UO
UQ2P!)z/import sys; sys.stdout.write(sys.stdin.read(1))r=r�r>)rr�r��flushrrMrz)r&r�rrr.s&    r�test_unbuffered_input�!CmdLineTest.test_unbuffered_input�s^��A����t�T�*��	���
�
�d��	���
�
��-�a�0�������Q�����d�D�)rc��QoQoU[O*U*oQo[QQUUQ5vqVoUOUO	Q2U2UOUO	Q2U2P!)�ABCDE��if 1:
            import sys
            path = ":".join(sys.path)
            path = path.encode("ascii", "backslashreplace")
            sys.stdout.buffer.write(path)rqr���
PYTHONPATHr[��ABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDEABCDE��FGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJFGHIJ)r��pathseprr9rx)r&�path1�path2r�r�r.r/r0s&       r�test_large_PYTHONPATH�!CmdLineTest.test_large_PYTHONPATH�sm�������r�z�z�!�E�)��-��
(��d�D�37�9�����
�
�e�l�l�7�+�S�1��
�
�e�l�l�7�+�S�1rz'PYTHONSAFEPATH changes default sys.pathc�r�Qo[QUPQ5vq#o[QUP
Q5vqVoUOV62P!)rIr�rJ)�
__isolatedr?)r&r��rc1�out1�err1�rc2�out2�err2s&       r� test_empty_PYTHONPATH_issue16309�,CmdLineTest.test_empty_PYTHONPATH_issue16309�s?��-��
+�4��"�E���4�*�4��%�H���4�	
����$rc
�*�QFCD	o[OO2oVQ$[O[
OQ,[O[O[OUQ5oQoUOO[U2OQ2Q*2UOOQ2[U2o[U2OUQ2oUOVe2CJ	P!)	r[�PYTHONIOENCODINGr�)r�r�r�rua=é b=� c=𐀀 d=􏿿r*r��backslashreplace)r[zlatin-1r�)r�rrr�r�rvr�r�rr�r�r[rxr�reprr9)r&r-rrr
r�escapeds&      r�test_displayhook_unencodable�(CmdLineTest.test_displayhook_unencodable�s���5�H��*�*�/�/�#�C�&.�"�#�� � �����&� �o�o�!���!�(�(���A�?�D�
�G�G�M�M�%��+�,�,�W�5��=�>�
�G�G�M�M�+�&��q�>�D��4�j�'�'��2D�E�G��M�M�'�(�6rc	�X�[OQ29^tt^2o[OO	Q2oUOUO
Q22UO2UO]2[O[OQU1U[OQ59^tt^2oUO2vqgPPP2PPP2UOWO!2U2P!)%fhK:9h)%fhKE9h)zwb+�ASCIIr�)r�r�)sabcsdef)�tempfile�NamedTemporaryFiler��lineseprxr�r\rD�seekr�r�rvr�r�r�rMr�)r&r�r�r��sepr�r�r�s&&&     r�check_input�CmdLineTest.check_inputs���
�
(�
(��
/�
/�5��*�*�#�#�G�,�C��K�K����!1�2�3��K�K�M��J�J�q�M��!�!�����t�,��J�O�O�5�5�8<�!%�!1�!1�!3���5�0�	
�������(�3�	5�5��0�
/�s0�B!D�D	�D�D
�D
�D�D)	�"D)	c�,�UOQQ2P!)z-import sys; print(repr(sys.stdin.readline()))s'abc\n'�rkr%s&r�test_stdin_readline�CmdLineTest.test_stdin_readlines��	
���;��	rc�,�UOQQ2P!)zprint(repr(input()))s'abc'rnr%s&r�test_builtin_input�CmdLineTest.test_builtin_inputs�����"��	rc���Qo[QU2vq#o[OQ6Xc'UOQU2UOQU2P!UOQU2UOQU2P!)z�if 1:
            import sys
            print(1)
            print(2)
            print(3, file=sys.stderr)
            print(4, file=sys.stderr)r�r�s1
2
s3
4
s1
2
s3
4
)rrv�platformrM�r&r�r.r/r0s&    r�test_output_newline�CmdLineTest.test_output_newlinesg��)��(��d�3�����<�<�7�"����]�C�0����]�C�0����Y��,����Y��,rc��[QQ2vqoUOUOQQ2Q2UOQU2P!)r��'r[�ignore�SyntaxErrorr)r	r�r]rMres&   r�test_unmached_quote�CmdLineTest.test_unmached_quote-s?��-�T�3�7����������G�X�6�
�F�����c�"rc���Qo[QU2vq#oUOQU2UO]xU2UOQOQ[O
O
22U2P!)z�if 1:
            import os, sys, test.support
            test.support.SuppressCrashReport().__enter__()
            sys.stdout.write('x')
            os.close(sys.stdout.fileno())r�rs6Exception ignored while flushing sys.stdout:
OSError: r*)r	rMr9rCr�rhrxrvs&    r�test_stdout_flush_at_shutdown�)CmdLineTest.test_stdout_flush_at_shutdown4sh��-��
-�T�4�8��������c�"�����b�!��
�
�#�#*�7�5�"�*�*�2C�2C�2E�#F��	rc�N�Qo[QU2vq#oUOQU2P!)zimport sys; sys.stdout.close()r�rr?rvs&    r�test_closed_stdout�CmdLineTest.test_closed_stdoutDs)��0��'��d�3��������c�"r�posixztest needs POSIX semantics�vxworksz.test needs preexec support in subprocess.Popenc�h`�QORQ5oU1Qko[O[OQQU,[O
[O
[O
UQ5oUO
2vqVUOUQ2UOUO]*2P!)z�if 1:
            import os, sys
            for i, s in enumerate({streams}):
                if getattr(sys, s) is not None:
                    os._exit(i + 1)
            os._exit(42)��streamsc�:�QR7c[O]2QR7c[O]2QR7c[O]2P!P!�r�r�r�)r�r�r�s�r�preexec�+CmdLineTest._test_no_stdio.<locals>.preexecWsA����'�!�������7�"�������7�"������#rr�r�)r�r�r��
preexec_fnr)	�formatr�r�rvr�r�r�rMr)r&r�r�r�rr/r0s&f     r�_test_no_stdio�CmdLineTest._test_no_stdioMs�����
#�F�7�F�3�	
�	�
���
�^�^�T�4��.��/�/��?�?��?�?��
 ���=�=�?�������c�"�������r�*rc�,�UOQ,2P!)r��r�r%s&r�
test_no_stdin�CmdLineTest.test_no_stdinhs�����W�I�&rc�,�UOQ,2P!�r�r�r%s&r�test_no_stdout�CmdLineTest.test_no_stdoutk������X�J�'rc�,�UOQ,2P!)r�r�r%s&r�test_no_stderr�CmdLineTest.test_no_stderrnr�rc�.�UO,QN2P!)r�r�r�r%s&r�test_no_std_streams�CmdLineTest.test_no_std_streamsqs�����9�:rc���UOQ2,o[OOQQ2Q6wc#[	[O2oUQQUQ$L-o[]2FD9oQo[
QU1-U@vqVoUOU]2UOU2J;	[[U22oUO[U2]QOU2Q5Q	o[
QUPQ
5vqVoUOQU2[
QUQQ
5vqVoUOQU2[
QUQQ
5vqVoUOQ
U2[
QQUQQ
5vqVoUOQU2P!)z-R�PYTHONHASHSEED�randomra�
__cleanenvzprint(hash("spam"))r�z83 runs produced an identical random hash  for "spam": {})�msgz<import sys; print("random is", sys.flags.hash_randomization)�r�srandom is 1r�srandom is 0)r1r�r�getrr'rrM�appendrN�set�
assertGreaterr;r�r9)r&�hashesr�ir�r.r/r0s&       r�test_hash_randomization�#CmdLineTest.test_hash_randomizationts]�����t�$���
�:�:�>�>�*�H�5��A��r�z�z�"�C��$�%� #�C����C��q��A�(�D�+�D�$�>�#�>�L�B�S����R��#��M�M�#��	�
��F��$�����3�v�;�� 1�17����	�	A�
N��'��d�2�F�����
�
�n�c�*�'��d�8�L�����
�
�n�c�*�'��d�3�G�����
�
�n�c�*�'��d�D��M�����
�
�n�c�*rc��[OoUO[OU2[	UQQQ59^tt^2o[QUQ5[QUQ5PPP2[
U2P!)%fhK9h)�wr��r-z
import sys)�filezdel sys.modules['__main__'])r�TESTFN�
addCleanup�unlink�openrr)r&�filename�scripts&  r�test_del___main__�CmdLineTest.test_del___main__�sa���#�#�����	�(�(�(�3�
�(�C�'�
2�
2�f��,�V�,��/�f�=�3�	��"�3�
2�s�A8�8B	�B	c�~�[QQ2vqoUOQU2UOUO2O	Q2]2UOQU2[QQQ5vqoUOQU2UOUO2O	Q2]2UOQU2[QQQQ5vqoUOQU2UOQU2UOUO2O	Q2]2UOQU2P!)r�z-zsUnknown option: -zr)�withoutz-asUnknown option: -a)r	r9rMr8�countr,res&   r�test_unknown_options� CmdLineTest.test_unknown_options�s
��,�T�4�8�����
�
�+�S�1�������)�/�/�0E�F��J�����c�"�-�T�4�@�����
�
�+�S�1�������)�/�/�0E�F��J�����c�"�,�T�4��F�����
�
�+�S�1����.��4�������)�/�/�0E�F��J�����c�"r�6Cannot run -I tests when PYTHON env vars are required.c
��UOQ2UOQ2[QQQPQ5vqoUOUO2Q2[O
29^tt^2o[OOUQ2o[OOUQ2o[UQQ	Q
59^tt^2oUOQ2PPP2[UQQ	Q
59^tt^2oUOQ2UOQ
2PPP2UO[O[O[O QU,U[O"Q5[O[O QU,UQ5oUOUO2Q2PPP2P!)%fhK�9h)%fhK�9h)%fhP!9h)r�z-IEPsr�z`from sys import flags as f; print(f.no_user_site, f.ignore_environment, f.isolated, f.safe_path))�dummyvars
1 1 1 Truezuuid.pyzmain.pyr�r�r�z)raise RuntimeError('isolated mode test')
zimport uuid
zprint('ok')
r�)�cwdr�)r�sok)r1rrM�stripr�temp_cwdr�r�r\r�r��assertRaisesr��CalledProcessErrorr�rvr��DEVNULL)r&r.r/r0�tmpdir�fake�main�fs&       r�test_isolatedmode�CmdLineTest.test_isolatedmode�sz��	
���t�$����w�'�'��d�
S��	����
	
�������m�4�
�
�
�
!�
!�V��7�7�<�<��	�2�D��7�7�<�<��	�2�D��d�C�'�2�2�a����D�E�3��d�C�'�2�2�a�����(�����(�3�
���j�;�;�(�5�5�"�~�~�t�T�:��%/�%7�%7�
�
9��)�)�3�>�>�4��*F�.4�6�C����S�Y�Y�[�%�0�"�
!�3�2��2�2��"�
!�
!�sP�3AG/�
G		�G/�:#G	�B"G/�	G
�G
�G/�G,
�%G,
�'G/�/H	�8H	c	��QFDbvq[UUUUQ5o[[U22oQUQUQ0oUOUQ59^tt^2[	QU1-U@PPP2Jd	P!)%fhJy9h)r�)�PYTHONDEBUG�PYTHONOPTIMIZE�PYTHONDONTWRITEBYTECODE�
PYTHONVERBOSEz|import sys; sys.stderr.write(str(sys.flags)); sys.exit(not (
                    sys.flags.optimize == sys.flags.verbose == zM
                    and sys.flags.debug == sys.flags.dont_write_bytecode == z
                )))�envar_valuer�))r�r)rarZ)r
rZ)�2ru)r�int�boolr�r)r&�valuer��env_vars�
expected_boolr�s&     r�test_sys_flags_set�CmdLineTest.test_sys_flags_set�s���I�O�E��!�$�(-�#�	�H� ��U��,�M�@�AI�z�JM�MZ�O�\�	�
����%��0�0� ��t�8�x�8�1�0�! J� 1�0�0�s�A-	�-A>
�6A>
c��[2oQQQQQQUP1,oSFD�vq4oUeQLQUQ0oQUQ0oQU,oUe-LQU-o	VAIc	Q	Q
,UQ$LUdQ	QU0,UQ$UOV4Q
59^tt^2[O29^tt^2[	U-U	@PPP2PPP2J�	P!)%fhK9h)%fhJ�9h)N�foozis Nonez== "�"z,import sys; sys.exit(not sys.pycache_prefix r�r��PYTHONPYCACHEPREFIXr��pycache_prefix:NrNzpycache_prefix=)�envval�opt)NNN)r�Nr�)N�barr�)r�r�r�)r�r�N)�objectr�rr�r)
r&�NO_VALUE�casesr�r�r��
exp_clauser�r�rs
&         r�test_set_pycache_prefix�#CmdLineTest.test_set_pycache_prefix�s����8��
� � �!��
�H�d�#�
��&+�!�F��&.�&6��d�8�*�A�<N�J�A�*��Q�O�D��$�<�D���"�-B�F�,K�C��� �"2�3��R���� �O�C�5�"9�:��R�����V��5�5��'�'�)�)�$�d�2�c�2�*�6�5�&+�*�)��6�5�5�s0�5C		�
B6
� C		�6C�?C�C		�	C
�C
�check_exitcode�xdevc���[[O2oUOQP2UOQP2UOQP2U%c[O
QQ,UN3oL[O
,UN3o[OU[O[OP	UQ5oU%cUOUO]U2UOO2!)�PYTHONWARNINGS�
PYTHONDEVMODE�PYTHONMALLOCr��dev�r�r��universal_newlinesr)rr�r�poprvr�r�rr�rrMrr�r�)r&r�r�r�rr�s&$$*  r�run_xdev�CmdLineTest.run_xdevs����2�:�:������ �$�'������&������%���N�N�D�%�7�$�7�D��N�N�*�T�*�D��~�~�d�%/�_�_�%/�%6�%6�15�"%�	'��
����T�_�_�a��6��{�{�!�!�#�#rc���QoUOQUP
Q5oUOUQ2UOQU2oUOUQ2Qo[O%cQoLQoUOQU2oUOV#2UOQQU2oUOUQ	U02UOQ
QU2oUOUQU02UOQQU2oUOUQ
U02]PHoQo[O
29^tt^2UOQUP
Q5oPPP2[O2%cQoL[O%cQoLQoUOV%2]PH&oQoUOQU2oUOUQ2P!)%fhK�9h[cKMh9h[cP!h9h)�%import sys; print(sys.flags.dev_mode)r�)r��False�Truez\import warnings; print(' '.join('%s::%s' % (f[0], f[2].__name__) for f in warnings.filters))zdefault::Warningz�default::Warning default::DeprecationWarning ignore::DeprecationWarning ignore::PendingDeprecationWarning ignore::ImportWarning ignore::ResourceWarningz-bzdefault::BytesWarning �-bbzerror::BytesWarning z-Werrorzerror::Warning �Limport _testinternalcapi; print(_testinternalcapi.pymem_getallocatorsname()))r��pymalloc_debug�mimalloc_debug�malloc_debugz5import faulthandler; print(faulthandler.is_enabled()))
r�rMrr��_testinternalcapi�SuppressCrashReport�
with_pymalloc�Py_GIL_DISABLED�ImportError�faulthandler)r&r�r/�expected_filtersr�
alloc_namers&      r�	test_xdev�CmdLineTest.test_xdevs���7���m�m�D�$�U�m�3������g�&��m�m�D�$�'������f�%�>������1��!:���m�m�D�$�'������/��m�m�D�$��-������ 6�7G�6H�I�J��m�m�E�4��.������ 4�5E�4F�G�H��m�m�I�t�T�2�������0@�/A�B�C�	.�$�b�D��,�,�.�.��m�m�D�$�u�m�E��/��$�$�&�&�-�
��(�(�(�-�
�+�
����S�-�	*��K�D��-�-��d�+�C����S�&�)�%/�.��	�	��	��"�	��	�sB�G�*F>�G"�>G	�G	�	G�G�G�"	G1�,G1�0G1c��U%cQoLQoUQ*
o[OQUQQU1o[[O2oUOQP2V&Q$[OU[O[OP	UQ5oUOUO]U2UOO2!)	z�import sys; from test.support.import_helper import import_fresh_module; warnings = import_fresh_module('warnings', blocked=['_warnings']); zimport sys, warnings; zKprint(' '.join('%s::%s' % (f[0], f[2].__name__) for f in warnings.filters))�-Wr�r�r�r�r�)rvr�rr�rr�r�rr�rrMrr�r�)r&�cmdline_option�envvar�
use_pywarningr�r�rr�s&&&&    r�check_warnings_filters�"CmdLineTest.check_warnings_filtersSs����Z�D�,�D��>�	?������n�e�T�4�H���2�:�:��������&� &����~�~�d�%/�_�_�%/�%6�%6�15�"%�	'��
	
������!�T�2��{�{�!�!�#�#rc���Qo[O%f
UQ*
oUOQQ2oUOV!2UOQQP	Q5oUOV!2P!)z9error::BytesWarning once::UserWarning always::UserWarningz� default::DeprecationWarning ignore::DeprecationWarning ignore::PendingDeprecationWarning ignore::ImportWarning ignore::ResourceWarningzonce::UserWarningzalways::UserWarning)r)rr�rrM)r&rr/s&  r�test_warnings_filter_precedence�+CmdLineTest.test_warnings_filter_precedencehs}��2�������";�
<���)�)�*=�*?�A������/��)�)�*=�*?�8<�*�>��	
����/rc��Qo[[O2oUOQP2UdVQ$LUOQP2[O
QU1o[OU[O[OP	UQ5oUOUOO2U2UOUO]2P!)r�r�r�r�r�)rr�rr�rvr�r�rr�rrMr�r�r)r&�env_varrEr�rr�r�s&&&    r�check_pythonmalloc�CmdLineTest.check_pythonmalloc}s���]���2�:�:��������&���")����G�G�N�D�)�����d�+���~�~�d�%/�_�_�%/�%6�%6�15�"%�	'��
	
������+�+�-�t�4�������!�,rc	��[O%(o[O2o[O2o[O%c[O%cQLQoQoLAU%c[O%cQLQoQoL[O%cQLQoQoPU1QU1,oU%cUOQQ	,2U%cUOQ
2U%cUOQ2SFD9vqxUO
VxQ59^tt^2UOVx2PPP2J;	P!)%fhJP9h)r��mimallocr��pymallocr��malloc�debug)rrE)rr)r�r�))rr)r�r�))rr)r�r�)rrr�
with_mimallocr�r�r�r)	r&rrr�default_name�default_name_debugr�rrEs	&        r�test_pythonmalloc�CmdLineTest.test_pythonmalloc�s(���,�,�,���(�(�*���(�(�*���"�"�"�/6�/?�/?�/?�+�Z�L�!1��
�/6�/?�/?�/?�+�Z�L�!1��-4�-=�-=�-=�>�8�L�!/���<� �
�(�)�
����L�L�$�0��
���L�L��
���L�L��
�
#�M�G����g��9�9��'�'��6�:�9�#�9�9�9�s�,E	�E
�E
c�N�Qo[[O2oUOQP2[O
QU1o[OU[OP	UQ5oUOUOO2Q2UOUO]U2QUQ$[OU[OP	UQ5oUOUOO2Q2UOUO]U2P!)r�r�r�)r�r�rr�rar�)
rr�rr�rvr�r�rr�rMr�r�r)r&r�rr�r�s&    r�test_pythondevmode_env�"CmdLineTest.test_pythondevmode_env�s���6���2�:�:��������&�����d�+���~�~�d�:�?�?�15�3�@��������+�+�-�w�7�������!�T�2�"��O���~�~�d�:�?�?�15�3�@��������+�+�-�v�6�������!�T�2rc��QQ	,o[O%cUO,Q
N2LUOQQ,2Qo[[O
2oSFCDvqEqgUO
VtUQ59^tt^2UOQP2UdVCQ$,oUdQQU0,o[O[O,UNQMUM[O[OP	UQ5o	UOU	O]U	2UOU	OO!2U2UOU	O"P2PPP2CJ	P!)%fhCJ9h)
raz import sys; print(sys.flags.gil))rr��
PYTHON_GILr�zgil=r�)r�r�r
r)raNrazPYTHON_GIL=1)Nraraz-X gil=1))NN�Nonezno options set)r�Nr�zPYTHON_GIL=0)rar�r�z-X gil=0 overrides PYTHON_GIL=1)Nr�r�z-X gil=0)NNraz$-X gil=0 (unsupported by this build))raNraz(PYTHON_GIL=0 (unsupported by this build))rrr�rr�rr�r�r�rrvr�r�rMrr�r�r�)
r&r�r�rrr�r�r��
extra_argsr�s
&         r�test_python_gil�CmdLineTest.test_python_gil�sI��
-�(�
���"�"�"��L�L��
�
�L�L�M�P��
�2���r�z�z�"��',�#�C�h����c���4�4����L�$�/��?�,/�L�)��
��?�"&�$�s�e��!5�J�!�~�~�s�~�~�&O�
�&O�D�&O�$�&O�-7�_�_�-7�_�_�+/�W�>��� � ����!�T�:�� � ����!3�!3�!5�x�@�� � ����b�1�5�4�(-�4�4�4�s�E)	�	E)	�$B6E)	�)E;
�2E;
c�R�Qo[QUQQ5vq#oUOQU2P!)z;import asyncio; print(asyncio.new_event_loop().get_debug())r�ra)�PYTHONASYNCIODEBUGsTruerdrvs&    r�test_python_asyncio_debug�%CmdLineTest.test_python_asyncio_debug�s'��L��'��d�s�K�����
�
�g�s�#r�
Py_TRACE_REFSz'Requires --with-trace-refs build optionc�R�Qo[QUQQ5vq#oUOU]2P!)�(import sys; sys._clear_internal_caches()r�ra)�PYTHONDUMPREFSr?rvs&    r�test_python_dump_refs�!CmdLineTest.test_python_dump_refs�s)��9��'��d�3�G��������Q�rc	��[O29^tt^2oQo[QV!OQ5vq4oUO	U]2[UOQ29^tt^2oUO
2oUOQU2PPP2PPP2P!)%fhK9h)%fhP!9h)r1r�)�PYTHONDUMPREFSFILE�rzRemaining objects)rfrgrrErMr��readr9)r&�	dump_filer�r.r/r0r��contentss&       r�test_python_dump_refs_file�&CmdLineTest.test_python_dump_refs_file�s���
�
(�
(�
*�
*�i�=�D�+�D�$�>�>�Z�L�B�S����R��#��i�n�n�c�*�*�d��9�9�;���
�
�1�8�<�+�	+�
*�+�*��	+�
*�
*�s0�A
B4�,#B!	�B4�!B1
�*B1
�,B4�4C	�=C	z$PYTHONEXECUTABLE only works on macOSc�p�QoQo[QVQ5vq4oUOUO2U2P!)z!import sys; print(sys.executable)z/busr/bbin/bpythonr�)�PYTHONEXECUTABLE�rr9rx�r&r�r�r.r/r0s&     r�test_python_executable�"CmdLineTest.test_python_executables1��2��'��'��d�N�����
�
�h�o�o�'��-rzTest only applicable on Windowsc�r�QoQo[QUQQ5vq4oUOUO2U2P!)z.import sys; print(sys.getfilesystemencoding())�mbcsr�ra)�PYTHONLEGACYWINDOWSFSENCODINGr?r@s&     r�&test_python_legacy_windows_fs_encoding�2CmdLineTest.test_python_legacy_windows_fs_encodings4��?����'��d�RU�V�����
�
�h�o�o�'��-rc�0�Qo[OO2oPUQ$[O[
OQU,[OUQ5o[OUO2UOUO]2QoQUQ$[O[
OQU,[OUQ5o[OUO2UOUO]2P!)zQimport sys; sys.exit(type(sys.stdout.buffer.raw).__name__ != '_WindowsConsoleIO')�PYTHONLEGACYWINDOWSSTDIOr�)�
creationflagsrzFimport sys; sys.exit(type(sys.stdout.buffer.raw).__name__ != 'FileIO')ra)r�rrr�rrvr��CREATE_NEW_CONSOLEr�*skip_on_low_desktop_heap_memory_subprocessrrM)r&r�rrs&   r� test_python_legacy_windows_stdio�,CmdLineTest.test_python_legacy_windows_stdios���c���j�j�o�o���*,��&�'��N�N�C�N�N�D�$�7�)3�)F�)F�"�
$��	�:�:�1�<�<�H�������q�)�X��*-��&�'��N�N�C�N�N�D�$�7�)3�)F�)F�"�
$��	�:�:�1�<�<�H�������q�)rz
-fsanitize�	PY_CFLAGSz(PYTHONMALLOCSTATS doesn't work with ASANc�R�Qo[QUQQ5vq#oUOQU2P!)r�r�ra)�PYTHONMALLOCSTATSsSmall block thresholdrdrvs&    r�test_python_malloc_stats�$CmdLineTest.test_python_malloc_stats.s*����'��d�c�J�����
�
�.��4rc�p�QoQo[QVQ5vq4oUOUO2U2P!)z"import site; print(site.USER_BASE)z/custom/userbaser�)�PYTHONUSERBASEr?r@s&     r�test_python_user_base�!CmdLineTest.test_python_user_base5s1��3��%��'��d�L�����
�
�h�o�o�'��-rc�r�QoQo[QUQQ5vq4oUOUO2U2P!)z3import os; print('PYTHON_BASIC_REPL' in os.environ)r�r�ra)�PYTHON_BASIC_REPLr?r@s&     r�test_python_basic_repl�"CmdLineTest.test_python_basic_repl;s3��D����'��d�c�J�����
�
�h�o�o�'��-r�HAVE_PERF_TRAMPOLINEz%Requires HAVE_PERF_TRAMPOLINE supportc�r�QoQo[QUQQ5vq4oUOUO2U2P!)z3import sys; print(sys.is_stack_trampoline_active())r�r�ra)�PYTHON_PERF_JIT_SUPPORTr?r@s&     r�test_python_perf_jit_support�(CmdLineTest.test_python_perf_jit_supportBs3��D����'��d�C�P�����
�
�h�o�o�'��-rz!bpo-32457 only applies on Windowsc��[OQQ1o[OO	[O2vq#UQ*U*o[
OU[
OUQ5oUOUO]U2UOUOO2Q2P!)r�zprint(0)z\.\.\.\)r�r��0)rvr�r�r�rIr�rr�rMrr�r�)r&r��prefix�exer�r�s&     r�test_argv0_normalization�$CmdLineTest.test_argv0_normalizationIs����~�~�t�Z�/���g�g�m�m�C�N�N�3����m�+�c�1�
��~�~�d�:�?�?�)3�5��������!�T�2�������*�*�,�d�3rc��[OQQ,o[OU[O[OP	Q5oQoUOUOU2UOUO]2P!)r�z--unknown-option)r�r�r
z(Unknown option: --unknown-option
usage: )	rvr�r�rr�rzr��assertNotEqualr)r&r�r��err_msgs&   r�test_parsing_error�CmdLineTest.test_parsing_errorUse������&8�9���~�~�d�%/�_�_�%/�_�_�#'�)��>�����d�k�k�7�3����D�O�O�Q�/rc��Qo[QQQU2[QQQU2[QQQU2[QQQUQQ5[QUQQ5[QUQ	Q5[QU2oUOo[O2oUOUU2VD12[QQ
QU2oUOUU2Q2[QQQU2oUOUU2Q2[QQQU2oUOUU2Q2[QUQ
Q5oUOUU2Q2[QUQQ5oUOUU2Q2[QQQUQQ5oUOUU2Q2P!)zMimport sys; print(sys.flags.int_max_str_digits, sys.get_int_max_str_digits())r��int_max_str_digitsr�zint_max_str_digits=foozint_max_str_digits=100�4000)�PYTHONINTMAXSTRDIGITSr��100zint_max_str_digits=0zint_max_str_digits=4000zint_max_str_digits=100000r�zint_max_str_digits=6000)rr)�rq)順rr)�prs)r	r�res2intrv�get_int_max_str_digitsrM)r&r�r�rt�current_maxs&    r�test_int_max_str_digits�#CmdLineTest.test_int_max_str_digitsas}��^���d�$8�$��E��d�$<�d�D�I��d�$<�d�D�I��d�$8�$��4:�	<�	�d�D��F��d�D��F��t�T�*���,�,���0�0�2���������'A�B��t�%;�T�4�H��������v�.��t�%>��d�K��������|�4��t�%@�$��M��������'7�8��t�T��E��������v�.��t�T��H��������|�4���+�T�4�"(�
��	
������|�4rc�<�Q[Q2OQQ2Q1[Q2OQQ2Q1QOQ	P2Q
1QQ,oSFCDBvq#[OQU1o[O
U[OQ5oUOUO]U2UOO2OQ
Q5o[OQ[U21o[O
U[OQ5oUOUO]U2UOO2OQ
Q5o	UOVi2UOUOQQ2U2CJE	P!)�@
                    print('space-auto-dedent')
                z=
                ^^^print('tab-auto-dedent')
                �^�	ztab-auto-dedentz�
                ^^if 1:
                ^^^^print('mixed-auto-dedent-1')
                ^^print('mixed-auto-dedent-2')
                z	 	z'mixed-auto-dedent-1
mixed-auto-dedent-2a#
                    data = """$

                    this data has an empty newline above and a newline with spaces below $
                                            $
                    """$
                    if 1:         $
                        print(repr(data))$
                �$zO'\n\nthis data has an empty newline above and a newline with spaces below \n\n'r�r�r�r�z
�
)rzzspace-auto-dedent)r�r�)z  	
	
 			  		 	
		 


			   r�)rrCrvr�r�rr�rMrr�r�r])
r&�
test_casesr�r��args1�proc1�output1�args2�proc2�output2s
&         r�test_cmd_dedent�CmdLineTest.test_cmd_dedent�sz��
�����'�#�t�$�!�

�����'�#�w�'�:�	
���G����f�
�"
�
�]2
�
�f)�N�D��N�N�D�$�.�E��N�N�5����A�E����U�-�-�q�%�8��l�l�(�(�*�1�1�7�1�C�G��N�N�D�&��,�6�E��N�N�5����A�E����U�-�-�q�%�8��l�l�(�(�*�1�1�7�1�C�G����W�.����W�_�_�V�T�:�H�E�)rc���]QHGoUQ2oUOQQ2OQQ2o[QU2UOQQ2OQQ2o[QU2P!)rrzE
            -+if 1:
            +-++ print('will fail')
            �-� �+r|r�)r9rrCr	)r&r�templater�s&   r�test_cmd_dedent_failcase�$CmdLineTest.test_cmd_dedent_failcase�sh��#��
���
����S�)�1�1�#�t�<���d�D�)�����T�*�2�2�3��<���d�D�)rc���Qo[QQQU2oUOUOU2Q2[QUQQ5oUOUOU2Q2P!)�8import os; print(os.cpu_count(), os.process_cpu_count())r�zcpu_count=4321r��1234��PYTHON_CPU_COUNT)��r�)��r�)rrMrt�r&r�r�s&  r�test_cpu_count�CmdLineTest.test_cpu_count�sX��I���t�%5�t�T�B��������c�*�L�9��t�T�F�C��������c�*�L�9rc��Qo[QQQU2oUOUOU2[O2[O
212[QQQUQQ5oUOUOU2[O2[O
212[QUQQ5oUOUOU2[O2[O
212P!)r�r�zcpu_count=defaultr�r�r��default)rrMrtr��	cpu_count�process_cpu_countr�s&  r�test_cpu_count_default�"CmdLineTest.test_cpu_count_default�s���I���t�%8�$��E��������c�*�R�\�\�^�R�=Q�=Q�=S�,T�U��t�%8�$��W]�^��������c�*�R�\�\�^�R�=Q�=Q�=S�,T�U��t�T�I�F��������c�*�R�\�\�^�R�=Q�=Q�=S�,T�Urc��QoQ	FDPo[QUQU2oUOOQ2oUOUQ2UO	UQ2JR	[QQQU2oUOOQ2oUOUQ2UOUQ2[QQQU2[QQQU2P!)
zimport os; import osr�r�r�z&import time: \s*\d+ \| \s*\d+ \| \s*osz)import time: cached\s* \| cached\s* \| oszimporttime=2z
importtime=-1zimporttime=3)�
importtimezimporttime=1zimporttime=true)rr0r]r��assertNotRegexr	)r&r��caser��res_errs&    r�test_import_time�CmdLineTest.test_import_time�s���%��C�D�"�4��t�T�:�C��g�g�n�n�W�-�G����W�&O�P�����)U�V�	D��t�^�T�4�@���'�'�.�.��)������"K�L�����"N�O��d�O�T�4�@��d�N�D�$�?rc���UOO2OQ2o[9PIc",QUO	22DMJ	3!QUO	222!)r�c3�D�SF �Do[U2w�	J	P!3hr)r�)�.0r�s& r�	<genexpr>�&CmdLineTest.res2int.<locals>.<genexpr>�s��[���[��S��V�V�[�s� )r/r�r]�tuplerI)r&r�r/s&& rrt�CmdLineTest.res2int�sL���g�g�m�m�o�$�$�W�-���u�1�S�Y�Y�[�1�u�u�1�u�1�S�Y�Y�[�1�1�1rz@PYTHON_TLBC and -X tlbc only supported in Py_GIL_DISABLED buildsc�L�Qo[QQQQQU2[QQQUQQ5P!)��if 1:
            import threading
            def test(x, y):
                return x + y
            t = threading.Thread(target=test, args=(1,2))
            t.start()
            t.join()r�alwaysr�ztlbc=0r�r���PYTHON_TLBC�r�r&r�s& r�"test_disable_thread_local_bytecode�.CmdLineTest.test_disable_thread_local_bytecode�s-��
��	��x��x��t�D���x��t��Erc�L�Qo[QQQQQU2[QQQUQQ5P!)r�rr�r�ztlbc=1r�rar�r�r�s& r�!test_enable_thread_local_bytecode�-CmdLineTest.test_enable_thread_local_bytecode	s-��
��	��x��x��t�D���x��t��Erc���[QQ2vqoUOQU2[QQ2vqoUOQU2[QQ2vqoUOQU2[QQ2vqoUOQU2[QQ5vqoUOQU2[Q	Q5vqoUOQU2[Q
Q5vqoUOQU2P!)r��tlbcstlbc=n: n is missing or invalidztlbc=fooztlbc=-1ztlbc=2r�r�s&PYTHON_TLBC=N: N is missing or invalidz-1r�)r	r9res&   r�"test_invalid_thread_local_bytecode�.CmdLineTest.test_invalid_thread_local_bytecodes���-�T�6�:�����
�
�8�#�>�,�T�:�>�����
�
�8�#�>�,�T�9�=�����
�
�8�#�>�,�T�8�<�����
�
�8�#�>�,��?�����
�
�?��E�,��>�����
�
�?��E�,��=�����
�
�?��Erz(-X presite requires a Python debug buildc��Qo[QQU0QQ2oUOUOO2Q2Qo[QQU0QQ2oUOUOO2Q2P!)ztest.test_cmd_line:presite_funcr�zpresite=r�r�spresite funcz$test.test_cmd_line:presite.attr.func)rrMr/r�)r&�
entrypointr�s&  r�test_presite�CmdLineTest.test_presite-sr��7�
������&=�t�V�L����������*�O�<�;�
������&=�t�V�L����������*�O�<rc��Qo,QNo[UQU-oUOQUO2UOQUQ0O2UO2P!)z/nonexistent-python-path�
PYTHONHOMEsPython path configuration:zPYTHONHOME = 'rz)r�zfrozen_modules=offr�r�)r	r9r0rx)r&�nonexistentr�r�s&   r�test_dump_path_config�!CmdLineTest.test_dump_path_config8sV��1��9��$�c�B�k�B���
�
�3�T�X�X�>��
�
��{�m�1�5�<�<�>����Irr)F)srrrrr'r1r�cpython_onlyrr>rSrWr^�force_colorizedrfrjrnrrr}r�r��skipIfr
r�r�r�r�r�r�r�r�r��
skipUnlessrr�r�r�rvrurr/�
is_androidr4r�rr�r:rArErQ�flags�	safe_pathr[rbrkrorrrwr}r�r�rEr�r�r�r�r�r�r�r�r�r�r�r�rrrrr r#r)r-�	sysconfig�get_config_varr3r;rA�
MS_WINDOWSrFrM�get_config_varsrRrVrZr_rerjrwr�r�r�r�r�rtrr�requires_working_threadingr�r�r�r�r�r�r �__classdictcell__��
__classdict__s@rr"r"/s>����%��
���� � �(�!��(�
���� � �
I�!��
I�
���� � �D�!��D�
���� � �	,�!��	,�
������	*���	*�
���� � �(�!��(�&�%�
���0��0�1��_�_�5�7�M�O�:�O�:� '�>
���D��D�
���	D��	D�
4�	<�
���-��-�I�'�����.�.�0L�M�(�N�(�����.�.�0L�M�F�N�F��_�_�S�\�\�W�,�7�9�Q�9�Q�B�_�_�S�\�\�W�,�7�9�?G�9�?G�B���#�,�,�(�2�#�#��"�"�%L�N�*�N�*�(�_�_�R�Z�Z�^�^�$6��<��C�:�<�
/�<�
/�L� *�
2��_�_�S�Y�Y�(�(�>�@�%�@�%�")�$
4���-�"#��
��
�#��_�_�R�W�W��'�)E�F�
�_�_�S�\�\�Y�.�I�K�+�K�G�+�0'�(�(�;�#+�J	#�
���#��#�$�_�_�5�7�M�O�1�O�1�49�*3�4$�T�$��$�&
���;*��;*�z$�*0�*-�"
���%7��%7�N3�$)2�V$�
����1�1�/�B�Dm�n� �o� �
����1�1�/�B�Dm�n�=�o�=��������1�3Y�Z�.�[�.�����+�+�-N�O�.�P�.�����+�+�-N�O�*�P�*�.�_�_�\�Y�%>�%>�%@�%D�%D�[�RT�%U�U�?�A�5�A�5�
.�.�����1�1�2H�I�Kr�s�.�t�.��������0�<�>�4�>�4�
���� � �0�!��0�5�BCF�J*�:�V�@�$2�����0�0�E�F��0�0�2�	F�3�F�	F�����0�0�E�F��0�0�2�F�3�F�F�����0�0�E�F�F�F�F� ����)�)�C�E�=�E�=�	J�	Jrr"r�c�:`�\sQsQsnQsQsQsQsQsUs	P!)�IgnoreEnvironmentTestiDc�D�QOU2o[QQU1-U@!)z@import sys; sys.stderr.write(str(sys.flags)); sys.exit(not ({}))r�r�)r�r)r&�	predicater�r�s&&, r�run_ignoring_vars�'IgnoreEnvironmentTest.run_ignoring_varsHs*��
R�X�X�Yb�c����d�D�=�H�=�=rc�P�QoUOQOU2UQ5P!)�should_be_ignoredz'{}' not in sys.pathrJ)r�r�)r&r�s& r�test_ignore_PYTHONPATH�,IgnoreEnvironmentTest.test_ignore_PYTHONPATHPs+��"�����5�<�<�T�B�*.�	�	0rc�.�UOQQQ5P!)z!sys.flags.hash_randomization == 1r�r��r�r%s&r�test_ignore_PYTHONHASHSEED�0IgnoreEnvironmentTest.test_ignore_PYTHONHASHSEEDUs�����B�.1�	�	3rc	�:�QoUOUQQQQQQ5P!)z�
            (sys.flags.debug == sys.flags.optimize ==
             sys.flags.dont_write_bytecode ==
             sys.flags.verbose == sys.flags.safe_path == 0)
        ra)r�r�r�r��PYTHONSAFEPATHr�)r&�expected_outcomes& r�test_sys_flags_not_set�,IgnoreEnvironmentTest.test_sys_flags_not_setYs1����
	
������$'���
	�	
rr)
rrrrr�r�r�r�r r�r�s@rr�r�Ds����>�0�
3�
�
rr�c�>`�\sQsQsn\Q2sQsQsQsUs	P!)�SyntaxErrorTestsijc�<�[O[OQ,U[O[OQ5oUOUO]2UOUOP2UOQUO2P!)r�)�inputr�r�s
SyntaxError)	r�rrvr�r�rhrr�r9)r&r�r�s&& r�check_string�SyntaxErrorTests.check_stringksf���~�~�s�~�~�s�3�4�%/�_�_�Z�_�_�N�����D�O�O�Q�/����D�K�K��.��
�
�&����4rc�*�UOQ2P!)s(1+2+3�r�r%s&r�test_tokenizer_error_with_stdin�0SyntaxErrorTests.test_tokenizer_error_with_stdinss�����)�$rc�*�UOQ2P!)s'\u1f'r�r%s&r�*test_decoding_error_at_the_end_of_the_line�;SyntaxErrorTests.test_decoding_error_at_the_end_of_the_linevs�����*�%rr)
rrrrrr�r�r�r r�r�s@rr�r�js&�����5��5�%�&�&rr�c�2�[O2P!r)r�
reap_childrenrrr�tearDownModuler�zs�����r�__main__)&r$r�rJr�rvr�rfr9r�r�r�test.supportrrr�test.support.script_helperrrrr	r
r�has_subprocess_support�SkipTestrrr�presite�attr�func�TestCaser"r�r�r�r�rr�rrr�<module>rs��
�	�	��
������"�,�)�����%�%�%�
�
�
�=�
>�>���	�	��+���{��� �����RJ�(�#�#�RJ�j(
���1�3�I�K�!
�H�-�-�!
�K�!
�H
&�x�(�(�
&� ��z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit