| Server IP : 121.121.20.254 / Your IP : 216.73.217.109 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 : |
R
>lqj#� c �Z � Q s ] PHs] PHs] PHs] PHs] PHs] PHs] PH s] QH$G
s
Q sQsQs
QsQsQsQsQ sQ
sQsQsQ
sQsQsQs Q Q\
\O4 2 s Q Q\2 s Q Q\2 s Q Q\O4 2 s Q Q\2 s\ Q6X c \OB 2 P! P! )zTests for ast.unparse.)�ASTTestMixinc � � [ O U 2 9^tt^ 2 oUO 2 ttPPP2 ! ) % f h P! 9 h)zjRead and return the contents of a Python source file (as a
string), taking into account the file encoding.)�tokenize�open�read)�filename�streams & �&C:\Python315\\Lib\test\test_unparse.py�read_pyfiler
s- � �
���x� � �F��{�{�}�
!� � � �s �;�A �A zQdef f():
for x in range(10):
break
else:
y = 2
z = 3
zIdef g():
while True:
break
else:
y = 2
z = 3
zQfrom . import fred
from .. import barney
from .australia import shrimp as prawns
zzdef f():
x = 1
def g():
nonlocal x
x = 2
y = 7
def h():
nonlocal x, y
zOtry:
1 / 0
except ZeroDivisionError as e:
raise ArithmeticError from e
z@f1(arg)
@f2
class Foo: pass
z=if cond1:
suite1
elif cond2:
suite2
else:
suite3
z,if cond1:
suite1
elif cond2:
suite2
zctry:
suite1
except ex1:
suite2
except ex2:
suite3
else:
suite4
finally:
suite5
zetry:
suite1
except* ex1:
suite2
except* ex2:
suite3
else:
suite4
finally:
suite5
zwith f():
suite1
zwith f() as x:
suite1
z$with f() as x, g() as y:
suite1
c �R ` � \ sQ s]�s n Q s\1Q ksQQ ksQQ ksQQ ks Qs
U sP! )�ASTTestCasec �$ � U O VQ 5 9^tt^ 2 [ O U1- U@ o[ O U2 o[ O U1- U@ oU O V52 PPP2 P! ) % f h P! 9 h))�code1�ast_parse_kwargs)�subTest�ast�parse�unparse�assertASTEqual)�selfr
�kwargs�ast1�code2�ast2s &&, r �check_ast_roundtrip�ASTTestCase.check_ast_roundtrip� se � �
�\�\��\�
?�
?��9�9�U�-�f�-�D��K�K��%�E��9�9�U�-�f�-�D�����+� @�
?�
?�
?�s �AA>�>B �B c � � U O UQ 5 9^tt^ 2 U O U[ O U2 PPP2 P! ) % f h P! 9 h))�node)r �assertRaisesr r )r r �raisess &&&r �
check_invalid�ASTTestCase.check_invalid� s8 � �
�\�\�t�\�
$�
$����f�c�k�k�4�8� %�
$�
$�
$�s �"A�A �A c �z � S9% f So[ O [ O U1- U@ 2 oV1! �N)r r r �r r
r r s &&&,r �
get_source�ASTTestCase.get_source� s1 � ���������C�I�I�e�6�v�6�7���|�� c �� � U O V1- U@ v qU O VQ 5 9^tt^ 2 U O V!2 PPP2 P! ) % f h P! 9 h�)r
r )r$ r �assertEqualr# s &&&,r �check_src_roundtrip�ASTTestCase.check_src_roundtrip� sE � ����u�>�v�>���
�\�\��\�
3�
3����U�*� 4�
3�
3�
3�s �A�A �A c � � U O V2 v qU O VQ 5 9^tt^ 2 U O V!2 PPP2 P! ) % f h P! 9 hr( )r$ r �assertNotEqual)r r
r s &&&r �check_src_dont_roundtrip�$ASTTestCase.check_src_dont_roundtrip� s@ � ����u�4���
�\�\��\�
3�
3�����-� 4�
3�
3�
3�s �A�A �A � r"