| 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 : |
R
>lqj( c �� � ] PH s ] PHs] PHs] PHs] QHGs ] QHGs ] QH G s ] QH(Gs ] QH0G
s
Q Q\O 2 s Q Q \O 2 s Q
Q\O 2 sP! )� )�patch)�dedent)�force_not_colorized)�InteractiveColoredConsole)�_more_linesc � ` � \ sQ s]
s n Q sQ s\Q 2 sQ sQ s Q s
\Q 2 s\Q 2 sQ s
Q
sQ sQ sQ
sQsU sP! )�TestSimpleInteractc �X � - o[ Q 2 o[ UQQ5 o[ O 2 o[ O
[ Q2 9^tt^ 2 o[ O
[ QUO Q5 9^tt^ 2 o[ O U2 9^tt^ 2 UO UQQQ5 oPPP2 PPP2 PPP2 U O W2 WO 2 P! ) % f h KC9 h ) % f h KN9 h ) % f h KY9 h)z� class A:
def foo(self):
pass
class B:
def bar(self):
pass
a = 1
a
�<stdin>��filename�showsyntaxerror� runsource)�wraps�single�r �_symbol)r r �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_statements s� � �� ��
�
�� ,�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[ Q 2 o[ UQQ5 o[ O 2 o[ O
U2 9^tt^ 2 UO
UQQQ5 oPPP2 U O W2 U O UO 2 Q2 P! ) % f h KC9 h)z8 b = 1
b
a = 1
a
r
r r r z1
)
r r r r r r r r �assertEqual�getvalue�r r r r r r 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 � [ 2 o[ Q 2 o[ O 2 o[ O
U2 9^tt^ 2 UO
U2 PPP2 U O QUO 2 2 U O QUO 2 2 P! ) % f h KR9 h)zQ raise Exception('foobar')
print('spam', 'eggs', sep='&')
zException: foobarz spam&eggs)
r r r r r �redirect_stderrr �assertInr&