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 :  C:/Python315/Lib/test/test_pyrepl/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_pyrepl/__pycache__/test_interact.cpython-315.opt-2.pyc
R
>lqj(c���]PHs]PHs]PHs]PHs]QHGs]QHGs]QH G	s	]QH(Gs]QH0G
s
QQ\O2sQQ	\O2sQ
Q\O2sP!)�)�patch)�dedent)�force_not_colorized)�InteractiveColoredConsole)�_more_linesc�`�\sQs]
snQsQs\Q2sQsQs	Qs
\Q2s\Q2sQ	s
Q
sQsQsQ
sQsUsP!)�TestSimpleInteractc�X�-o[Q2o[UQQ5o[O2o[O
[Q29^tt^2o[O
[QUOQ59^tt^2o[OU29^tt^2UOUQQQ5oPPP2PPP2PPP2UOW2WO2P!)%fhKC9h)%fhKN9h)%fhKY9h)z�        class A:
            def foo(self):


                pass

        class B:
            def bar(self):
                pass

        a = 1
        a
        �<stdin>��filename�showsyntaxerror�	runsource)�wraps�single�r�_symbol)rr�io�StringIOr�objectr�
contextlib�redirect_stdout�push�assertFalse�assert_not_called)�self�	namespace�code�console�fr
r�mores&       �3C:\Python315\\Lib\test\test_pyrepl\test_interact.py�test_multiple_statements�+TestSimpleInteract.test_multiple_statementss����	��
�

��,�I�	�J���K�K�M���L�L�2�4E�F�F�/��L�L�2�K�w�GX�GX�Y�Y�]f��&�&�q�)�)��<�<��y�(�<�K�D�
*�
Z�
G�
	
������)�)�+�	
*�)��
Z�Y��
G�F�sN�0D�D	�#C3
�8D	�D�3D�<D�>D	�D
�D
�D�D)	�"D)	c�d�-o[Q2o[UQQ5o[O2o[O
U29^tt^2UO
UQQQ5oPPP2UOW2UOUO2Q2P!)%fhKC9h)z8        b = 1
        b
        a = 1
        a
        r
rrrz1
)
rrrrrrrr�assertEqual�getvalue�rrrrrr s&     r!�test_multiple_statements_output�2TestSimpleInteract.test_multiple_statements_output*s����	���
��,�I�	�J���K�K�M��
�
'�
'��
*�
*��<�<��y�(�<�K�D�+�������������u�-�+�
*�s�B�B/	�(B/	c�r�[2o[Q2o[O2o[O
U29^tt^2UO
U2PPP2UOQUO22UOQUO22P!)%fhKR9h)zQ        raise Exception('foobar')
        print('spam', 'eggs', sep='&')
        zException: foobarz	spam&eggs)
rrrrr�redirect_stderrr�assertInr&�assertNotIn)rrrrs&   r!�#test_multiple_statements_fail_early�6TestSimpleInteract.test_multiple_statements_fail_early9s~��+�-����
��
�K�K�M��
�
'�
'��
*�
*����d�#�+��
�
�)�1�:�:�<�8�����a�j�j�l�3�+�
*�s�
B&�&B6	�/B6	c�R�-oPo[UQQ5o[O2o[OU29^tt^2UOUQQQ5oPPP2UO
W2UOUO2P2P!)%fhKC9h)�r
rrr)	rrrrrrrr%r&r's&     r!�
test_empty�TestSimpleInteract.test_emptyFsz���	���+�I�	�J���K�K�M��
�
'�
'��
*�
*��<�<��y�(�<�K�D�+�������������r�*�+�
*�s�B�B&	�B&	c���[2oQo[OUQ29^tt^2oUOU2UO	2PPP2P!)%fhP!9h)�print('Hello, world!')�runcode)rrrr�assert_called_once)rr�source�mock_runcodes&   r!�%test_runsource_compiles_and_runs_code�8TestSimpleInteract.test_runsource_compiles_and_runs_codePsK��+�-��)��
�\�\�'�9�
-�
-�����f�%��+�+�-�.�
-�
-�
-�s�"A�A*	�"A*	c��[2oQo[O2o[OU29^tt^2UOU2oPPP2UO
W2P!)%fhK#9h)r5)rrrrrrr�rrr8r�results&    r!�7test_runsource_returns_false_for_successful_compilation�JTestSimpleInteract.test_runsource_returns_false_for_successful_compilationWsW��+�-��)���K�K�M��
�
'�
'��
*�
*��&�&�v�.�F�+����� �+�
*�s�A.�.A>	�7A>	c�B�[2oQo[O2o[OU29^tt^2UOU2oPPP2UO
W2UOQUO22P!)%fhKC9h)�print('Hello, world!'�SyntaxError�	rrrrr+rrr,r&r=s&    r!�3test_runsource_returns_false_for_failed_compilation�FTestSimpleInteract.test_runsource_returns_false_for_failed_compilation_sk��+�-��(���K�K�M��
�
'�
'��
*�
*��&�&�v�.�F�+����� ��
�
�m�Q�Z�Z�\�2�+�
*�s�B�B	�B	c�D�[2oQo[O2o[OU29^tt^2UOU2oPPP2UO
W2QoUOVSO22P!)%fhKD9h)zdef f(x, x): ...z`
    def f(x, x): ...
             ^
