| 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 : |
R
>lqj�� c � � ] PH s ] PHs] PHs] QHGs Q Q\O
2 s Q Q\O
2 s Q Q\\O
2 s Q Q \2 s Q
Q\2 s
Q Q
\2 s Q Q\2 s Q Q\2 s
Q Q\2 s Q Q\2 s Q Q\2 s\Q6X c \O$ 2 P! P! )� )�ExceptionIsLikeMixinc �: ` � \ sQ s]s n Q sQ sQ sQ sQsU s P! )�TestInvalidExceptStarc � � , QNoSF D6 oU O [ 2 9^tt^ 2 [ UQQ2 PPP2 J8 P! ) % f h JM 9 h)�:try: pass
except ValueError: pass
except* TypeError: pass
�<string>�exec)r z:try: pass
except* ValueError: pass
except TypeError: pass
z?try: pass
except ValueError as e: pass
except* TypeError: pass
z?try: pass
except* ValueError as e: pass
except TypeError: pass
z?try: pass
except ValueError: pass
except* TypeError as e: pass
z?try: pass
except* ValueError: pass
except TypeError as e: pass
z0try: pass
except ValueError: pass
except*: pass
z0try: pass
except* ValueError: pass
except: pass
)�assertRaises�SyntaxError�compile)�self�errors�errs & �*C:\Python315\\Lib\test\test_except_star.py�1test_mixed_except_and_except_star_is_syntax_error�GTestInvalidExceptStar.test_mixed_except_and_except_star_is_syntax_error sD � �
�� �C��"�"�;�/�/���Z��0� 0�/� �/�/�/�s �A �A
�A
c �� � U O [ 2 9^tt^ 2 [ Q 2 g , 9[ 9d oPo=ML Po=M ML M49e Lt h 9 hPPP2 P! ) % f h P! 9 h)�blah)r � TypeError�OSError�ExceptionGroup�r �es & r �7test_except_star_ExceptionGroup_is_runtime_error_single�MTestInvalidExceptStar.test_except_star_ExceptionGroup_is_runtime_error_single sI � �
�
�
�y�
)�
)�
��f�o�%��
�N�
���
��� *�
)�
)�
)�s+ �A �,�A�A�
A�A � A1 �)A1 c � � U O [ 2 9^tt^ 2 [ Q [ ]*2 ,2 g , 9[ [ 1 9d MLM ML M49e Lt h 9 hPPP2 P! ) % f h P! 9 h��eg)r r r �
ValueError�r s &r �6test_except_star_ExceptionGroup_is_runtime_error_tuple�LTestInvalidExceptStar.test_except_star_ExceptionGroup_is_runtime_error_tuple sX � �
�
�
�y�
)�
)�
�$�T�J�r�N�+;�<�<��
�Y��/�
���
��� *�
)�
)�
)�s, �A+�7�A�
A�A�A+�+A< �4A< c � � U O [ 2 9^tt^ 2 [ g , 9]* 9d MLM ML M49e Lt h 9 hPPP2 L ) % f h L9 hS O [ 2 9^tt^ 2 [ g , 9[ ]*1 9d MLM ML M49e Lt h 9 hPPP2 P! ) % f h P! 9 h��* )r r r r s &r �'test_except_star_invalid_exception_type�=TestInvalidExceptStar.test_except_star_invalid_exception_type% s� � �
�
�
�y�
)�
)�
� � ��
�B�
���
��� *�
)�
)�
)�� �
�
�y�
)�
)�
� � ��
�Z��$�
���
��� *�
)�
)�
)�sY �A�'�A�
A�A�A�A �A � B8�B�B+�
B+�%B+�&B8�8C �C � )
�__name__�
__module__�__qualname__�__firstlineno__r r r r% �__static_attributes__�__classdictcell__��
__classdict__s @r r r s �� � �1� ��� � r c �J ` � \ sQ s]3s n QsQ sQ sQ sQ sQ s Q s
QsU sP! ) �(TestBreakContinueReturnInExceptStarBlockzC'break', 'continue' and 'return' cannot appear in an except\* blockc �� � U O [ U O 2 9^tt^ 2 [ [ O
U2 Q Q2 PPP2 P! ) % f h P! 9 h)r r )�assertRaisesRegexr
�MSGr �textwrap�dedent)r �srcs &&r �
check_invalid�6TestBreakContinueReturnInExceptStarBlock.check_invalid7 s= � �
�
#�
#�K����
:�
:��H�O�O�C�(�*�f�=� ;�
:�
:�
:�s �"A�A' �A' c �n � U O Q 2 U O Q2 U O Q2 P! )zy
try:
raise ValueError
except* Exception as e:
break
z�
for i in range(5):
try:
pass
except* Exception as e:
if i == 2:
break
a
for i in range(5):
try:
pass
except* Exception as e:
if i == 2:
break
finally:
pass
return 0
�r9 r s &r �test_break_in_except_star�BTestBreakContinueReturnInExceptStarBlock.test_break_in_except_star; s? � ����
� �
���
� �
���
� r0 c �n � U O Q 2 U O Q2 U O Q2 P! )z�
for i in range(5):
try:
raise ValueError
except* Exception as e:
continue
z�
for i in range(5):
try:
pass
except* Exception as e:
if i == 2:
continue
a
for i in range(5):
try:
pass
except* Exception as e:
if i == 2:
continue
finally:
pass
return 0
r<