403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.145
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_repl.cpython-315.opt-2.pyc
R
>lqj?Dc�P�]PHs]PHs]PHs]PHs]PHs]QHGs]QHGs]QH$G
s
]QH,Gs]QH4GsGsGsGsGs]QHLGs]PHVs\%f\O.Q2gQ\O0Q	\O2Q
P
QP	-Qks\\Q
QP	Q5s\QQ-QQkk2sQs\O<QQ\O>22s \O<QQ\O>22s!QQ\O>2s"\#Q6Xc\OH2P!P!\cPsK�h9h)�)�contextmanager)�partial)�dedent)�support)�cpython_only�has_subprocess_support�	os_helper�SuppressCrashReport�
SHORT_TIMEOUT)�kill_pythonztest module requires subprocess�stdout�stderr�custom�isolatedc
��[OO[OO[O
2Q2oU,oU%cUO
Q2U%fUO
Q2UOU2UOQ[[O22oQUQ$[OU1Q[O
QP	Q[OQ	UQ
U-U@!)�<stdin>�-I�-i�env�vt100�TERM�
executable�text�stdinrr
)�os�path�join�dirname�sysr�append�extend�
setdefault�dict�environ�
subprocess�Popen�PIPE)	rr
rr�args�kw�stdin_fname�cmd_liners	$$$$*,   �#C:\Python315\\Lib\test\test_repl.py�
spawn_replr,s����'�'�,�,�r�w�w���s�~�~�>�	�J�K��}�H��������������O�O�D��
�-�-��t�B�J�J�/�
0�C��C��K����H�"�'*�~�~�"�!%�"�#-�/�/�"�$*�	"�39�	"�
!�"�"��-m�asyncio�r�histfile�.pythonhistc�2�U]6�cPgQ[Q[-!)��sourcer1)�str)�formats"r+�__annotate__�temp_pythonstartup.__annotate__Gs��	
�	
�#�	
��	
r-c	#� �[O29^tt^2o[OO	UQ2o[UQ29^tt^2oUO
U2PPP2QUQ[OO	V!2-w�PPP2P!)%fhK@9h)%fhP!9h3h)�pythonstartup.py�w�
PYTHONSTARTUP�PYTHON_HISTORY)r�temp_dirrrr�open�write)r5r1�tmpdir�filename�fs$$   r+�temp_pythonstartuprEFs����
�	�	�	�	���7�7�<�<��(:�;��
�(�C�
 �
 �A�
�G�G�F�O�!�
�X��b�g�g�l�l�6�<�
�	
�	
�	�
 �
 ��
�	�	�s@�C�5B3�B 	�(.B3�
C� B0
�)B0
�+B3�3C	�<C	�>	Cc��[2oUOOU2[U2oUO]6wc[Q2gU!)rzProcess didn't exit properly.)r,rrAr�
returncode�
ValueError)r5�process�outputs&  r+�run_on_interactive_moderKSsF���l�G��M�M�����
��
!�F����Q���8�9�9��Mr-c��`�\sQs]bsn\O
Q2s\Q2s\Q2s	Qs
QsQsQs
QsQ	sQ
sQs\O&\Q2Q
2sQsUsP!)�TestInteractiveInterpreterc�:�Qo[U2o[2o[29^tt^2UOO	U2PPP2[U2oUO
QU2UO
UOQ2P!)%fhKK9h)z�
            import sys, _testcapi
            1/0
            print('After the exception.')
            _testcapi.set_nomemory(0)
            sys.exit(0)
        zAfter the exception.)��x)rr,r	rrAr�assertInrG��self�
user_input�prJs&   r+�test_no_memory�)TestInteractiveInterpreter.test_no_memoryesm��
�
��J�'�
��L��
 �
"�
"�
�G�G�M�M�*�%�#��Q����
�
�,�f�5��
�
�a�l�l�H�-�#�
"�s�B
�
B	�B	c��Qo[U2o[2oUOOU2[	U2oUOUO]2P!)a        x = """<?xml version="1.0" encoding="iso-8859-1"?>
        <test>
            <Users>
                <fun25>
                    <limits>
                        <total>0KiB</total>
                        <kbps>0</kbps>
                        <rps>1.3</rps>
                        <connections>0</connections>
                    </limits>
                    <usages>
                        <total>16738211KiB</total>
                        <kbps>237.15</kbps>
                        <rps>1.3</rps>
                        <connections>0</connections>
                    </usages>
                    <time_to_refresh>never</time_to_refresh>
                    <limit_exceeded_URL>none</limit_exceeded_URL>
                </fun25>
            </Users>
        </test>"""
        )rr,rrAr�assertEqualrGrRs&   r+�test_multiline_string_parsing�8TestInteractiveInterpreter.test_multiline_string_parsingzsI���
�.�J�'�
��L��	���
�
�j�!��Q���������q�)r-c���Qo[QU8Q02o[2oUOOU2[	U2oUOUO]2UOV2P!)�az        x = f'{z}'
        print(x)
        ��aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa�rr,rrArrYrGrQ)rS�
long_valuerTrUrJs&    r+�)test_lexer_buffer_realloc_with_null_start�DTestInteractiveInterpreter.test_lexer_buffer_realloc_with_null_start�si��
 �
��!���	��
�
�
�L��	���
�
�j�!��Q���������q�)��
�
�j�)r-c���[Q2o[Q2o[QU2oUOU2]*oUOUO]2UOQU2P!)zY
            import os
            print("before close")
            os.close(0)
        zl
            from test.support import suppress_msvcrt_asserts
            suppress_msvcrt_asserts()
        z-czbefore close)rr,�communicaterYrGrQ)rSrT�prepare_replrIrJs&    r+�test_close_stdin�+TestInteractiveInterpreter.test_close_stdin�si����
�
�
��
���T�<�0���$�$�Z�0��3������+�+�Q�/��
�
�n�f�-r-c���Qo[2oUOOU2[U2oUO	UO
]2UO
2QPo,QNoUO	VE2P!)z
1 / 0 / 3 / 4i����)z"Traceback (most recent call last):�%  File "<stdin>", line 1, in <module>z    1 / 0 / 3 / 4�	    ~~^~~�#ZeroDivisionError: division by zero)r,rrArrYrG�
splitlines)rSrTrUrJ�traceback_lines�expected_liness&     r+�$test_interactive_traceback_reporting�?TestInteractiveInterpreter.test_interactive_traceback_reporting�sg��$�
��L��	���
�
�j�!��Q���������q�)� �+�+�-�b��4��
��	
����9r-c�@�[Q2o[2oUOOU2QoUOOU2[	U2oUOUO]2UO2QPo,QNoUOVV2P!)z0
        def foo(x):
            1 / x

        zfoo(0)i����)riz
    foo(0)z
    ~~~^^^z   File "<stdin>", line 2, in fooz	    1 / xrjrk)rr,rrArrYrGrl)rS�user_input1rU�user_input2rJrmrns&      r+�3test_interactive_traceback_reporting_multiple_input�NTestInteractiveInterpreter.test_interactive_traceback_reporting_multiple_input�s�����
��

�L��	���
�
�k�"���	���
�
�k�"��Q���������q�)� �+�+�-�b��4��
��	
����9r-c	���Qo[O29^tt^2o[OO	UQ2o[UQ29^tt^2oUO
Q2PPP2[OO2oV5Q$[OO	UQ2UQ$UU2oUOO
Q2[U2oPPP2[Q2oUOQ	W2UOV�2[O29^tt^2o[OO	UQ2o[UQ29^tt^2oUO
Q
2PPP2[OO2oV5Q$[OO	UQ2UQ$UU2oUOO
Q2[U2oPPP2[Q2W*oUOV�2P!)%fhCK�9h)%fhCK_9h)%fhK�9h)%fhKp9h)
c
�D�[O[OO	[OO[O2Q2Q,[OP	[O[O[OUQ5!)rr)rrrrr
r)
r$r%rrrrrrr&�STDOUT)rs&r+�	make_repl�PTestInteractiveInterpreter.test_pythonstartup_error_reporting.<locals>.make_repl�sa���#�#������b�g�g�o�o�c�n�n�=�y�I�4�P��>�>�� �o�o�!���!�(�(���
r-r;r<zprint('from pythonstartup')
r=r2r>z1/0z�
            Traceback (most recent call last):
              File "<stdin>", line 1, in <module>
                1/0
                ~^~
            ZeroDivisionError: division by zero
        zfrom pythonstartupzdef foo():
    1/0
zfoo()a
            Traceback (most recent call last):
              File "<stdin>", line 1, in <module>
                foo()
                ~~~^^
              File "%s", line 2, in foo
                1/0
                ~^~
            ZeroDivisionError: division by zero
        )
rr?rrrr@rAr#�copyrrrrQ)	rSryrB�scriptrDrrUrJ�expecteds	&        r+�"test_pythonstartup_error_reporting�=TestInteractiveInterpreter.test_pythonstartup_error_reporting�s���		��
�
�
!�
!�V��W�W�\�\�&�*<�=�F��f�c�"�"�a����7�8�#��*�*�/�/�#�C�#)�� �$&�G�G�L�L���$G�C� �!��#��A�
�G�G�M�M�%� � ��^�F�"���
��	
�
�
�*�F�3��
�
�h�'��
�
�
!�
!�V��W�W�\�\�&�*<�=�F��f�c�"�"�a����/�0�#��*�*�/�/�#�C�#)�� �$&�G�G�L�L���$G�C� �!��#��A�
�G�G�M�M�'�"� ��^�F�"��	�	
��	��	
�
�
�h�'�S#�"�"��"�
!�
!��0#�"��"�
!�sa�5H:�H&	�)A;H:�75I!�,I	�>A;I!�&H7
�/H7
�1	H:�:I	�I	�I
�I
�I!�!I1	�*I1	c���[Q2o[2oUOOU2[	U2o,QNoUOUO
2]PU2P!)z-def f(x, x): ...
                            )z    def f(x, x): ...z             ^z;SyntaxError: duplicate parameter 'x' in function definition)rr,rrArrYrl)rSrTrUrJrns&    r+�)test_runsource_show_syntax_error_location�DTestInteractiveInterpreter.test_runsource_show_syntax_error_location sZ��� �!�
��L��	���
�
�j�!��Q���
��
	
����*�*�,�Q�r�2�N�Cr-c�*�[Q2o[2oUOOU2[Q2oUOOU2[	U2oUOUO]2QoUOVTU2P!)zi
        def foo(x):
            return x + 1

        def bar(x):
            return foo(x) + 2
        zq
        import linecache
        print(linecache._interactive_cache[linecache._make_key(foo.__code__)])
        zD(30, None, ['def foo(x):\n', '    return x + 1\n', '\n'], '<stdin>')r_�rSrTrUrsrJr}s&     r+�'test_interactive_source_is_in_linecache�BTestInteractiveInterpreter.test_interactive_source_is_in_linecache-s{����
�
�
�L��	���
�
�j�!���
��	
���
�
�k�"��Q���������q�)�d���
�
�h��1r-c	�T�[O29^tt^2o[OO	UQ2o[UQ29^tt^2oUO
Q2PPP2[OO2o[OO	UQ2UQ$V$Q$[P
UQ5o[U2oUOUO]2UOQU2PPP2P!)%fhK�9h)%fhP!9h)r;r<zprint('pythonstartup done!')
�.asyncio_historyr>r=�rrzpythonstartup done!)rr?rrrr@rAr#r{�spawn_asyncio_replrrYrGrQ�rSrBr|rDrrUrJs&      r+�/test_asyncio_repl_reaches_python_startup_script�JTestInteractiveInterpreter.test_asyncio_repl_reaches_python_startup_scriptAs���
�
�
�
!�
!�V��W�W�\�\�&�*<�=�F��f�c�"�"�a����8�9�#��*�*�/�/�#�C�$&�G�G�L�L��9K�$L�C� �!�#)�� �"�E�s�;�A� ��^�F����Q�\�\�1�-��M�M�/��8�"�
!�"�"��"�
!�
!��0�5D�D	�&BD�D
�D
�D�D'	�D'	c	�T�[O29^tt^2o[OO	UQ2o[UQ29^tt^2oUO
Q2PPP2[OO2o[OO	UQ2UQ$V$Q$[P	UQ5o[U2oUOUO]2UOQU2PPP2P!)%fhK�9h)%fhP!9h)r;r<zprint('should not print')
r�r>r=r�zshould not print)rr?rrrr@rAr#r{r�rrYrG�assertNotInr�s&      r+�(test_asyncio_repl_respects_isolated_mode�CTestInteractiveInterpreter.test_asyncio_repl_respects_isolated_modeNs���
�
�
�
!�
!�V��W�W�\�\�&�*<�=�F��f�c�"�"�a����5�6�#��*�*�/�/�#�C�$&�G�G�L�L��9K�$L�C� �!�#)�� �"�D�c�:�A� ��^�F����Q�\�\�1�-����/��8�"�
!�"�"��"�
!�
!�r�zrequires ptyc
�v�[O2vq[OQQQ,o[O
O
2o[OUUUUP	P	UQ5o[OU2[OUQ2[OUQ2,o[OU,,,[2]*%cE[OUQ2OQ2oU%fLUO!U2Jo[OU2UO#[Q5oUO)U]PO+U22P![cJ_h9h[O$c$SO'2SO#2oKmh9h)	rr.r/)rrr
r�	close_fdsrsawait asyncio.sleep(0)
sexit()
�zutf-8)�timeout)�pty�openptyrrrr#r{r$r%�closerA�selectr
�read�decode�OSErrorr�wait�TimeoutExpired�killrYr)	rS�m�s�cmdr�procrJ�data�	exit_codes	&        r+�test_asyncio_repl_is_ok�2TestInteractiveInterpreter.test_asyncio_repl_is_ok[sT���{�{�}����~�~�t�T�9�5���j�j�o�o�������������
��	�����
����/�0�
����K� ����m�m�Q�C��R��7��:�:�
��w�w�q�$�'�.�.�w�7�����
�M�M�$��
�����	$��	�	�-�	�8�I�
	
����A�r�w�w�v��7���
��
���(�(�	$��I�I�K��	�	��I�	$�s0�-E.�4F�.	E=�8E=�<E=�F8�!F8�7F8�)�__name__�
__module__�__qualname__�__firstlineno__r�	nomemtestrVrrZrarfrortr~r�r�r�r��unittest�
skipUnlessr�r��__static_attributes__�__classdictcell__��
__classdict__s@r+rMrMbs�����
���.��.�(�*��*�@�
*��
*�
.�:�":�2:(�xD�2�(9�9�����n�-� 8�.� 8r-rMc�(`�\sQsQsnQsQsUsP!)�TestInteractiveModeSyntaxErrors�c��[[Q22oUO2QPo,QNoUOV#2P!)zJ        def f():
            print(0)
            return yield 42
        ���)z    return yield 42z           ^^^^^�SyntaxError: invalid syntax)rKrrlrY)rSrJrmrns&   r+�*test_interactive_syntax_error_correct_line�JTestInteractiveModeSyntaxErrors.test_interactive_syntax_error_correct_line�sF��(��1�*
���!�+�+�-�b��4��
��
	
����9r-r�)r�r�r�r�r�r�r�r�s@r+r�r�s����
:�
:r-r�c�`�\sQsQsnQsQsQsQs\O\OQQ	Q
,2Q22sQsUs
P!)�TestAsyncioREPL�c��Qo[2oUOOU2[U2oUO	QU2UOQU2P!)z"1 / 0; print(f'afterwards: {1+1}')�ZeroDivisionErrorz
afterwards: 2)r�rrArrQr�rRs&   r+�#test_multiple_statements_fail_early�3TestAsyncioREPL.test_multiple_statements_fail_early�sG��9�
�� ��	���
�
�j�!��Q����
�
�)�6�2�����&�1r-c�*�[Q2o[2oUOOU2[Q2oUOOU2[	U2oUOUO]2QoUOVTU2P!)z{        from contextvars import ContextVar
        var = ContextVar("var", default="failed")
        var.set("ok")
        zA
        print(f"toplevel contextvar test: {var.get()}")
        �toplevel contextvar test: ok)rr�rrArrYrGrQr�s&     r+�test_toplevel_contextvars_sync�.TestAsyncioREPL.test_toplevel_contextvars_sync�s|����
�
�

� ��	���
�
�j�!���
��	
���
�
�k�"��Q���������q�)�1���
�
�h��1r-c���[Q2o[2oUOOU2Qo]PHoUOOU2QoUOOU2QoUOOU2[
U2oUOUO]2QoUOV�U2P![
c
SQ*
oK�h9h)ze        from contextvars import ContextVar
        var = ContextVar('var', default='failed')
        z#async def set_var(): var.set('ok')
�
zawait set_var()
z0print(f'toplevel contextvar test: {var.get()}')
r�)
rr�rrA�_pyrepl�ModuleNotFoundErrorrrYrGrQ)	rSrTrUrsr��user_input3�user_input4rJr}s	&        r+�test_toplevel_contextvars_async�/TestAsyncioREPL.test_toplevel_contextvars_async�s�����
�
�
� ��	���
�
�j�!�<��	 ��	
���
�
�k�"�)��	���
�
�k�"�I��	���
�
�k�"��Q���������q�)�1���
�
�h��1��#�	 �
�4��K�		 �s�C�	C"�
C"�!C"c��[QQQP	Q5o[U2oUOUO]2UOUQ*Q2P!)z-qr.r/r0:N�Nz>>>)r,rrYrG)rSrUrJs&  r+�test_quiet_mode�TestAsyncioREPL.test_quiet_mode�sC���t�T�9�T�:���Q���������q�)�������U�+r-c��UO[UQQ52o[QQ[OU*P
P	Q5oUO
O
Q2[U2oUOUO]2QUQ*Q0oUOVe2UOV%2UOQ	U2P!)
r�)r5r1z-qmr/)rrrzprint('user code', 'executed')
zFile "r=z	", line 1zuser code executed)�enterContextrEr,rr#rrArrYrGrQ)rS�startup_code�expected_error�startup_envrUrJ�tb_hints&&&    r+�test_pythonstartup_failure�*TestAsyncioREPL.test_pythonstartup_failure�s����'�'��l�=O�P�R��
��9��
�
�[�(���	
��
	
���
�
�8�9��Q���������q�)��;��7�8�	�B���
�
�g�&��
�
�n�-��
�
�*�F�3r-r�)r�r�)zsome invalid syntax
r�)z1/0
rk)r�r�r�r�r�r�r�r�r�force_not_colorized�subTestsr�r�r�r�s@r+r�r��sT����2�2�"2�2,�
� � ����*�D�<�	
��4��!�4r-r��__main__)%rr�r$rr��
contextlibr�	functoolsr�textwrapr�testr�test.supportrrrr	r
�test.support.script_helperrr��ImportError�SkipTestr&rxr,r�rErK�force_not_colorized_test_class�TestCaserMr�r�r��mainr�r-r+�<module>r�sF��
�
��
��%������3���
�
�
�
�=�
>�>�!"�Z�_�_�!"�Z�5F�5F�!"�u�!"�_c�!"�H�Z��y��F���	
�}�	
��	
��	�'�'�Y8��!2�!2�Y8�(�Y8�x	�'�'�:�h�&7�&7�:�(�:�$R4�h�'�'�R4�j�z���M�M�O���a��
�C��s�D�D%�D%�$D%

Youez - 2016 - github.com/yon3zu
LinuXploit