SyntaxError: duplicate parameter 'x' in function definitionrD)rrr8rr>�rs&     r!�)test_runsource_show_syntax_error_location�<TestSimpleInteract.test_runsource_show_syntax_error_locationisr��+�-��#���K�K�M��
�
'�
'��
*�
*��&�&�v�.�F�+����� �
?��	
�
�
�a����&�+�
*�s�B�B	�B	c��[2oQo[OUQ29^tt^2oUOU2UO	2PPP2[Q2o[OUQ29^tt^2oUOU2UO	2PPP2P!)%fhKf9h)%fhP!9h)rBr
zN        match 1:
            case {0: _, 0j: _}:
                pass
        )rrrrr7r)rrr8�mock_showsyntaxerrors&   r!�8test_runsource_shows_syntax_error_for_failed_compilation�KTestSimpleInteract.test_runsource_shows_syntax_error_for_failed_compilationws���+�-��(��
�\�\�'�#4�
5�
5�9M����f�%� �3�3�5�6���
��
�\�\�'�#4�
5�
5�9M����f�%� �3�3�5�6�
5�6�
5��6�
5�
5�s#�"B-�"C�-B=	�6B=	�C	�	C	c	��[2oQo[O2o[OU29^tt^2[O
U29^tt^2UO
U2oPPP2PPP2UOW2UOQUO22P!)%fhKK9h)%fhKV9h)z
z,source code string cannot contain null bytes)
rrrrrr+rrr,r&r=s&    r!�"test_runsource_survives_null_bytes�5TestSimpleInteract.test_runsource_survives_null_bytes�s���+�-�����K�K�M��
�
'�
'��
*�
*�J�,F�,F�q�,I�,I��&�&�v�.�F�-J�
*����� ��
�
�D�a�j�j�l�S�-J�,I��
*�
*�s0�C� B5	�2C�5C
�>C
�C�C	�C	c�T�[2o[Q2o[O2o[O
U29^tt^2UO
U2oPPP2UOW2UOUO2Q2P!)%fhKC9h)z:        x: int = 1
        print(__annotate__(1))
        z{'x': <class 'int'>}
�
rrrrrrrrr%r&r=s&    r!�test_no_active_future�(TestSimpleInteract.test_no_active_future�sz��+�-����
��
�K�K�M��
�
'�
'��
*�
*��&�&�v�.�F�+����� ��������'?�@�+�
*���
B�B'	� B'	c�T�[2o[Q2o[O2o[O
U29^tt^2UO
U2oPPP2UOW2UOUO2Q2P!)%fhKC9h)zo        from __future__ import annotations
        def g(x: int): ...
        print(g.__annotations__)
        z
{'x': 'int'}
rSr=s&    r!�test_future_annotations�*TestSimpleInteract.test_future_annotations�sz��+�-����
��

�K�K�M��
�
'�
'��
*�
*��&�&�v�.�F�+����� ��������'7�8�+�
*�rVc�`�[2o[O2o[OU29^tt^2UOQ2oUOQ2oPPP2UO
W2UOUO2Q2P!)%fhKC9h)z&from __future__ import barry_as_FLUFL
zprint("black" <> 'blue')
zTrue
)	rrrrrrrr%r&)rrrr>s&   r!�test_future_barry_as_flufl�-TestSimpleInteract.test_future_barry_as_flufl�s|��+�-���K�K�M��
�
'�
'��
*�
*��&�&�'P�Q�F��&�&�'G�H�F�+�	
���� ��������x�0�	+�
*�s�#B�B-	�&B-	�)�__name__�
__module__�__qualname__�__firstlineno__r"r(rr.r2r:r?rErIrMrPrTrXr[�__static_attributes__�__classdictcell__��
__classdict__s@r!rr
sz����,�8
.��
4��
4�+�.�!��3��3��'��'�
6�T�
A�9�1�1�rc�d`�\sQs]�snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsUsP!)
�
TestMoreLinesc�^�-oQo[UQQ5oUO[V222P!)zif foor
r�rrr�rrrrs&   r!�test_invalid_syntax_single_line�-TestMoreLines.test_invalid_syntax_single_line�s+���	���+�I�	�J������W�3�4rfc�^�-oPo[UQQ5oUO[V222P!)r1r
rrjrks&   r!�test_empty_line�TestMoreLines.test_empty_line�s+���	���+�I�	�J������W�3�4rfc�^�-oQo[UQQ5oUO[V222P!)zfoo = 1r
rrjrks&   r!�test_valid_single_statement�)TestMoreLines.test_valid_single_statement�s+���	���+�I�	�J������W�3�4rfc�p�-o[Q2o[UQQ5oUO[V222P!)zF        foo = [
            1,
            2,
            3,
        ]r
r�rrrrrks&   r!� test_multiline_single_assignment�.TestMoreLines.test_multiline_single_assignment�s7���	��
���,�I�	�J������W�3�4rfc�p�-o[Q2o[UQQ5oUO[V222P!)z?        def foo():
            '''docs'''

            return 1r
r�rr�
assertTruerrks&   r!�test_multiline_single_block�)TestMoreLines.test_multiline_single_block�s5���	�����
,�I�	�J������G�2�3rfc�^�-oQo[UQQ5oUO[V222P!)zfoo = 1;bar = 2r
rrjrks&   r!�$test_multiple_statements_single_line�2TestMoreLines.test_multiple_statements_single_line�s+���	� ��+�I�	�J������W�3�4rfc�p�-o[Q2o[UQQ5oUO[V222P!)z$        import time

        foo = 1r
rryrks&   r!r"�&TestMoreLines.test_multiple_statements�s5���	�����,�I�	�J������G�2�3rfc�p�-o[Q2o[UQQ5oUO[V222P!)z|        from dataclasses import dataclass

        @dataclass
        class Point:
            x: float
            y: floatr
rryrks&   r!�test_multiple_blocks�"TestMoreLines.test_multiple_blocks�s5���	�����,�I�	�J������G�2�3rfc�p�-o[Q2o[UQQ5oUO[V222P!)z�        from dataclasses import dataclass

        @dataclass
        class Point:
            x: float
            y: float
        r
rrurks&   r!�"test_multiple_blocks_empty_newline�0TestMoreLines.test_multiple_blocks_empty_newline�s7���	���
��,�I�	�J������W�3�4rfc�^�-oQo[UQQ5oUO[V222P!)zYfrom dataclasses import dataclass

@dataclass
class Point:
    x: float
    y: float
    r
rrjrks&   r!�%test_multiple_blocks_indented_newline�3TestMoreLines.test_multiple_blocks_indented_newlines2���	�
�	
�,�I�	�J������W�3�4rfc�^�-oQo[UQQ5oUO[V222P!)zif foo:r
r)rrzrrks&   r!�test_incomplete_statement�'TestMoreLines.test_incomplete_statements)���	���+�I�	�J������G�2�3rfr])r^r_r`rarlrorrrvr{r~r"r�r�r�r�rbrcrds@r!rhrh�sA����5�5�5�	5�4�5�4�
4�5�5�4�4rfrhc�(`�\sQsQsnQsQsUsP!)�TestWarnings�c�<�[2o[Q2o[OP	Q59^tt^2o[OQ2UOU2PPP2[
QW22oUOU]2P!)%fhK59h)zq        def f():
            try:
                return 1
            finally:
                return 2
        )�record�alwaysc3�^�SF �DoQ[UO27w�	J 	P!3h)z'return' in a 'finally' block)�str�message)�.0�ws& r!�	<genexpr>�4TestWarnings.test_pep_765_warning.<locals>.<genexpr>+s#��#���#��4�s�1�9�9�~�E�#�s�&-)rr�warnings�catch_warnings�simplefilterr�sumr%)rrr�caught�counts&    r!�test_pep_765_warning�!TestWarnings.test_pep_765_warnings���,�-����
���
$�
$�D�
1�
1�V��!�!�(�+����d�#�2��%�#�%�%�������"�
2�
1�s�(B�B	�B	r])r^r_r`rar�rbrcrds@r!r�r�s����#�#rfr�)rrr��unittest�
unittest.mockr�textwrapr�test.supportr�_pyrepl.consoler�_pyrepl.simple_interactr�TestCaserrhr�r]rfr!�<module>r�s\���	�����,�5�/�b1��*�*�b1�Jb4�H�%�%�b4�J#�8�$�$�#rf

Youez - 2016 - github.com/yon3zu
LinuXploit