403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.26
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_exceptions.cpython-315.pyc
R
>lqj[~c���]PHs]PHs]PHs]PHs]PHs]PHs]PHs]QHGs]QH$G
s
]QH,Gs]QH4GsGsGsGsGsGsGsGs]QHXGs]QH`GsGs]QHlGs]QHtGs]PH~s]Q	H~G s Q
Q\"2s#QQ
\"2s$QQ\"2s%QQ\OL2s'QQ\OL2s(QQ\OL2s)QQ\OL2s*Qs+QQ\OL2s,\OZQQ\OL22s.QQ\OL2s/QQ \OL2s0\1Q!6Xc\Od2P!P!\!c	PsQ"s CKh9h)#�)�BOM_UTF8)�product)�dedent)�captured_stderr�check_impl_detail�cpython_only�
gc_collect�
no_tracing�
script_helper�SuppressCrashReport�force_not_colorized)�
import_module)�TESTFN�unlink)�check_warnings)�support)�INT_MAXc�(`�\sQs] snQsQsUsP!)�NaiveExceptionc��VmP!�N��x��selfrs&&�)C:\Python315\\Lib\test\test_exceptions.py�__init__�NaiveException.__init__!�����r��__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__�__classdictcell__��
__classdict__s@rrr s�����rrc�,`�\sQs]$snQsQsQsUsP!)�SlottedNaiveExceptionc��VmP!rrrs&&rr�SlottedNaiveException.__init__&rrr)r!r"r#r$�	__slots__rr%r&r's@rr*r*$s�����I��rr*c�(`�\sQs])snQsQsUsP!)�BrokenStrExceptionc��[Q2g)zstr() is broken��	Exception�rs&r�__str__�BrokenStrException.__str__*s���)�*�*r��r!r"r#r$r4r%r&r's@rr/r/)s����+�+rr/c�`�\sQs]0snQsQsQsQsQWQksQs	Qs
\O\
\O6�Q2\O"Q	2\O$\
]P
Q
5Q222s\Q2sQ
s\O.\O0Q6HQ2Q2sQsQsQsQsQsQsQs Qs!Qs"Qs#Qs$Qs%\&Q2s'Qs(Qs)Q s*Q!s+Q"s,Q#s-Q$s.Q%s/Q&s0Q's1Q(s2Q)s3Q*s4Q+s5Q,s6Q-s7Q.s8Q/s9Q0s:Q1s;Q2s<Q3s=Q4s>Q5s?Q6s@Q7sAQ8sBQ9sCQ:sDQ;sEQ<sF\&Q=2sG\O�2\O�2\\O"Q	2Q>2222sJ\O�2\Q?22sK\\O\LPIQ@2\M\O�2QA2222sO\O�2QB2sP\O�QC2sR\\O\LPIQ@2QD22sS\\O\LPIQ@2QE22sT\\O\LPIQ@2QF22sU\&QG2sVQHsWQIsXQJsYQKsZ\O�QL2s[QMs\QNs]QOs^\O.P	QP2QQ2s_QRs`\O\LPIQ@2QS2saQTsb\O�QU2scQVsdUseP!)X�ExceptionTestsc�p�UOVQ59^tt^2UQ2gSco[S2oPo=LPo=hh9hSQ2gSco[S2oPo=LPo=hh9hSOXE2SOSOS2PPP2P!)%fhP!9h))�exc�excname�spam)�subTest�str�assertEqualr!)rr;r<�err�buf1�buf2s&&&   r�raise_catch�ExceptionTests.raise_catch2s���
�\�\�c�\�
3�
3�
 ��&�k�!���
 ��3�x���
 ��
 ��&�k�!���
 ��3�x���
 �����T�(����S�\�\�7�3�4�
3�
3�
3�s]�B$�&�A�A�=�B$�A�B$�A�A*�A*�A%� B$�%A*�*0B$�$B5	�-B5	c���UO[Q2UO[[[Q2UO[
Q2[
[QQQ5oUO2[
[QQQ5o[Oo]PH*oUOQ2U[m	UO2[[2UO[Q2UO[[Q	Q2UO[Q
2UO[[Q2UO[ Q2,oUO[ UO"]
2UO[$Q
2-oUO[$UO"Q2UO[&Q2UO[(Q2UO[*Q2[,oUO[.Q2]o[1]�2FDoVD*
oJ
	UO[2Q2UO[4Q2UO[6Q2[9Q2UO[:Q2UO[<Q2[?QQQ2UOAQ2UO[BQ2UO[DQ2UO[D[OF]2UO[HQ2,Q$*UO[JQ 2UO[J[LQ%2UO[NQ!2]]*oUO[PQ"2]]*oUO[RQ#2P![
cCKh9hS[m	SO2[[2h9h[*cCKh9h[6cCK�h9h[<cCKjh9h[HcCKh9h[NcK�h9h[PcoPo=K�Po=hh9h)&�AttributeError�undefined_attribute�EOFError�w�utf-8��encoding�rr�OSErrorzthis file does not exist�ImportError�undefined_module�
IndexError�KeyError�key�KeyboardInterrupt�MemoryError�	NameError�
OverflowError�RuntimeError�RecursionError�SyntaxErrorz/
�IndentationError�TabErrorz"try:
	1/0
    	1/0
finally:
 pass
�<string>�execzTabError not raised�SystemError�
SystemExit�	TypeError�
ValueError�ZeroDivisionErrorr2�StopAsyncIterationr6i)*rDrG�assertRaises�getattr�sysrI�openr�close�stdin�marshal�loadsrrOrP�
__import__rR�__getitem__rSrUrVrW�undefined_variablerX�rangerYrZr[r_r\r]�compile�failr`ra�exitrbrc�chrrdr2re)r�fp�	savestdinrlr�dummy�es&      r�testRaising�ExceptionTests.testRaising?sU������)9�:����.�'�3�8M�N�����:�.�
�&�#��
0��
���
�
�&�#��
0���I�I�	�		�
���
�
�c�"�"�C�I��H�H�J��6�N�����)�,����'�4�)C�S�I�����m�4����+�z�3E�F�����\�2������*�a�m�m�R�8�����:�.������(�A�M�M�5�9����*�,?�@�����m�4�����K�0�#�Q�	
�����8�
���3�Z�E�
�F�A� �	
����~�6�����)9�:�����m�4�
�%�[�	
���)�+=�>�����:�.�
�@���)��i�i�-�.�����m�4�����\�2����*�c�h�h��2�����K�0�
�"�W�	
����\�2����*�c�6�2����*�,?�@��1��Q�	
����K�0��1��Q�	
���+�-A�B��K�
��
��"�C�I��H�H�J��6�N��,��$���� �D� ���������$���!�&�$�&���#�t��#�s��N1�*O2�%P�
P�!	P(�1	P:�	Q�1	O�;O�<O�?O�O�,O/�2	P�<P�P�	P�P�P�	P%� P%�$P%�(	P7�2P7�6P7�:	Q�Q�Q�	Q �Q �Q c�P`�U1QkoQoUUQ2UQQ2UQQ2P!)c	�N:�ROVQ59^tt^2[UQQ2ROQ2PPP2P![c?oSOS6wc$ROQS8QSO802Po=KNPo=hh9h)%fhP!9h))�src�msg�
<fragment>r_�"failed to get expected SyntaxError�	expected �, got )r>rrrsr[r)r~rryrs&& �r�ckmsg�4ExceptionTests.testSyntaxErrorMessage.<locals>.ckmsg�s~������#��/�/�D��C��v�6�
�I�I�B�C�0�/��#�H��u�u��|��	�	�3����"F�G���H��0�/�/�sE�B�
A�B�	B�B�B�##B�B�B�B�B$	�B$	zHif 1:
        try:
            continue
        except:
            passz'continue' not properly in loopz	continue
zf'{6 0}'z+invalid syntax. Perhaps you forgot a comma?r6�rr��ssf  r�testSyntaxErrorMessage�%ExceptionTests.testSyntaxErrorMessage�s3���	D�
��	�a�2�3�
�l�=�>�
�j�G�Hrc�`�[1U1QkkoQoUUQ2QoUUQ2QoUUQ2QoUUQ2QoUUQ2QoUUQ	2Q
oUUQ	2QoUUQ[2Q
oUUQ[2P!)c��:�[UQQ2ROQ2P!ScFoSOS6wc*ROQS8QSO802Po=P!Po=P!Po=hh9h)r�r_r�r�r�)rrrsr)r~r�	exceptionryrs&&& �rr��:ExceptionTests.testSyntaxErrorMissingParens.<locals>.ckmsg�s`���
@���\�6�2�
�	�	�>�?��	�
D��5�5�C�<��I�I�s�A�E�E�B�C�C� ��
D�s�
$�A0�A0�A+�#A+�+A0zprint "old style"z@Missing parentheses in call to 'print'. Did you mean print(...)?zprint "old style",zprint f(a+b,c)zexec "old style"z>Missing parentheses in call to 'exec'. Did you mean exec(...)?z
exec f(a+b,c)zprint (a+b,c) $ 42zinvalid syntaxzexec (a+b,c) $ 42zif True:
print "No indent"z9expected an indented block after 'if' statement on line 1z6if True:
        print()
	exec "mixed tabs and spaces"z2inconsistent use of tabs and spaces in indentation)r[r\r]r�sf  r�testSyntaxErrorMissingParens�+ExceptionTests.testSyntaxErrorMissingParens�s����&1�	@�
$��
�a�S�T�$��
�a�S�T���
�a�S�T�"��
�a�Q�R���
�a�Q�R�

!��
�a�!�"���
�a�!�"�
.��
�a�L�N^�_�K��
�a�E�x�Prc	�~�UOVUQ59^tt^2UO[29^tt^2o[UQQ2PPP2UO	WO
OU2UO	UO
OU2Ud'UO	UO
OU2Ud'UO	UO
OU2UO
Od�[U[2%fUOUQ2oUOQ2U]*
*oU]6XcUOQ2oUO!V�O
O2PPP2P!)%fhCKW9h)%fhP!9h))�source�lineno�offsetr�r_�replace�
u)r>rfr[rrr@r�r�r��
end_lineno�
end_offset�text�
isinstancer?�decode�split�removeprefix�assertIn)	rr~r�r�r�r�rM�cm�lines	&&&&&&&  r�check�ExceptionTests.check�s=��
�\�\��F�\�
C�
C��"�"�;�/�/�2���\�6�2�0����R�\�\�0�0�&�9����R�\�\�0�0�&�9��%�� � ����!8�!8�*�E��%�� � ����!8�!8�*�E��|�|� � �,�!�#�s�+�+��*�*�X�y�9�C��y�y���v�a�x�0���Q�;��,�,�X�6�D��
�
�d�L�L�$5�$5�6�!D�
C�/�/�/��D�
C�
C�sM�F+�F	�	AF+�!)F+�=F+�	F+�7F+�6F+�F(
� F(
�"	F+�+F<	�4F<	c�4�UOoUQ]]2P!)z"\
"(1 for c in I,\
\)r��rr�s& r�)test_error_offset_continuation_characters�8ExceptionTests.test_error_offset_continuation_characters�s���
�
��
�*�A�q�1rc��UOoUQ]]
2UQ]]2UQ]]
2UQ]]2UQ]]2UQ]]QQ5UQ]]2UQ	]]2UQ
]]2UQ]]2UQ]]2UQ
]]2UQ]]2UQ]]2UQ]]2UQ]]2UQ]]	2U[Q2]]2U[Q2]]2UQ]]2UQ]]2UQ]]]]2UQ]]]]2UQ]]]]2UQ]]]]2UQ]]2UQ]]2UQ]]2UQ]]2UQ]]2UQ ]]2UQ!]]2UQ"]]2UQ#]]2UQ$]]2UQ%]]2UQ&]]2UQ']]2UQ(]]Q)Q5UQ*]	]2UQ+]]2UQ,]]2UQ-]]2UQ.]]2UQ/]]2UQ0]]2UQ1]]
2UQ2O2]]]]
2UQ3]]2UQ4]]2UQ5]]
2UQ6]]&2UQ7]]2UQ8]]2UQ9]]2UQ:]]2UQ;]]2UQ<]]2UQ=]]2UQ>]]2UQ?]]2UQ@]]2UQA]]2UQB]]2UQC]]2P!)Dzdef fact(x):
	return x!
z1 +
z def spam():
  print(1)
 print(2)zPython = "Python" +uPython = "Ṕýţĥòñ" +s+# -*- coding: cp1251 -*-
Python = "ϳ���" +�cp1251rLsPython = "ϳ���" +s


Python = "ϳ���" +sPython = "ϳ���" +zx = "azlambda x: x = 2zf{a + b + c}zile for str(file) in []
]ua = « hello » « world »z[
file
for str(file)
in
[]
]zile for
 str(file) in []]zages = {'Alice'=22, 'Bob'=23}z[          match ...:
            case {**rest1, "after": after}:
              ...
        zm          match ...:
            case {"before": before, **rest2, "after": after}:
              ...
        z
[a b c d e f]zfor x yfff:zf(a for a in b, c)zf(a for a in b if a, c)zf(a, b for b in c)zf(a, b for b in c, d)zclass foo:return 1zdef f():
  continuezdef f():
  breakz4try:
  pass
except:
  pass
except ValueError:
  passztry:
  pass
except*:
  passz6try:
  pass
except*:
  pass
except* ValueError:
  passz(0x+1)zx = 0xIz0010 + 2z
x = 32e-+4zx = 0o9uα = 0xIsα = 0xIs## -*- coding: iso8859-7 -*-
� = 0xIz	iso8859-7s�if 1:
            def foo():
                '''

            def bar():
                pass

            def baz():
                '''quux'''
            z"pass
pass
pass
(1+)
pass
pass
passz(1+)z[interesting
foo()
s#coding: utf8
print('我')
z7f'''
            {
            (123_a)
            }'''ztf'''
            {
            f"""
            {
            (123_a)
            }
            """
            }'''z4f"""


            {
            6
            0="""ub"fooжжж"z!x = [(yield i) for i in range(3)]zdef f():
  from _ import *zdef f(x, x):
  passz3{i for i in range(5) if (j := 0) for j in range(5)}zdef f(x):
  nonlocal xzdef f(x):
  x = 1
  global xz
nonlocal xz def f():
  global x
  nonlocal xz#from __future__ import doesnt_existzfrom __future__ import bracesz#x=1
from __future__ import divisionzfoo(1=2)zdef f():
  x, y: intzfoo(x for x in range(10), 100)zfor 1 in []: passz
(yield i) = 2zdef f(*):
  pass)r�r�encoder�s& r�testSyntaxErrorOffset�$ExceptionTests.testSyntaxErrorOffset�s����
�
��
�+�Q��3�
�g�q�!��
�2�A�r�:�
�#�Q��+�
�;�Q��C�
�L���h�	(�
�2�A�r�:�
�8�!�R�@�
�>��2�F�
�h��1��
���A�&�
�n�a��#�
�,�a��4�
�+�Q��2�
�1�1�a�8�
�,�a��3�
�-�q�!�4�
�f��
���		�
	�f��
���		�
	�o�q�!�$�
�m�Q��"�
�"�A�q�!�R�0�
�'��A�q�"�5�
�"�A�q�!�R�0�
�%�q�!�Q��3�	�"�A�r�*�
�$�a��+�
�!�1�a�(�
�I�1�a�P�
�.��1�5�
�K�Q�PQ�R�	�h��1��
�i��A��
�j�!�Q��
�l�A�q�!�
�i��A��
�n�a��#�
���A�&�
�8�!�Q�"�	$�
�	��B�		�	�8�!�Q�?�
�f�a���
�%�q�!�,�
�C�Q��J�
����	�	����	�	��
��	�	�n�#�#�%�q�!�Q��3�	�1�1�a�8�
�+�Q��3�
�$�a��,�
�C�Q��K�
�'��A�.�
�.��1�5�
�l�A�q�!�
�2�A�q�9�	�3�Q��;�
�-�q�"�5�
�4�a��;�
�j�!�Q��
�%�q�!�,�
�.��1�5�
�!�1�a�(�
�o�q�!�$�
�!�1�a�(rz)Downcasting to int is safe for col_offset�cpu)�memuse�dry_runc��QUQ1*oUO[Q29^tt^2[UQQ2PPP2P!)%fhP!9h)sif True:
%*sspasszParser column offset overflowr�r_)�assertRaisesRegexrXrr)r�sizer~s&& r�testMemoryErrorBigSource�'ExceptionTests.testMemoryErrorBigSourceYsB���$���0��
�
#�
#�M�3R�
S�
S��C��v�.�T�
S�
S�
S�s�A�A	�A	c�T```�QQ[2nQQ2n[O[PIQ2UU1Qk2o[O[PIQ2UU1Qk2o[O[PIQ2UU1Qk2oU2U2U2P!)c�(`�\sQsQsnQsQsUsP!)�9ExceptionTests.testSettingException.<locals>.BadException�fc��[Q2g)zcan't instantiate BadException)rY)�self_s&rr�BExceptionTests.testSettingException.<locals>.BadException.__init__gs��"�#C�D�Drr6r r's@r�BadExceptionr�fs����
E�
Err�c��\sQsQsQsP!)�=ExceptionTests.testSettingException.<locals>.InvalidException�jr6�r!r"r#r$r%r6rr�InvalidExceptionr�j���rr��requires _testcapic�>:�[OR]2ROQ2P![cdoSOO
OoROSOQ2ROSOQ2Po=P!Po=hh9h)��Expected exception�
test_capi1�test_exceptions.py)�	_testcapi�raise_exceptionrsrb�
__traceback__�tb_frame�f_coder@�co_name�assertEndsWith�co_filename)rA�cor�rs  ��rr��7ExceptionTests.testSettingException.<locals>.test_capi1ms~���
0��)�)�,��:��	�	�.�/���
J��&�&�/�/�6�6��� � ����\�:��#�#�B�N�N�4H�I�I��
J�s�.�	B�B�AB�Bc��:�[OR]2ROQ2P![c�oSOO
oSOOoROSOQ2ROSOQ2SOOOoROSOQ2Po=P!Po=hh9h)rr�rr��
test_capi2)
r�r�rsrYr��tb_nextr�r�r@r�r�r��f_back)rA�tbr��co2r�rs    ��rr��7ExceptionTests.testSettingException.<locals>.test_capi2xs����

0��)�)�,��:��	�	�.�/�� �
<��&�&�.�.���[�[�'�'��� � ����Z�8��#�#�B�N�N�4H�I��k�k�(�(�/�/��� � ����l�;�;��

<�s�.�	C$�C$�B C�C$c�V:�RO[[OR]2P!�r�)rfr`r�r�)r�rs��r�
test_capi3�7ExceptionTests.testSettingException.<locals>.test_capi3�s ������k�9�+D�+D�.��
3r)r2�unittest�skipIfr�)rr�r�r�r�r�sf   @@r�testSettingException�#ExceptionTests.testSettingExceptionas����
	E�9�	E�	�	�
����d�*�,@�	A�	0�
B�	0�
����d�*�,@�	A�	0�
B�	0�
����d�*�,@�	A�	3�
B�	3�	�����rc���[UO[[2UO[	[Q22Q2UO[	[QQ22Q2[]	QQ2oUOUO
]	2UOUOP2UO[	U2Q2[]QQ]2oUOUO
]2UOUO]2UOUOQ2UOUOQ2UOUOP2UO[	U2Q2[]QPQ2oUOUO
]2UOUOQ2UOUOQ2UOUOP2UOUOP2UO[	U2Q2[QQ2oUOUO
Q2UOUOP2UOUOQ2UOUOP2UOUOP2P![cP!h9h)	���1001�messagez[Errno 1001] message�foo�barz[Errno 9] foo: 'bar'z[WinError 3] foo: 'bar'z[WinError 1001] foo)�WindowsError�assertIsrOr@r?�errno�winerror�strerror�filename�	filename2rW)rrJs& r�test_WindowsError� ExceptionTests.test_WindowsError�s6��$	0��
�M�M�,��0����S����/��8����S���y�!9�:�3�
5���5�%�(�A����Q�W�W�a�(����Q�Z�Z��.����S��V�%;�<���5�%��+�A����Q�W�W�a�(����Q�Z�Z��+����Q�Z�Z��/����Q�Z�Z��/����Q�[�[�$�/����S��V�%>�?���5�$��-�A����Q�W�W�b�)����Q�Z�Z��.����Q�Z�Z��/����Q�Z�Z��.����Q�[�[�$�/����S��V�%:�;���u�%�A����Q�W�W�e�,����Q�Z�Z��.����Q�Z�Z��/����Q�Z�Z��.����Q�[�[�$�/��E�	��	�s�K�	K�K�K�win32ztest specific to Windowsc���[Q2oQoUO[QU*29^tt^2UOO	U2PPP2P!)%fhP!9h)z:Should fill in unknown error code in Windows error message�ctypeslcs�@zWindows Error 0x%x)r
r�rO�	pythonapi�PyErr_SetFromWindowsErr)rr��codes&  r�test_windows_message�#ExceptionTests.test_windows_message�sP���x�(����
�
#�
#�G�-A�D�-H�
I�
I����4�4�T�:�J�
I�
I�
I�s�A�A+	�#A+	c#�L�[Q5-QQ5-1[Q6-QQ6-1[Q7-QQ7-1[Q8-QQ8-1[Q7-QQ7QQ-1[Q7-QQ7QPQPQPQP-1[Q9-QQ9QPQPQQQQ-1[Q:-QQ9QQQPQQQQ-1[Q;-QQ9QQQQ	-1[Q<-QQ=QQQQ
QQ-1[Q>-QQ?Q]QQQQQP-1[Q5-Q
PQPQPQPQPQPQP-1[Q@-QQ@QPQPQ
QQPQPQPQP-1[QA-QQQQQQAQPQ
QQQQQQQQQ-	1[QB-QPQQBQPQ
QQPQPQPQPQP-	1[Q5-QQ5-1[
QC-QQCQQQQQ]Q Q-1[Q[Q!2]]Q1-QQ[Q!2]]Q1QQQQ!Q]Q Q-1[QD-QQDQQQQ!Q]Q Q-1[QE-QQEQQ"Q Q#Q]Q$]-1[Q7-QQ7Q%Q-1[Q7-QQ7Q%Q-1[Q7[Q&Q'Q(5[Q7Q&Q'Q)51,oUO[Q>-QQ?QQQ*PQ]QQQP-12SFCD|vq#qEUU-U@o[!U2O"O%Q+2%f&UO'[!U2O(Q,2[+U2oSFDNo[-Vh2o	UO'[/U	2[/VX*2U8Q-U8Q.U	8Q/VX*802JP	[01FD�o
[3U
O4]*2FD�oU
O7Vk2oU
O9U2oSFD`o[/[-V�22o
U[6XcUQ'6Xc
[/P2oL[/VX*2oUO'V�Q0U8Q1U802Jb	J�	J�	CJ	P![cCK�h9h[;Q2S8Q3S80[<O>Q45CJ�9h)F�argsr�r�r�r�r�r�r��baz�quux�errnoStr�strErrorStr�filenameStrrr�r�r�r��print_file_and_line�msgStr�	linenoStr�	offsetStr�textStr�endLinenoStr�endOffsetStrr��ascii�a�ordinal not in rangerM�object�start�reason���あ�ouch�endr�name�obj�rr)r�rrr�r�builtins�.z == z, expected z	pickled "z", attribute "z
exc=z, args=)�filer6r�)r�)r�r�)r�r�)r�r�r�)r�r�r�Nr�)r�r�r�)r�r�)r�r�r�)r�r�)r�)r�)r�rrrrr)r�r�rrrrr�print_file_and_lineStr)rrrr�r)rrrr�r)rrr�r
) �
BaseExceptionrarOr[�UnicodeError�UnicodeEncodeError�UnicodeDecodeError�	bytearray�UnicodeTranslateErrorrr*rG�dict�appendr�rW�typer!�endswithr@r"r?rg�repr�picklerq�HIGHEST_PROTOCOL�dumpsrm�printrh�stderr)r�
exceptionListr;r��kwargs�expectedryr��checkArgName�value�p�protocol�new�got�wants&              r�testAttributes�ExceptionTests.testAttributes�so���B��V�b�M�2�
�E�2����7�
�H�b��(�#�
%�
�J���*�%�
'�
��2��(�F�U�3�
5�
�h���(�J��{�T��4��d�4�
5��n�b��.��d�K�$��5�*�u�6�
7��+�R��.��e�[�4��5�*�u�6�
7��9�2��.�*�u�k�6�R�
T�
�@�"��5��m�W�z��m�-�
.��7���,�g���m��m�[�4�A�
B��"�b�5�4��$��T�8�d�H�t��d�$9�D�#B�
C��+�r��+�v��&��u�x��d�H�t�X���t�%�
&�
�G�HJ��K��)��G�'��u�x��m�X���~�|�^�
M�
N��5�68��$��5�'��u�x��d�H�t�X���t�\�4�
9�	
:��2�r�F�R�>�2�
�":�;=��C��g�x�#��1�h�)?�A�
B� �'�9�W�+=�q�!�"8�":�;=��7�I�g�$6��1�+A�C��g�x�'��1�h�)?�A�
B� �":�;=��C��g�x�'��1�h�)?�A�
B�#�$<�b��2��H�h���1�e�a�)�
*��X�r���3��.�
0�
"�H�b���3��.�
0�
�X�t��U�'C��(��U�;�
=�iV
�
�n
	�� � ��@�"��0��-��d��q��-��t�E�F�
�,9�'�C�v�"
@���(��(���A�w�'�'�0�0�1A�B�B��$�$�T�!�W�%7�%7��D���F��$,�L�#�A�4�E��$�$�T�%�[�%)�(�*@�%A�%&��%*�H�,B�&D�E�%-�!��A�$)�!�*<�*<�q�*@�$A���G�G�A�0���g�g�a�j��,4�L�"&�w�s�'A�"B�C�"�n�4���9N�(,�D�z��'+�H�,B�'C�� �,�,�S�$�./��.?�@�-5�%B�"�+,9���	��	��
H���s�g�W�T�H�5�C�J�J�G�G�s$�=%M(�-	M:�(	M7�2M7�6M7�:%N#c�$�[]*2o]5UmUOUOQ2UOUO]52UO	[
[UQ2UO	[
[UQ2UOQ]Q]-2UOUOQ2UOUO]52UOUO]2UOUO]2UOQ]QQQ]#-2UOUOQ2UOUO]#2UOUO]2UOUO]2P!)�*r�br��blah�r3)r���)
r2r5r@r�rfrGrg�__setstate__rr4�rrys& r�
test_setstate�ExceptionTests.test_setstateKs0���b�M������������'��������$����.�'�1�c�:����.�'�1�c�:�	����Q��a�(�)��������'��������$�������a� �������a� �	����R���&�"�=�>��������)��������$�������b�!�������a� rc��[]*2oUO[Q29^tt^2UO]*2PPP2P!)%fhP!9h)r3zstate is not a dictionary)r2r�rbr9r:s& r�test_invalid_setstate�$ExceptionTests.test_invalid_setstate]s;���b�M��
�
#�
#�I�/J�
K�
K�
�N�N�2��L�
K�
K�
K�s�A�A	�A	c��[]2[]2[]21FCD�oUOUQ59^tt^2UO	UQ2UOQ2UO
UOQ,2UO[29^tt^2UO]*2PPP2UO
UOQ,2UOQ2UO
UOQQ,2U;UO	UQ2UOQ2UO
UOQ,2]*UmUO
UO]*2UO[29^tt^2UOQ2PPP2UO
UO]*2PPP2CJ�	P!)%fhCK$9h)%fhKO9h)%fhCJ�9h)r��ry�	__notes__zMy Notez	Your NotezOur Notez
will not work)
rr2rcr>�assertNotHasAttr�add_noter@rBrfrbr:s& r�
test_notes�ExceptionTests.test_notesbsq����"�I�a�L�*�Q�-�@�A������"�"��%�%�a��5��
�
�9�%�� � ����y�k�:��&�&�y�1�1��J�J�r�N�2�� � ����y�k�:��
�
�;�'�� � ����y�+�.F�G��K��%�%�a��5��
�
�:�&�� � ����z�l�;� ���� � ����b�1��&�&�y�1�1��J�J��/�2�� � ����b�1�/#�"�A�2�1�1�� 2�1��+#�"�"�sP�AG3	�G
�1CG3	�G 
�$G3	�G�G�	G3	� G0�)G0�+G3	�3H
�<H
c�:�[]2g[coSOoPo=LPo=hh9h[2O	S2oSOS[2SO
SOS2[]2O	S2oSOS[2SO
SOS2QQ[2oS2O	S2oSOX2SO
SOS2P!)�c��\sQsQsQsP!)�5ExceptionTests.testWithTraceback.<locals>.MyException�r6r�r6rr�MyExceptionrJ�r�rrL)rRr2r�r�with_traceback�assertIsInstancer@)rryr�rLs&   r�testWithTraceback� ExceptionTests.testWithTraceback}s���	!��Q�-����	!����B��	!��
�O�*�*�2�.�����a��/�������"�-��q�M�(�(��,�����a��,�������"�-�	�)�	�
�M�(�(��,�����a�-�������"�-���	/�/�*�/c��][2mUOQ2P![c'oSO	Q[S22Po=P!Po=hh9h)��No exception raisedz!__traceback__ must be a traceback)r2r�rsrbr�r?r:s& r�testInvalidTraceback�#ExceptionTests.testInvalidTraceback�sJ��	-�()�I�K�%�
�I�I�+�,���	G��M�M�=�s�1�v�F�F��	G�s�%�	A�A�A�Ac��[o[2oQoUOV[UQ]2QoUOV[UQ]2QoUOV[UQ]2QoUOV[UQ]2P!)z'int' object is not iterabler�z)__traceback__ must be a traceback or Noner�z9exception cause must be None or derive from BaseException�	__cause__z;exception context must be None or derive from BaseException�__context__)rbr2r��setattr)r�TEr;rs&   r�test_invalid_setattr�#ExceptionTests.test_invalid_setattr�sz��
���k��,�����r���f�a�@�9�����r���o�q�I�I�����r���k�1�E�K�����r���m�Q�Grc�$�[o[]2g[c
oSoPo=LPo=hh9hQoSOX[SQ2SOX[SQ2SOX[SQ2SOX[SQ2P!)rHzmay not be deletedr�r�rXrY)rbrRr2r��delattr)rr[ryr;rs&    r�test_invalid_delattr�#ExceptionTests.test_invalid_delattr�s���
��	��Q�-����	��C��	��#�����r���f�=����r���o�F����r���k�B����r���m�Ds��	+�+�&�+c���[]2g[coSOoPo=LPo=hh9h[2oX!mPSmSOSOP2P!)rH)rRr2r�r@)rryr�s&  r�testNoneClearsTracebackAttr�*ExceptionTests.testNoneClearsTracebackAttr�sS��	!��Q�-����	!����B��	!��
�K�������������$�/rQc��[2oUOUO2UOUO2[	2oUOUO2UOUO2QQ[
2oU2oUOUO2UOUO2P!)c��\sQsQsQsP!)�5ExceptionTests.testChainingAttrs.<locals>.MyException��r6r�r6rrrLrg�r�rrL)r2�assertIsNonerYrXrbrO)rryrLs&  r�testChainingAttrs� ExceptionTests.testChainingAttrs�s����K�����!�-�-�(����!�+�+�&��K�����!�-�-�(����!�+�+�&�	�'�	�
�M�����!�-�-�(����!�+�+�&rc��[2g[c
oSoPo=LPo=hh9hSOSO2SOSO2SO	SO
2[
2SmPSmSOSO[2SOSO2SOSO
2P
SmSO	SO
2P!r)	r2rirYrX�assertFalse�__suppress_context__rWrN�
assertTrue)rr;rys&  r�testChainingDescriptors�&ExceptionTests.testChainingDescriptors�s���	��+����	��A��	��	
���!�-�-�(����!�+�+�&�����/�/�0�!���
�������a�m�m�Y�7����!�+�+�&�����.�.�/�!&�������/�/�0s�

�	$�$��$c��UO[[]Q5QQ[2oU]*Q5oUOUO]*2P!)r�)rc�(`�\sQsQsnQsQsUsP!)�8ExceptionTests.testKeywordArgs.<locals>.DerivedException��c�>�[OU2VmP!r)rr�	fancy_arg)rrws&&rr�AExceptionTests.testKeywordArgs.<locals>.DerivedException.__init__�s���&�&�t�,�!*�r�rwr r's@r�DerivedExceptionrt�s����
+�
+rrzry)rfrbrr@rw)rrzrs&  r�testKeywordArgs�ExceptionTests.testKeywordArgs�sE��	
���)�]�a��8�	+�}�	+�

�r�*��������b�)rc�|``�U1QknUO[R2U1QknUO[R2P!)c�:�R2!rr6)�fs�rr�/ExceptionTests.testInfiniteRecursion.<locals>.f�s
����3�Jrc�<:�R2![cPt!h9hr��rc��gs�rr��/ExceptionTests.testInfiniteRecursion.<locals>.g�s#���
��s�
���
��	�
�s��	��)rfrZ)rrr�s&@@r�testInfiniteRecursion�$ExceptionTests.testInfiniteRecursion�s/���	����.�!�,�	�
	
���.�!�,rc���UO[[22UO[[Q222UO[[QQ222P!)rr4)ror?r2r3s&r�test_str�ExceptionTests.test_str�s?������I��'�����I�c�N�+�,�����I�c�3�/�0�1rc�&�[2g[c!oSOS[2Po=LPo=hh9hSOQ[22SO	[
29^tt^2WPPP2P!)%fhP!9h�Nry�r2rN�assertNotIn�localsrf�UnboundLocalErrorr:s& r�test_exception_cleanup_names�+ExceptionTests.test_exception_cleanup_namessh��	0��+����	0��!�!�!�Y�/�/��	0������f�h�'�
�
�
�0�
1�
1�
�2�
1�
1�
1�s&�

�	8�8�3�8�2A?�?B	�B	c�(�[2g[c"oSOS[2=Po=LPo=hh9hSOQ[22SO	[
29^tt^2WPPP2P!)%fhP!9hr�r�r:s& r�test_exception_cleanup_names2�,ExceptionTests.test_exception_cleanup_names2sj��	��+����	��!�!�!�Y�/���	��	
����f�h�'�
�
�
�0�
1�
1�
�2�
1�
1�
1�s&�

�	9�9�4�9�3B�B	�	B	c�P``�QQ[2nQQ2oUU1QkoU2n[OR2oU2Pn[2U2nUO	R2U2n[OR2oU2Pn[2U2nUO	R2U2n[OR2oU2Pn[2U2nUO	R2U2n[OR2oQFDoU2J
	Pn[2U2nUO	R2U2n[OR2oU2U2n[OR2oU2Pn[P
Q5%c[2U2nUO	R2QQ2oU2n[OR2oU29^tt^2U2PPP2Pn[P
Q5%c[2U2nUO	R2P!RcoPo=CKPo=hh9hRcCK�h9hCK�9hCJV9h[
g9h[
cSoPSmPn[2S2n[P
Q5%c[2SO	R2Po=CKrPo=hh9hRcgg9hRcCKoh9hh9h)%fhCK9h)	c�(`�\sQsQsnQsQsUsP!)�=ExceptionTests.testExceptionCleanupState.<locals>.MyException�c��VmP!r�r�rrs&&rr�FExceptionTests.testExceptionCleanupState.<locals>.MyException.__init__����rr�r r's@rrLr������
�
rrLc��\sQsQsQsP!)�7ExceptionTests.testExceptionCleanupState.<locals>.MyObj�r6r�r6rr�MyObjr�r�rr�c�:�RoRR2grr6)�	local_refrLrs ��r�inner_raising_func�DExceptionTests.testExceptionCleanupState.<locals>.inner_raising_func s����I��c�"�"r)�cpythonc�.`�\sQsQsnQsQsQsUsP!)�9ExceptionTests.testExceptionCleanupState.<locals>.Context�c��U!rr6r3s&r�	__enter__�CExceptionTests.testExceptionCleanupState.<locals>.Context.__enter__�����rc��P	!)Tr6)r�exc_type�	exc_value�exc_tbs&&&&r�__exit__�BExceptionTests.testExceptionCleanupState.<locals>.Context.__exit__�s��rr6�r!r"r#r$r�r�r%r&r's@r�Contextr��s����
�
�
rr�)r)r2�weakref�refrrirSrYr)	rr�r��wrry�ir�rLrs	&      @@r�testExceptionCleanupState�(ExceptionTests.testExceptionCleanupStates����	�)�	�	�	�	#��g��
�[�[��
��	�� ������d�����#���g��
�[�[��
��	�� ������d�����#���g��
�[�[��
��	�� ������d�����#���g��
�[�[��
���A�
�"�$��
�����d�����#���g��
�[�[��
��	#�
�"�$�$�g��
�[�[��
��		�� ����U�+�+��L��d�����#��	�	�
�g��
�[�[��
��
�Y�Y�� �����U�+�+��L��d�����#���G�	���	���	��	��	���
���
�����	#�
!�A�M��C��L��$�C� ��/�/������c�"�"��	#��&�	�
�������
��
��
	��,�Y�Y�s��I�I&�I4�#I<�1J�K2�	L�I#�I#�I#�&I1�,I1�0I1�4I9�<J�J�J�	K/�K/�+K*�	K*�*K/�2L�8L�;K<�<K>�>L�L
�L
�L�L
�
L�L%	�L%	c�d`�U1Qko[P![cnS2Pn<P!Pn<hh9h)c�:�RP!rr6rAs�r�print_error�IExceptionTests.test_exception_target_in_nested_scope.<locals>.print_error�s���
r)�	somethingr2)rr�rys& @r�%test_exception_target_in_nested_scope�4ExceptionTests.test_exception_target_in_nested_scope�s'���	�	����	��M�M��	�s��	/�/�*�/c�T�QoU2oUO[U2[2UO[O
22UO[U2[2UO[O
22UO[U22[
Q2g[c�S2oSO[S2[2SO[O
2[2SO[S2[2SO[O
2[2SO[S2[2=SO[O
2[2P!h9h)c3�� �[Q2g[c4[O2w�[O2w�Lh9h[O2w�	P!3h)�caught)rSrhr�r6rr�yield_raise�:ExceptionTests.test_generator_leaking.<locals>.yield_raise�sJ���
&��x�(�(���
&��m�m�o�%��m�m�o�%�
&���-�-�/�!�s%�A+��	A�1A�A+�
A�A+r�)rN�nextrSrirhr�rb)rr�r�s&  r�test_generator_leaking�%ExceptionTests.test_generator_leaking�s��	"�
�M�����d�1�g�x�0����#�-�-�/�*����d�1�g�x�0����#�-�-�/�*����$�q�'�"�
	>��E�"�"���	>��
�A��!�!�$�q�'�8�4��!�!�#�-�-�/�9�=��!�!�$�q�'�8�4��!�!�#�-�-�/�9�=��!�!�$�q�'�9�5���!�!�#�-�-�/�9�=�	>�s�-B8�8	F'�C!F'�&F'c���Qo[g[cS2o[S2Lh9h[S2L[cLh9hSO[O
22P!)c3� �Pw�	P!3hrr6r6rrr��1ExceptionTests.test_generator_leaking2.<locals>.g�s������	)rYr��
StopIterationrirhr��rr��its&  r�test_generator_leaking2�&ExceptionTests.test_generator_leaking2�sa��	�	�����	���B���H�	��	���H���	��	�����#�-�-�/�*s%��	,�,�,�<�	A
�A
�	A
c��QoU2o[U2]]*UO
[O22P![cwoSO[O2S2SOS2oSO[O2S2SOXC2Po=K�Po=hh9h)c3�p �Pw�P![c[O2w�P!h9h3hr�rdrhr�r6rrr��1ExceptionTests.test_generator_leaking3.<locals>.g�s'���
&���$�
&��m�m�o�%�
&�s �6��6�	3�3�6�3�6)r�rdr�rhr��throwri)rr�r�ry�gen_excs&    r�test_generator_leaking3�&ExceptionTests.test_generator_leaking3�s���	&�
�S���R��	&�
�a�C�	
���#�-�-�/�*��!�	&��M�M�#�-�-�/�1�-��h�h�q�k�G��M�M�#�-�-�/�1�-��M�M�'�%�%��		&�s�	A�	C�C�A,C�Cc�|�QoU2o[g[c[[S22oLh9hSOS[2[S2L=[c0oSO[
O2S2Po=LPo=hh9hSO[
O22P!)c3�t �]]*P![c[O2w�gh9h3hr�r�r6rrr��1ExceptionTests.test_generator_leaking4.<locals>.g�s0���
��!����$�
��m�m�o�%��
�s�8�	�8�	5�5�8)rbrr�r�rdrhr�ri)rr�r��tprys&    r�test_generator_leaking4�&ExceptionTests.test_generator_leaking4�s���	��S��	 ��O���	 ��d�2�h��B�	 ��	
�
�
�b�+�,�	.���H��!�	.��M�M�#�-�-�/�1�-�-��	.��	
���#�-�-�/�*s.��	5�5�5�A�	B�%B�&%B�Bc�`�U1QkoU2o[g[c[S2Lh9hRO[[S2P!)c3�: �RO[O2[2Pw�	RO	[O22P!3hr)rNrhr�rYrir3s�rr��>ExceptionTests.test_generator_doesnt_retain_old_exc.<locals>.g�s3�����!�!�#�-�-�/�<�@�����c�m�m�o�.�s�AA)rYr�rfr�r�sf  r�$test_generator_doesnt_retain_old_exc�3ExceptionTests.test_generator_doesnt_retain_old_exc�sD���	/��S��	�����	���H�	�����-��r�2s��	0�0�0c�`�QnU1QkoU2[2UO[O22P!)c3� �]w�	P!3hr�r6r6rr�
simple_gen�NExceptionTests.test_generator_finalizing_and_sys_exception.<locals>.simple_gens
����G�r�c�Z:�R2o[g[c[S2t!h9hr)rYr�)�genr�s �r�run_gen�KExceptionTests.test_generator_finalizing_and_sys_exception.<locals>.run_gens.����,�C�
!�"�"���
!��C�y� �
!�s��	*�*�*)rrirhr�)rr�r�s& @r�+test_generator_finalizing_and_sys_exception�:ExceptionTests.test_generator_finalizing_and_sys_exceptions-���	�	!�	�	������#�-�-�/�*rc�``�QQ[2nQQ2oUU1QkoU2n[OR2oU2o[U2UU2P9on[	2U2nUOR2P!)c�(`�\sQsQsnQsQsUsP!)�FExceptionTests._check_generator_cleanup_exc_state.<locals>.MyExceptionic��VmP!rr�r�s&&rr�OExceptionTests._check_generator_cleanup_exc_state.<locals>.MyException.__init__r�rr�r r's@rrLr�r�rrLc��\sQsQsQsP!)�@ExceptionTests._check_generator_cleanup_exc_state.<locals>.MyObjir6r�r6rrr�r�r�rr�c3�F: �RR2gRc
Pw�P!h9h3hrr6)rLrs��r�raising_gen�FExceptionTests._check_generator_cleanup_exc_state.<locals>.raising_gens'����
�!�#�&�&���
��
�s�!����!��!)r2r�r�r�rri)r�testfuncr�r�r�r�rLrs&&    @@r�"_check_generator_cleanup_exc_state�1ExceptionTests._check_generator_cleanup_exc_statesm���	�)�	�	�	�	��g��
�[�[��
���M���Q��������C����d�����#�rc�0�QoUOU2P!)c�`�UO[22P![cP!h9hr)r�rYr�s&r�do_throw�GExceptionTests.test_generator_throw_cleanup_exc_state.<locals>.do_throw)s'��
������'���
��
�s��	-�-�-�r�)rrs& r�&test_generator_throw_cleanup_exc_state�5ExceptionTests.test_generator_throw_cleanup_exc_state(s��	�
	
�/�/��9rc�0�QoUOU2P!)c�(�UO2P!r)rjr�s&r�do_close�GExceptionTests.test_generator_close_cleanup_exc_state.<locals>.do_close1s��
�G�G�Irr)rr	s& r�&test_generator_close_cleanup_exc_state�5ExceptionTests.test_generator_close_cleanup_exc_state0s��	��/�/��9rc�0�QoUOU2P!)c��PoP!rr6r�s&r�do_del�CExceptionTests.test_generator_del_cleanup_exc_state.<locals>.do_del6s���Arr)rrs& r�$test_generator_del_cleanup_exc_state�3ExceptionTests.test_generator_del_cleanup_exc_state5s��	��/�/��7rc�8`�U1QkoROU2P!)c�h:�[U2ROQ2P![cP!h9h)� should have raised StopIteration)r�rsr��r�rs&�r�do_next�EExceptionTests.test_generator_next_cleanup_exc_state.<locals>.do_next;s2���
>��Q���	�	�<�=��!�
��
�s�"�	1�1�1r)rrsf r�%test_generator_next_cleanup_exc_state�4ExceptionTests.test_generator_next_cleanup_exc_state:����	>�	
�/�/��8rc�8`�U1QkoROU2P!)c�t:�UOP2ROQ2P![cP!h9h)Nr)�sendrsr�rs&�r�do_send�EExceptionTests.test_generator_send_cleanup_exc_state.<locals>.do_sendEs6���
>����t���	�	�<�=��!�
��
�s�(�	7�7�7r)rrsf r�%test_generator_send_cleanup_exc_state�4ExceptionTests.test_generator_send_cleanup_exc_stateDrrc�`�U1QkQ2oQn[U22gL9h[2SOR2P!)c�0:`�\sQsQsnU1QksQsUsP!)�*ExceptionTests.test_3114.<locals>.MyObjectiQc�4:�[O2nP!r)rhr�r:s&�r�__del__�2ExceptionTests.test_3114.<locals>.MyObject.__del__Rs����M�M�O�rr6�r!r"r#r$r'r%r&)r(rys@�r�MyObjectr%Qs����
$�
$rr*r6)r2rri)rr*rys& @r�	test_3114�ExceptionTests.test_3114NsC���	$�	$�
��	��H�J�'�'��	��������!�s�#�'c���QQ[2oQQ[2oQQ[2oUgSc�oSoSgSc�oSoSgSc�oSo	SOXQ2SOXr2SOX�2SOSO2SO	SOS2SO	S	OS2SgPo=hh9hPo=hh9hPo=hh9hSc
o
S
oPo
=
LPo
=
hh9hSO	SW2SO	SOW	2SO	S	OW2SOSO2P!)c��\sQsQsQsP!)�HExceptionTests.test_raise_does_not_create_context_chain_cycle.<locals>.Ai^r6r�r6rr�Ar/^r�rr0c��\sQsQsQsP!)�HExceptionTests.test_raise_does_not_create_context_chain_cycle.<locals>.Bi`r6r�r6rr�Br2`r�rr3c��\sQsQsQsP!)�HExceptionTests.test_raise_does_not_create_context_chain_cycle.<locals>.Cibr6r�r6rr�Cr5br�rr6)r2rNrirYr�)rr0r3r6�a_r�b_r4�c_�cryr;s&           r�.test_raise_does_not_create_context_chain_cycle�=ExceptionTests.test_raise_does_not_create_context_chain_cycle]sG��	�	�	�	�	�	�	�	�	�	�
 �����
 ��� ��G��� ��A�
 ����� ����-�-�a�3��-�-�a�3��-�-�a�3��)�)�!�-�-�8��
�
�a�m�m�Q�7��
�
�a�m�m�Q�7���� ��	 ��	
 ��"�	��C��	��	
�
�
�c�1���
�
�a�m�m�Q�'��
�
�a�m�m�Q�'����!�-�-�(s}�3�C1�C1�C,�?�C)�C)�C$�	A�C!�C!�B
C�C!�!C$�$C)�)C,�,C1�1C4�4D�:D�;D�Dc��QoU2UOW[2UOUO[2UOUOOUO2P![c
oSoPo=KzPo=hh9h)c�d�[]2g[coXm[]2gPo=hh9hr�)rcrYrb��exs r�cycle�BExceptionTests.test_no_hang_on_context_chain_cycle1.<locals>.cycle�s0��
#� ��m�#���
#�!#����l�"��
#�s��	/�/�*�/)r2rNrbrYrcr�)rrAryr;s&   r�$test_no_hang_on_context_chain_cycle1�3ExceptionTests.test_no_hang_on_context_chain_cycle1�sj��	#�	��G�	
���c�9�-����c�o�o�z�:��
�
�c�o�o�1�1�3�?�?�C���	��C��	�s�A5�5	B�?B�B�Bc�B�QQ[2oQQ[2oQQ[2oUOU29^tt^2oU2gScBoSoS2gSc)oSoS2gSco	S	o
X�mS
gPo	=	hh9hPo=hh9hPo=hh9h)%fhL9hSOWOW
2SOS
OW2SOSOW2SOSOS
2P!)c��\sQsQsQsP!)�>ExceptionTests.test_no_hang_on_context_chain_cycle2.<locals>.Ai�r6r�r6rrr0rG�r�rr0c��\sQsQsQsP!)�>ExceptionTests.test_no_hang_on_context_chain_cycle2.<locals>.Bi�r6r�r6rrr3rI�r�rr3c��\sQsQsQsP!)�>ExceptionTests.test_no_hang_on_context_chain_cycle2.<locals>.Ci�r6r�r6rrr6rK�r�rr6�r2rfrYr�r�)rr0r3r6r��_ar�_br4�_cr:s&          r�$test_no_hang_on_context_chain_cycle2�3ExceptionTests.test_no_hang_on_context_chain_cycle2�s���	�	�	�	�	�	�	�	�	��
�
�q�
!�
!�R�

 ��c�	���
 ���	 ��#�I��� ��A� ��c�	��� ���()�
���� ��	 ��	
 ��"�
!�� 	
�
�
�b�l�l�A�&��
�
�a�m�m�Q�'��
�
�a�m�m�Q�'��
�
�a�m�m�Q�'s~�B�
A�B�B�B�A"�"B	�(B	�)B	�,A3�3B	�9B	�:
B�B	�	B	�B	�B�B�B�B,	�%B,	c	�.�QQ[2oQQ[2oQQ[2oQQ[2oQQ	[2oUOU29^tt^2oU2gScboSoS2gScIo	S	o
S2gSc0oSoX�mS2gSco
S
oS2oSgPo
=
hh9hPo=hh9hPo	=	hh9hPo=hh9h)%fhL9hSOWOW2SOSOW2SOSOW2SOSOW
2SOS
OW2SOSOS2P!)
c��\sQsQsQsP!)�>ExceptionTests.test_no_hang_on_context_chain_cycle3.<locals>.Ai�r6r�r6rrr0rT�r�rr0c��\sQsQsQsP!)�>ExceptionTests.test_no_hang_on_context_chain_cycle3.<locals>.Bi�r6r�r6rrr3rV�r�rr3c��\sQsQsQsP!)�>ExceptionTests.test_no_hang_on_context_chain_cycle3.<locals>.Ci�r6r�r6rrr6rX�r�rr6c��\sQsQsQsP!)�>ExceptionTests.test_no_hang_on_context_chain_cycle3.<locals>.Di�r6r�r6rr�DrZ�r�rr[c��\sQsQsQsP!)�>ExceptionTests.test_no_hang_on_context_chain_cycle3.<locals>.Ei�r6r�r6rr�Er]�r�rr^rL)rr0r3r6r[r^r�rMrrNr4rOr:�_d�drys&               r�$test_no_hang_on_context_chain_cycle3�3ExceptionTests.test_no_hang_on_context_chain_cycle3�s\��	�	�	�	�	�	�	�	�	�	�	�	�	�	�	��
�
�q�
!�
!�R�
$��c�	���
$���$��#�I���$��A�
$��c�	���$���()�
�$�"#�#�I�� �$� "�A� !��A�"#�G��$��$��	$��	
$��"�
!��*	
�
�
�b�l�l�A�&��
�
�a�m�m�Q�'��
�
�a�m�m�Q�'��
�
�a�m�m�Q�'��
�
�a�m�m�Q�'��
�
�a�m�m�Q�'s��&C�(A/�/C�5C�6C�9B�C	�C	�C
	�
B�C�C�C�!B(
�(B?
�.B?
�/B:
�:B?
�?C�C�C
	�
C	�C�C�C�C*	�#C*	c���[]2oUg[]2oSg9h[c
oSoPo=LPo=hh9hSOSW2SOSOW2P!r�)rbrcr2r�rY)r�te�veryr;s&    r�,test_context_of_exception_in_try_and_finally�;ExceptionTests.test_context_of_exception_in_try_and_finally�s`��	�
��q�\�������]������	��C��	��	
�
�
�c�2���
�
�c�o�o�r�*s�
��"�	9�9�4�9c�H�[]2oUg[]2oSg9h[]2oSg9h[c
oSoPo=LPo=hh9hSO	SW2SO	SO
W2SO	SO
O
W2P!r�)rbrcrOr2r�rY)rrdre�oeryr;s&     r�/test_context_of_exception_in_except_and_finally�>ExceptionTests.test_context_of_exception_in_except_and_finally�s���	�
��q�\�����
���]������Q�Z������	��C��	��	
�
�
�c�2���
�
�c�o�o�r�*��
�
�c�o�o�1�1�2�6s)�
� �#�1�4�	A�A�A�Ac��[]2oUgL9h[]2oSg[]2oSg9h[c
oSoPo=LPo=hh9hSOSW2SOSOW2P!r�)rcrOr2r�rY)rreriryr;s&    r�-test_context_of_exception_in_else_and_finally�<ExceptionTests.test_context_of_exception_in_else_and_finallys���	�	
�� ��]�����	
����
�Q�Z������Q�Z������	��C��	��	
�
�
�c�2���
�
�c�o�o�r�*s/�
'��'�
8�5�8�	A�A�A
�
Ac��[QQ]]Q2oUO[U2Q2]UmUO[U2Q2]UmQUmUO[U2Q2QUmUO[U2Q2Q	UmUO[U2Q
2[QQ]]Q2oUO[U2Q2]UmUO[U2Q
2]UmQUmUO[U2Q2QUmUO[U2Q2Q	UmUO[U2Q2[Q]]Q2oUO[U2Q2]UmUO[U2Q2]UmQUmUO[U2Q2Q	UmUO[U2Q2P!)r��xxxxxr�z8'baz' codec can't encode characters in position 1-4: fooz<'baz' codec can't encode character '\x78' in position 1: foolESh
MQ)EzJ'baz' codec can't encode characters in position 1-4: 965230951443685724997i�zK'4000' codec can't encode characters in position 1-4: 965230951443685724997��zN'4000' codec can't encode characters in position 1000-4: 965230951443685724997sxxxxxz3'baz' codec can't decode bytes in position 1-4: fooz5'baz' codec can't decode byte 0x78 in position 1: foozE'baz' codec can't decode bytes in position 1-4: 965230951443685724997zF'4000' codec can't decode bytes in position 1-4: 965230951443685724997zI'4000' codec can't decode bytes in position 1000-4: 965230951443685724997�xxxxz/can't translate characters in position 1-4: fooz3can't translate character '\x78' in position 1: foozAcan't translate characters in position 1-4: 965230951443685724997zDcan't translate characters in position 1000-4: 965230951443685724997)	rr@r?rr
rMr	rr)r�us& r�test_unicode_change_attributes�-ExceptionTests.test_unicode_change_attributess���
�u�g�q�!�U�;������Q��![�\��������Q��!`�a����'�������Q��!m�n���
�����Q��!n�o��������Q��!q�r��u�h��1�e�<������Q��!V�W��������Q��!X�Y����'�������Q��!h�i���
�����Q��!i�j��������Q��!l�m�!�&�!�Q��6������Q��!R�S��������Q��!W�X����'�������Q��!d�e��������Q��!g�hrc	��[[[1oSFD-oUO[	UOU22P2J/	P!)�)rrrr@r?�__new__)r�klasses�klasss&  r�test_unicode_errors_no_object�,ExceptionTests.test_unicode_errors_no_objectBs8��$�&8�:O�O���E����S����u�!5�6��;�rc��[[Q]2[Q]2[]22FCDvqoQU*oUOQV1UQ59^tt^2[QVAUP2oUO	[U2[
2PPP2UOQV1UQ59^tt^2[
VAUP2oUO	[U2[
2PPP2UO2oUOQV1UQ59^tt^2[QVaUP2oUO	[U2[
2PPP2CJ	P!)%fhK�9h)%fhK�9h)%fhCJT9h)rSrr�)�objlenr	rrK�	translater����)	rrqr>rrNr?rr�r)rr	rr~rr;�encodeds&      r�%test_unicode_error_str_does_not_crash�4ExceptionTests.test_unicode_error_str_does_not_crashHs/��#*��"�a�L��"�a�L��!�H�#
�#
��E��
��,�C����h�v���L�L�(��#�c�2�F���%�%�c�#�h��4�M����k�&�3��O�O�+�C��R�@���%�%�c�#�h��4�P��j�j�l�G����h�v���L�L�(��'�#�r�J���%�%�c�#�h��4�M�L�#
�M�L��P�O��
M�L�L�s6�.E		�+-E	�.E/	�	E
�E
�E,
�%E,
�/F
�8F
c�0�QoUOU2P!)c��PUmP!r�r�r;s&r�side_effect�OExceptionTests.test_unicode_error_evil_str_set_none_object.<locals>.side_effect`s	���C�Jr��do_test_unicode_error_mutate�rr�s& r�+test_unicode_error_evil_str_set_none_object�:ExceptionTests.test_unicode_error_evil_str_set_none_object_s��	��)�)�+�6rc�0�QoUOU2P!)c��U;P!rr�r�s&rr��OExceptionTests.test_unicode_error_evil_str_del_self_object.<locals>.side_effectes���
rr�r�s& r�+test_unicode_error_evil_str_del_self_object�:ExceptionTests.test_unicode_error_evil_str_del_self_objectds��	��)�)�+�6rc
�Z``�UU1QkQ[2oQUQ21UQ2Q1UQ2UQ211FD�vq4UOVCQ59^tt^2UO[29^tt^2[UQ]]U2nUO[[R2PPP2UO[
29^tt^2[UQ]]U2nUO[[R2PPP2PPP2J�	UO[29^tt^2[
Q]]UQ22nUO[[R2PPP2P!)%fhK�9h)%fhK�9h)%fhCJ[9h)%fhP!9h)c�2:`�\sQsQsnUU1QksQsUsP!)�9ExceptionTests.do_test_unicode_error_mutate.<locals>.Evilinc�:�RR2U!rr6)rr;r�s&��rr4�AExceptionTests.do_test_unicode_error_mutate.<locals>.Evil.__str__os����C� ��rr6r7)r(r;r�s@��r�Evilr�ns����
�
rr�r
rK)rMr
r�x)r?r>rrfrbrr)rr�r�r
rMr;s&f   @rr��+ExceptionTests.do_test_unicode_error_mutateisH���
	�	�3�	��t�G�}�%�
�(�^�W�%�
�(�^�T�'�]�+�!
��F�
���x��?�?��\�\�"4�5�5�,�X�s�A�q�&�I�C��%�%�i��c�:�6��\�\�"4�5�5�,�X�t�Q��6�J�C��%�%�i��c�:�6�	@�?�!
��\�\�/�
0�
0�'��Q��4��>�B�C����i��c�2�1�
0�6�5��6�5��	@�?�?��1�
0�
0�s`�F	�8+E
�#%F	�+E1
�3F	�$0F�E.�'E.�)F	�1F�:F�<F	�F
�
F
�F*	�"F*	c��`�QQ[2oQQ[UQ5o[29^tt^2o[2gScoSO	Q2Po=L'Po=h[cLSO	Q2L9hPPP2L)%fhL9hS1QknR2oSOS[[S22SOQ[S22P!)	c�(`�\sQsQsnQsQsUsP!)�/ExceptionTests.test_badisinstance.<locals>.Metai�c��[2grr�)�cls�subclasss&&r�__subclasscheck__�AExceptionTests.test_badisinstance.<locals>.Meta.__subclasscheck__�s
�� �l�"rr6)r!r"r#r$r�r%r&r's@r�Metar��s����
#�
#rr�c��\sQsQsQsP!)�6ExceptionTests.test_badisinstance.<locals>.MyExceptioni�r6r�r6rrrLr��r�rrL)�	metaclasszShould have raised KeyErrorz%exception should not be a MyExceptionc�J:�R2![c
oStPo=!Po=hh9hr)rZ)ryr�s �rr��,ExceptionTests.test_badisinstance.<locals>.g�s$���
��s�
��!�
����
�s��	"�"��"�"z maximum recursion depth exceeded)	rr2rrSrsrNrZr�r?)rr�rLr%ryr;r�s&     @r�test_badisinstance�!ExceptionTests.test_badisinstance�s����	#�4�	#�	�)�t�	��
�
�&�	
9��j� ���
C��	�	�A�B�B���
��
9��	�	�7�8���
�
�
��	�
�c�����c�>�4��9�=��
�
�8�#�c�(�CsL�B�
A�B�B�A�B�B�+B�,B�.B�B�B	�B	c�F�QoU2[O2P!)c�Z�[2o[Q2FDoUOoJ	P!)i@B)rrq�__dir__)�ors  rr��3ExceptionTests.test_trashcan_recursion.<locals>.foo�s#����A��9�%���I�I��&r)rr)rr�s& r�test_trashcan_recursion�&ExceptionTests.test_trashcan_recursion�s��	�	�����rc��[Q2Q[*o[OQQU2vq#oUO	U]2UOQU2UOQU2UOQU2P!)�_testinternalcapia�if 1:
            import sys
            from _testinternalcapi import get_recursion_depth
            from test import support

            class MyException(Exception): pass

            def setrecursionlimit(depth):
                while 1:
                    try:
                        sys.setrecursionlimit(depth)
                        return depth
                    except RecursionError:
                        # sys.setrecursionlimit() raises a RecursionError if
                        # the new recursion limit is too low (issue #25274).
                        depth += 1

            def recurse(cnt):
                cnt -= 1
                if cnt:
                    recurse(cnt)
                else:
                    generator.throw(MyException)

            def gen():
                f = open(%a, mode='rb', buffering=0)
                yield

            generator = gen()
            next(generator)
            recursionlimit = sys.getrecursionlimit()
            try:
                recurse(support.exceeds_recursion_limit())
            finally:
                sys.setrecursionlimit(recursionlimit)
                print('Done.')
        �-Wd�-c�RecursionErrorsResourceWarning�Done.)r
�__file__r
�assert_python_failurer@r��rr��rc�outrAs&    r�$test_recursion_normalizing_exception�3ExceptionTests.test_recursion_normalizing_exception�sw��	�)�*�$�H�I$��J%�:�:�5�$��M��������Q���
�
�'��-��
�
�(�#�.��
�
�h��$rr�c���Qo[OQU2vq#oUOU]2QoUOVT7U8QUQ*8Q0Q5UO	QU2P!)z�if 1:
            import _testcapi
            try:
                raise _testcapi.RecursingInfinitelyError
            finally:
                print('Done.')
        r�r�z not found in :Ni�Nz... (truncated))rr�)r
r�r@ror�)rr�r�r�rAr(s&     r�-test_recursion_normalizing_infinite_exception�<ExceptionTests.test_recursion_normalizing_infinite_exception�sh����%�:�:�4��F��������Q��$��������|�>�#�f�+��Xg�-h��i��
�
�h��$rc	�```�QoU1QknU1QknU1Qkn[O2oU]
2RRR1FD?oUOUQ59^tt^2U2UOQ2PPP2JA	[O
U2P![cK1h9h)%fhJ}9h[O
S2h9h)c��]o[OU2[OV*2P![cS]*
oJNh9hr�)rh�setrecursionlimitrZ)�n�depths& r�set_relative_recursion_limit�UExceptionTests.test_recursion_in_except_handler.<locals>.set_relative_recursion_limitsL���E����)�)�%�0���!�!�%�'�*��	&���Q�J�E��s�;�	A�
A�Ac�<:�]]*P!R2P!9hr�r6)�recurse_in_excepts�rr��JExceptionTests.test_recursion_in_except_handler.<locals>.recurse_in_excepts���
$��!����
$�!�#�s�	�	c�::�]]*R2P!K
9hr�r6)�recurse_after_excepts�rr��MExceptionTests.test_recursion_in_except_handler.<locals>.recurse_after_excepts!���
��!��
!�"��
��s�	�c�8:�R2P!R2P!9hrr6)�recurse_in_body_and_excepts�rr��SExceptionTests.test_recursion_in_except_handler.<locals>.recurse_in_body_and_excepts���
-�*�,��
-�*�,�s�
�	)�funcz#Should have raised a RecursionError)rh�getrecursionlimitr>rsrZr�)rr��recursionlimitr�r�r�r�s&   @@@r� test_recursion_in_except_handler�/ExceptionTests.test_recursion_in_except_handlers����		+�	$�	#�	-��.�.�0��	2�(��,�*�,@�B\�]���\�\�t�\�,�,�I����	�	�"G�H�
-�,�^�
�!�!�.�1��*�����-�,�,��
�!�!�.�1�sS�+B>�B*	�B�$B*	�5B>�	B'�#B'�$B*	�&B'�'B*	�*B;
�3B;
�5	B>�>Cc���Qo[29^tt^2[OQU2vq#oUOQU2PPP2P!)%fhP!9h)a+if 1:
            import _testcapi
            class C(): pass
            def recurse(cnt):
                cnt -= 1
                if cnt:
                    recurse(cnt)
                else:
                    _testcapi.set_nomemory(0)
                    C()
            recurse(16)
        r��MemoryError)rr
r�r�r�s&    r�)test_recursion_normalizing_with_no_memory�8ExceptionTests.test_recursion_normalizing_with_no_memory3sG����!�
"�
"�(�>�>�t�T�J�L�B�S��M�M�.�#�.�#�
"�
"�
"�s�-A
�
A	�A	c�p```�]PHn]QHGnUUU1QkoU2oU2oROV#2P!)r��raise_memoryerrorc�:�R2ROQ2ROW2![coSOoPo=K-Po=hh9h)z Should have raised a MemoryError)rsrVr��	format_tb)ryr�r�r�	tracebacks  ���r�
raiseMemError�6ExceptionTests.test_MemoryError.<locals>.raiseMemErrorPsI���
>�!�#��	�	�<�=��&�&�r�*�*��	�
%��_�_���
%�s�-�	A�A�A	�	A)r�r�r�r@)rr��tb1�tb2r�r�sf   @@r�test_MemoryError�ExceptionTests.test_MemoryErrorIs.���
	�/�	+��o���o������"rc�r�QoQoUO[[OQ2[OQ2oUO	[U2[
2UO
U[2UOUO2[OQU2oUOUOU2[OQUQ5oUO
VT2QQ[2o[OQ	UVV12oUO
Vu2UO
Vv2UOUOU2[OQ
PUQ]-2oUO
V�2UOUO]2UOUOP2P!)zThis is a test docstring.zThis is another test docstring.�error1z_testcapi.error1z_testcapi.error2z_testcapi.error3)�basec��\sQsQsQsP!)�1ExceptionTests.test_exception_with_doc.<locals>.Civr6r�r6rrr6r�vr�rr6z_testcapi.error4z_testcapi.error5r)
rfr`r��make_exception_with_docr�r�assertIsSubclassr2ri�__doc__r@rr)	r�doc2�doc4r��error2�error3r6�error4�error5s	&        r�test_exception_with_doc�&ExceptionTests.test_exception_with_doc]sn��+��0�����+�y�'H�'H�"�	$��2�2�3E�F���
�
�d�6�l�D�)����f�i�0����&�.�.�)��2�2�3E�t�L���������.��2�2�3E�8>�@�����f�-�	��	��2�2�3E�t�4:�;�@�����f�-����f�(��������.��2�2�3E�r�39�C��8�E�����f�-�������1�%��������,rc�```�]QHGnQQ2nPnUUU1QkoU2UOQ2[2UO
R2P2P![c"oSO	R2P2Po=KJPo=hh9h)rr�c��\sQsQsQsP!)�3ExceptionTests.test_memory_error_cleanup.<locals>.Ci�r6r�r6rrr6r��r�rr6c�R:�R2o[OU2nR2P!r�r�r�)r:r6r�r�s ���r�inner�7ExceptionTests.test_memory_error_cleanup.<locals>.inner�s�����A����Q��B��rzMemoryError not raised)r�r�rsrV�assertNotEqualrr@)rr�ryr6r�r�s&  @@@r�test_memory_error_cleanup�(ExceptionTests.test_memory_error_cleanup�ss���
	0�	�	�
��	 �	0��G�
�I�I�.�/��������t�$���	,������d�+�+��	,�s�A�	B�%B�&B�Bc�```�QQ2nPnUUU1QknR2UOQ2[2UO	R2P2P![c"oSOR2P2Po=KJPo=hh9h)c��\sQsQsQsP!)�6ExceptionTests.test_recursion_error_cleanup.<locals>.Ci�r6r�r6rrr6r�r�rr6c�R:�R2o[OU2nR2P!rr�)r:r6r�r�s ���rr��:ExceptionTests.test_recursion_error_cleanup.<locals>.inner�s�����A����Q��B��GrzRecursionError not raised)rsrZr�rr@)rryr6r�r�s& @@@r�test_recursion_error_cleanup�+ExceptionTests.test_recursion_error_cleanup�sn���	�	�
��	�	3��G�
�I�I�1�2��������t�$���	,������d�+�+��	,�s�A�	B�B� A<�<Bc�d�QQ[2oU]QQQ2oUO]QQQ2P!)c�4``�\sQsQsnU1QksQsUsU9s!)�?ExceptionTests.test_oserror_reinit_leak.<locals>.LeakingOSErrori�c�R:�V mV0mV@m[RU_VUPU2P!r)r�r�r��superr)rr�r�r�r��	__class__s&&&&&�rr�HExceptionTests.test_oserror_reinit_leak.<locals>.LeakingOSError.__init__�s%��� '�
� (�
�!*���� ���$�	�Jr)r�r�r�)r!r"r#r$rr%r&�
__classcell__)rr(s@@r�LeakingOSErrorr�s����
K�
Krrzsome messagezfilename.pyzfilename2.pyzanother messagezfilename3.pyzfilename4.py)rOr)rrr;s&  r�test_oserror_reinit_leak�'ExceptionTests.test_oserror_reinit_leak�s5��	K�W�	K��Q��
�~�N�����Q�)�>�>�Jrc�,�UO[29^tt^2o[O[2PPP2UOWOO[OUO2P!)%fhKQ9hr)	rfrO�os�listdirr�r@r�r��ENOTDIR)rr�s& r�test_errno_ENOTDIR�!ExceptionTests.test_errno_ENOTDIR�sS��
�
�
�w�
'�
'�2��J�J�x� �(�������+�+�U�]�]�B�L�L�I�(�
'�s�B�B	�B	c��QQ2oU2o[O29^tt^2o[[U2O2o=[2UO
UOOQU02UOUOO2PPP2P!)%fhP!9h)c�(`�\sQsQsnQsQsUsP!)�1ExceptionTests.test_unraisable.<locals>.BrokenDeli�c��[Q2oUg)z
del is brokenr��rr;s& rr'�9ExceptionTests.test_unraisable.<locals>.BrokenDel.__del__�s�� ��1���	rr6r)r's@r�	BrokenDelr�s����
�
rr z,Exception ignored while calling deallocator )r�catch_unraisable_exceptionr rr'rr@�
unraisable�err_msg�assertIsNotNone�
exc_traceback)rr rr��obj_reprs&    r�test_unraisable�ExceptionTests.test_unraisable�s���	�	��k��
�
/�
/�
1�
1�R��D��I�-�-�.�H���L����R�]�]�2�2� ,�,4�:�7�
8�
� � ����!<�!<�=�2�
1�
1�
1�s�A8B2�2C	�;C	c��[[1FD&oUOU29^tt^2UQ2oUg	P!Sc[[29^tt^2o[O
[O2PPP2L)%fhL9hh9hWO2oSOQS2SOQS2SOSOS2S[IcSOQS2LSOQS2SOSQ2PPP2CJ,)%fhCJ>9h)ztest messager�z	raise excz<exception str() failed>r�)rcr/r>rrh�__excepthook__�exc_info�getvaluer�r!r�)rr�r;r%�reports&    r�test_unhandled�ExceptionTests.test_unhandled�s���#�%7�8�H����h�'�'�<�"�>�2�C��I�9�� �<�(�*�*�f��*�*�C�L�L�N�;�+�*�*�*��<�� ���*���
�
�2�F�;��
�
�k�6�2��
�
�h�/�/��8��1�1��M�M�"<�f�E��M�M�.�&�9��#�#�F�D�1�!(�'�'�'�s]�D;	�
;�B�B�)B�=B�D;	�B�B�B�D;	�B�AD;	�97D;	�;E

�E

c��Qo[]]2FDGo[OQV*2vq4oUOUQ2UOQU2JI	P!)z�if 1:
            import _testcapi
            class C(): pass
            _testcapi.set_nomemory(0, %d)
            C()
        r�r�)r��x)rqr
r�r�)rr�r�r�r�rAs&     r�"test_memory_error_in_PyErr_PrintEx�1ExceptionTests.test_memory_error_in_PyErr_PrintEx�sO�����q�"��A�(�>�>�t�T�X�N�L�B�S��M�M�"�h�'��M�M�.�#�.�rc�``�QQ[2nQQ[2nUU1QkoU2oUOP2UOR29^tt^2UOR22PPP2P!)%fhP!9h)c��\sQsQsQsP!)�BExceptionTests.test_yield_in_nested_try_excepts.<locals>.MainErrorir6r�r6rr�	MainErrorr6r�rr7c��\sQsQsQsP!)�AExceptionTests.test_yield_in_nested_try_excepts.<locals>.SubErrorir6r�r6rr�SubErrorr9r�rr:c3�\: �R2gRcPw�gRcgh9hh9h3hrr6)r7r:s��r�main�=ExceptionTests.test_yield_in_nested_try_excepts.<locals>.mainsE����
��k�!���
����� ������
�s0�,�
�)�)��)�%�%�)�%�)�,)r2rrfr�)rr<�coror7r:s&  @@r� test_yield_in_nested_try_excepts�/ExceptionTests.test_yield_in_nested_try_excepts�sb���	�	�	�	�y�	�	��v���	�	�$��
�
�
�y�
)�
)��J�J�x�z�"�*�
)�
)�
)�s�A;�;B	�B	c�`�U1QkoU2o[g[cRO[S2]2Lh9hRO[S2]2P!)c3�: �[g[c	]w�Lh9hRO[O22]w�	P!3hr�)rcrirhr�r3s�rr��?ExceptionTests.test_generator_doesnt_retain_old_exc2.<locals>.gs>����
� � ���
���
�����c�m�m�o�.��G�s�A
��	��A
��.A
)rRr@r�)rr�r�sf  r�%test_generator_doesnt_retain_old_exc2�4ExceptionTests.test_generator_doesnt_retain_old_exc2sS���	��c��	+�����	+����T�#�Y��*�	+������c��A�&s��	A�A�Ac���QoUO[29^tt^2U2o]]*PPP2P![S2[S2K$9h)%fhP!9h)c3� �]w�	g3hr�r6r6rrr��1ExceptionTests.test_raise_in_generator.<locals>.g*s
����G��s�
)rfrdr�)rr�r�s&  r�test_raise_in_generator�&ExceptionTests.test_raise_in_generator(sW��	�
�
�
�0�
1�
1���A�
��!��2�
1��
��Q���Q���
2�
1�
1�s �A�	>�A�A�A,	�$A,	z Won't work if __debug__ is Falsec��[rPQ2g[c>o>SO	S[2SO[
S2Q2Po=P!Po=hh9h)F�hello)rb�AssertionErrorrsrrNr@r?r:s& r�test_assert_shadowing�$ExceptionTests.test_assert_shadowing7sR��
#��	,�!�'�!�5���	.���!�!�!�^�4����S��V�W�-�-��	.�s��	A�A�2A�Ac��QQ[2o[g[coSoPo=SgPo=hh9h[cLh9h[]
2FD,o[g[coPo=LPo=hh9h[2J.	P!)c��\sQsQsQsP!)�BExceptionTests.test_memory_error_subclasses.<locals>.TestExceptioniPr6r�r6rr�
TestExceptionrRPr�rrS)rVr2rqr)rrSr;�inst�_s&    r�test_memory_error_subclasses�+ExceptionTests.test_memory_error_subclassesGs���	�K�	�	�����	��D�	����		��
�	��	���r��A�
�!�!���
���
��
�L�
s@��	1�1�,�4�1�	A�A�A�A�	A0�%A0�+A0c��Q[OQ0o[OQU2vq#oUO	QU2P!)zOif 1:
            import _testcapi
            _testcapi.run_in_subinterp("[0]*z")
            exit(0)
        r�r�)rh�maxsizer
�assert_python_okr�)rr�r�rUrAs&    r�test_memory_error_in_subinterp�-ExceptionTests.test_memory_error_in_subinterpesB��.�.1�k�k�]�;	���
#�3�3�D�$�?�
��s��
�
�n�c�*rc�T�PoPo-o[Q2g[coSoS]*Po=L"Po=hh9h[c
oSoPo=LPo=hh9hSOS[2SOS[2SO	SO
S2PoPoP!PoPoh9h)N�bug)rcr2rNrSr@rY)r�err1�err2r`r;�exc1�exc2s&      r�test_keyerror_context�$ExceptionTests.test_keyerror_contextts���	��D��D�
����$�U�+�+�� ���D��a�D�D�����
����
��
�!�!�$�
�3��!�!�$��1����T�-�-�t�4��D��D���D��D�sT�B!�9��	6�6�1�9�B!�6�9�	A�A�A�B!�A�AB!�!B'c	���QoU[Q2*o[29^tt^2[OQU29^tt^2oUO	2UO
O
2oPPP2PPP2UOWOQ2UO[W2]2UOQU2P!)%fhKc9h)%fhKn9h)za = list(range(0, 1))
z�
            try:
                import _testcapi
                _testcapi.set_nomemory(0)
                b = list(range(1000, 2000))
            except Exception as e:
                import traceback
                traceback.print_exc()
            r�r�a(a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
a = list(range(0, 1))
)rr�)rrr
�spawn_python�wait�stdout�readr��
returncode�
assertGreater�len)r�warmup_code�
user_inputr+�outputs&    r�test_exec_set_nomemory_hang�*ExceptionTests.test_exec_set_nomemory_hang�s���5�� �6�+�$��
�!�
"�
"��+�+�D�*�=�=�������������>�#�
	
�
�
�a�l�l�F�+����3�v�;��*��
�
�n�f�-�
>�=��#�
"�s/� C!�+C	�3C!�C
�C
�C!�!C1	�*C1	r6)NNrK)fr!r"r#r$rDrzr�r�r�r�r�r�r�rrhrYr�requires_resource�
bigmemtestr�rr�r��
skipUnless�platformr�r0r;r>rErOrUr\r`rcrjrpr{r	r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrr!r+r;rCrPrarfrjrmrtr{r�r�r�r�r��skip_wasi_stack_overflow�skip_emscripten_stack_overflowr�r�r�r�skip_if_huge_c_stackr�r��	nomemtestr�r�r�rrrrr'r.r2r?rDrIrNrVr[rcrpr%r&r's@rr9r90s����4�RC�hI�0'Q�R7�&2�l)�\�_�_�W����+�-X�Y����u�%������5�9�/�:�&�Z�/�
�+��+�Z%0�N�������0�3�5�;�5�;�I@�V!�$�
2�6.�*-�
H�E�	0�'� 1�$*��
-��
-�2�	�	�w�r�>�<
+�+�&+�6
3�+��2:�:�
8�
9�9�
�&)�PD�&"(�H-(�^+�7�$+�$#i�J<�5�.7�
7�
3�6�D��D�<
�%�%�'��+�+�-�����u�%��&��.�(��
�+�+�-��5%��.�5%�n�
�_�_�Y�$�&�(<�=���!�!�#�%�$��>��%�$
�+�+�-�,2�.�,2�^
���/��/�*�
�_�_�Y�$�&�(<�=�#�>��#�$�
�_�_�Y�$�&�(<�=�$-�>��$-�L�
�_�_�Y�$�&�(<�=�%�>��%�,�%��%�(K�J�>�&2�*
���/��/� #�.'�$
�����$F�G�
,�H�
,��<�_�_�Y�$�&�(<�=�+�>�+��0
���.��.rr9c�:`�\sQsQsnQsQsQsQsQsUs	P!)�NameErrorTestsi�c��[P![c(oSOQSO2Po=P!Po=hh9h)�bluch)r}rWr@rrs& r�test_name_error_has_name�'NameErrorTests.test_name_error_has_name�s1��	0����	0����W�c�h�h�/�/��	0�s��	=�=�8�=c�|`�U1QkoU2ROQ2ROQWO22P!ROcg[O29^tt^2o[O
[O2PPP2J�)%fhK�9hh9h)c�:�RO[Q29^tt^2[PPP2P!)%fhP!9h)�aaa)r�rW�aabr3s�rr�)NameErrorTests.test_issue45826.<locals>.f�s(����'�'�	�5�9�9��:�9�9�9�s�2�A	�A	z%assertRaisesRegex should have failed.r�)	rs�failureExceptionrrrhr*r+r�r,�rrrAsf  r�test_issue45826�NameErrorTests.test_issue45826�s����	�	?�
�C�

�I�I�=�>��
�
�e�S�\�\�^�,��
�$�$�	4��(�(�*�*�c��"�"�C�L�L�N�3�+�*�*�*��	4�s5�A�B;�B;�2)B&�B;�&B7�/B7�1B;�7B;c��QoU2UO
QWO22UO
QUO22P![cg[O29^tt^2o[O[O
2PPP2J�)%fhK�9hh9h)c�r�[P![c!oSOP2[2gPo=hh9hr)�nonsenserrMrd)r^s rr�1NameErrorTests.test_issue45826_focused.<locals>.f�s1��
*��� �
*�� � ��&�'�)�)��
*�s��	6�6�1�6r�rd)rdrrrhr*r+r�r,r�s&  r�test_issue45826_focused�&NameErrorTests.test_issue45826_focused�s���	*�	4�
�C�
	
�
�
�j�#�,�,�.�1��
�
�)�3�<�<�>�:��!�	4��(�(�*�*�c��"�"�C�L�L�N�3�+�*�*�*��	4�s5�A�	C�C�7)B+� C�+B<�4B<�6C�<Cc�:�QoUO[U2P!)c�$`�U1QkQ2nP!)c� :�\sQsQsYQsP!)�;NameErrorTests.test_gh_111654.<locals>.f.<locals>.TestClassi�r6r���	TestClasss�rr�r��s���rr�r6r�s@rr�(NameErrorTests.test_gh_111654.<locals>.f�s
���
�
r)rfrW�rrs& r�test_gh_111654�NameErrorTests.test_gh_111654�s��	�	
���)�Q�'rr6)
r!r"r#r$r~r�r�r�r%r&r's@rr{r{�s����0�-� ;�"(�(rr{c�4`�\sQsQsnQsQsQsQsUsP!)�AttributeErrorTestsi�c�*�[Q2oUOUO2UOUO2[	2o[QQUQ5oUOUOQ2UO
UOU2P!)zOuch!�Ouch�carryr)rGrirrrr@r�)rr;�sentinels&  r�test_attributes�#AttributeErrorTests.test_attributes�sk���W�%�����#�(�(�#����#�'�'�"��8���V�'�x�@��������7�+��
�
�c�g�g�x�(rc��QQ2oU2oUO[
O
UQ2P![cBoSOQSO2SOX#O2Po=K`Po=hh9h[cCoSOQSO2SOX#O2Po=P!Po=hh9h)c��\sQsQsPsQsP!)�<AttributeErrorTests.test_getattr_has_name_and_obj.<locals>.Ai�r6)r!r"r#r$�blechr%r6rrr0r��s���Err0r})r}rGr@rrr�__getattribute__�rr0rr;s&   r�test_getattr_has_name_and_obj�1AttributeErrorTests.test_getattr_has_name_and_obj�s���	�	��c��	+��I�I�	+��#�#�C��1��	�	+����W�c�h�h�/����S�'�'�*�*��	+��
�	+����W�c�h�h�/����S�'�'�*�*��	+�s8�9�B�	B�B�7B�B�	C�C�7C�Cc���QQ2oU2oUO2P![cCoSOQSO2SOX#O2Po=P!Po=hh9h)c�(`�\sQsQsnQsQsUsP!)�GAttributeErrorTests.test_getattr_has_name_and_obj_for_method.<locals>.Ai�c��P!rr6r3s&rr��MAttributeErrorTests.test_getattr_has_name_and_obj_for_method.<locals>.A.blech�s��rr6)r!r"r#r$r�r%r&r's@rr0r��s����
�
rr0r})r}rGr@rrr�s&   r�(test_getattr_has_name_and_obj_for_method�<AttributeErrorTests.test_getattr_has_name_and_obj_for_method�s\��	�	��c��	+��I�I�K���	+����W�c�h�h�/����S�'�'�*�*��	+�s�&�	A3�A3�7A.�.A3r6)	r!r"r#r$r�r�r�r%r&r's@rr�r��s����	)�+� 
+�
+rr�c�F`�\sQsQsnQsQsQsQsQsQs	Qs
UsP!)	�ImportErrorTestsic��[Q2oUOUO2UOUO2[QQQ5oUO	UOQ2UOUO2[QQQ5oUO	UOQ2UOUO2[QQQQ5oUO	UOQ2UO	UOQ2QoUO[U29^tt^2[QQQ	5PPP2UO[U29^tt^2[QQ
QQ5PPP2UO[U29^tt^2[QQQQ
5PPP2UO[U29^tt^2[QQ	5PPP2UO[U29^tt^2[QQP	Q5PPP2P!)%fhK�9h)%fhK�9h)%fhK�9h)%fhK�9h)%fhP!9h)�test�
somemodule�r�somepath��path�somename)r�rz<ImportError\(\) got an unexpected keyword argument 'invalid'�keyword)�invalidr)rr�r�)r�r�)r��another)rPrirr�r@r�rb)rr;rs&  rr�� ImportErrorTests.test_attributess����&�!�����#�(�(�#����#�(�(�#��&�|�4��������<�0����#�(�(�#��&�z�2��������:�.����#�(�(�#��&�z�
�C��������:�.�������:�.�M��
�
#�
#�I�s�
3�
3���	�2�4��
#�
#�I�s�
3�
3���V�Y�?�4��
#�
#�I�s�
3�
3���V�Y�?�4��
#�
#�I�s�
3�
3��	�*�4��
#�
#�I�s�
3�
3���	�4�@�4�
3�4�
3��4�
3��4�
3��4�
3��4�
3�
3�sZ�1H�%H.�I�
I�I'�H+	�$H+	�.H>	�7H>	�I	�
I	�I$	�I$	�'I8	�0I8	c��[QQQQ5oUOUOQ2UOUOQ2UOUOQ2UOUO
Q2UO
2UOUOQ2UOUOP2UOUOP2UOUO
P2P!)r�rr��rr��r�r6)rPr@r�rrr�rrs& r�test_reset_attributes�&ImportErrorTests.test_reset_attributes*s����&�v�F�;��������9�-�������&�)�������6�*�������6�*�	����������2�&�������$�'�������4�(�������4�(rc���[P[1P	Q59^tt^2Qo[U2oUO[	U2[	U22PPP2P!)%fhP!9h)rw)�quietsabc)r�BytesWarningrPr@r?)r�argr;s&  r�test_non_str_argument�&ImportErrorTests.test_non_str_argument8sJ��
�R��.�d�
;�
;��C��c�"�C����S��X�s�3�x�0�<�
;�
;�
;�s�2A�A*	�"A*	c
��[2[QQ5[QQ5[QQQ51FCD�o[Q-U@o[[O]*2FD�o[O
[OV#22oUOUOQ2UOUOQ2UOUOUO2UOUOUO2J�	[O[O1FD�oUU2oUOUOQ2UOUOQ2UOUOUO2UOUOUO2J�	CJ�	P!)r�r�r�r�r�r�r�)rrPrqr!r"rmr#r@r�rrr��copy�deepcopy)rr'�orig�protor;r:s&     r�test_copy_pickle�!ImportErrorTests.test_copy_pickle?s?���v���,���,���*�=�?�F��0��0�D��v�6�6��:�;���l�l�6�<�<��#<�=��� � ����9�5�� � ����&�1�� � ����4�9�9�5�� � ����4�9�9�5�<��Y�Y��
�
�-����g��� � ����9�5�� � ����&�1�� � ����4�9�9�5�� � ����4�9�9�5�.�?rc��[2oUO[U2Q2[Q2oUO[U2Q2[QQ2oUO[U2Q2[QQ5oUO[U2Q2[QQQ5oUO[U2Q2[Q	Q
5oUO[U2Q2[QQ	Q
5oUO[U2Q2[Q
Q	Q5oUO[U2Q2[QQ
Q	Q5oUO[U2Q2[QQ
Q	Q5oUO[U2Q2P!)z
ImportError()r�zImportError('test')�casezImportError('test', 'case')r�r�zImportError(name='somemodule')z&ImportError('test', name='somemodule')r�r�zImportError(path='somepath')z$ImportError('test', path='somepath')r�r�z-ImportError(name='somename', path='somepath')z5ImportError('test', name='somename', path='somepath')z=ModuleNotFoundError('test', name='somename', path='somepath'))rPr@r �ModuleNotFoundErrorrs& r�	test_repr�ImportErrorTests.test_reprRsQ���m������c��O�4��&�!������c��$9�:��&�&�)������c��$A�B��|�,������c��$D�E��&�|�4������c��$L�M��z�*������c��$B�C��&�z�2������c��$J�K��z�
�;������c��?�	A��&�z�
�C������c��G�	I�"�&�z�
�K������c��O�	Qrc�b�UO[29^tt^2o]PH
oPPP2UOWOO
Q2UO
UOO2UO[UO2Q2P!)%fhK�9h)r�does_not_existzNModuleNotFoundError("No module named 'does_not_exist'", name='does_not_exist'))	rfr�r�r@r�rrir�r )rr�r�s&  r�0test_ModuleNotFoundError_repr_with_failed_import�AImportErrorTests.test_ModuleNotFoundError_repr_with_failed_importtsy��
�
�
�2�
3�
3�r�!�4�	
������*�*�,<�=����"�,�,�+�+�,�����b�l�l�+�^�	`�
4�
3�s�B�B.	�'B.	r6)r!r"r#r$r�r�r�r�r�r�r%r&r's@rr�r�s.���� A�D)�1�6�& Q�D`�`rr�c���[U[2%c?[[QQQ59^tt^2oUO	[U22PPP2L2[[Q29^tt^2oUO	U2PPP2[OQQQ[2vq#oUOQ2O2!)%fhKO9h)%fhKb9h)rJrKrL�wbr�z-X�utf8)
r�r?rir�writerr
r�r��
splitlines)r��testfile�_rc�_outrAs&    r�
run_scriptr�s����&�#���
�&�#��
0�
0�H��N�N�6�&�>�*�1�
0��&�$�
�
�8��N�N�6�"� �"�8�8���f�f�U�N�C�s��:�:�g��)�)�+�+�
1�
0�� �
�s#�C�.C�C	�C	�C*	�#C*	c�H`�\sQsQsnQs\Q2s\Q2sQsUs	P!)�AssertionErrorTestsi�c�&�[[2P!r)rrr3s&r�tearDown�AssertionErrorTests.tearDown�s	���v�rc
��Q,QN1Q,QN1Q,Q
N1Q,QN1Q,QN1QO2,QN1QOQ2,QN1[QO2*,QN1Q,QN1Q,QN1Q	,QN1,oSFDHvq#UOUQ
59^tt^2[U2oUO	UQPU2PPP2JJ	P!)%fhJ_9h)zassert Nonezassert 0zassert 1 > 2zassert 1 > 2 and 3 > 2uassert 1 > 2, "messäge"u)# coding: latin1
assert 1 > 2, "messäge"�latin1z<
             assert (
                 1 > 2)
             zG
             assert (
                 1 > 2), "Message"
             zZ
             assert (
                 1 > 2), \
                 "Message"
             �r�)z    assert Nonez           ^^^^rM)z    assert 0z           ^rM)z    assert 1 > 2�           ^^^^^rM)z    assert 1 > 2 and 3 > 2z           ^^^^^^^^^^^^^^^rM)u    assert 1 > 2, "messäge"r�uAssertionError: messäge)z
    1 > 2)�	    ^^^^^rM)z    1 > 2), "Message"r��AssertionError: Message)z
    1 > 2), \r�r����)r�rr>r�r@�r�casesr�r(�results&    r�test_assertion_error_location�1AssertionErrorTests.test_assertion_error_location�s&����
���
���
�&��
�(��
�(�
.�
.�
0��
�:�
@�
@��
J��
��2�9�9�;�
;��
���		
���		
��
�

�_Z
��v!&��F����V��,�,�#�F�+��� � �����h�7�-�,�!&�,�,�,�s�!C	�C
�C
c
��QQQ,1Q,QN1,oSFDRvq#UOUQ59^tt^2[U2oUOU[U2'PU2PPP2JT	P!)%fhJi9h)zJ
             assert (
                 1 > 2
             )
             z	    1 > 2rMze
             assert (
                 1 < 2 and
                 3 > 4
             )
             r�)z
    1 < 2 andz	    3 > 4rM)r>r�r@rlr�s&    r�test_multiline_not_highlighted�2AssertionErrorTests.test_multiline_not_highlighted�s���� �$��	
���

�
��0!&��F����V��,�,�#�F�+��� � ���X����!8�(�C�-�,�!&�,�,�,�s�+A)	�)A:
�2A:
r6)
r!r"r#r$r�rr�r�r%r&r's@rr�r��s7������_8��_8�B�D��Drr�c�v`�\sQsQsnPs\Q2s\Q2sQsQs	Qs
QsQsQ	s
Q
sQsQsUsP!)
�SyntaxErrorTestsi	c��Q[Q21Q	[Q21Q
[Q21Q[Q21Q[Q21Q
[Q21Q[Q21Q[Q21Q[Q21,	oSFD+vq#UOUQ59^tt^2[QU2g	P![c�o[O29^tt^2o[
O[
O2PPP2L)%fhL9hSOSWO22SoPo=LPo=hh9hPPP2J�)%fhJ�9h)�bad.pyz�
               File "bad.py", line 1
                 abcdefg
                  ^^^^^
             SyntaxError: bad bad
             z�
               File "bad.py", line 1
                 abcdefg
                  ^
             SyntaxError: bad bad
             z�
               File "bad.py", line 1
                 abcdefg
                    ^
             SyntaxError: bad bad
             zn
               File "bad.py", line 1
                 abcdefg
             SyntaxError: bad bad
             z�
               File "bad.py", line 1
                 abcdefg
                  ^^^^^^
             SyntaxError: bad bad
             )r��bad bad�r�r�r7�abcdefgr��)r�r�r7r�r�r8)r�r�r7r�r����)r�r�rHr�r�r7)r�r����r�r�r�)r�r�r�r�r�r�)r�r�rr�r�r)r�r�rr�r�rS�r�r�r7r�r��d)
rr>r[rrrhr*r+r�r,)rr�r�r(r;rA�
the_exceptions&      r�test_range_of_offsets�&SyntaxErrorTests.test_range_of_offsets	s��/�
���
�/�
���
�0�
���
�/�
���
�1�
���
�1�
���
�/�
���
�/�
���
�1�
���
�MN
��^$�N�D����4��(�(�(�%�i��6�6�$��#�(� �0�0�2�2�c��*�*�C�L�L�N�;�3�2�2�2���M�M�(�C�L�L�N�;�$'�M��	(��"�)�(�(�(�sZ�E	�B$�$	D=�.D=�/D8�)C>�5	D8�>D�D�	*D8�3E	�8D=�=E	�E
�E
c�l�QQ[2oUQQ2g[c�o[O29^tt^2o[O[O
2PPP2L)%fhL9hSO
QWO22Po=P!Po=hh9h)c��\sQsQsQsP!)�5SyntaxErrorTests.test_subclass.<locals>.MySyntaxErrorip	r6r�r6rr�
MySyntaxErrorrp	r�rrr�z0
  File "bad.py", line 1
    abcdefg
     ^^^^^
r�)r[rrrhr*r+r�r,)rrr;rAs&   r�
test_subclass�SyntaxErrorTests.test_subclassn	s���	�K�	�		��	�+L�M�M���	��(�(�*�*�c��"�"�C�L�L�N�3�+�*�*�*���M�M��	�\�\�^�	
�
��	�s7�	�	B3�B3�B.�)A5�,	B.�5B�>B�(B.�.B3c��UO[[2Qo[UO	Q22oUOUQ*Q2UOUQ	*Q2UOUP*Q2Qo[U2oUOUQ*Q2UOUQ	*Q2P!)
uU# -*- coding: cp437 -*-
"¢¢¢¢¢¢" + f(4, x for x in range(1))
�cp437u@    "┬ó┬ó┬ó┬ó┬ó┬ó" + f(4, x for x in range(1))z-                          ^^^^^^^^^^^^^^^^^^^z7SyntaxError: Generator expression must be parenthesizedz# -*- coding: ascii -*-

(
z    (z    ^r�r�)�
addCleanuprrr�r�r@)rr�rAs&  r�test_encodings�SyntaxErrorTests.test_encodings~	s��������'�
M�	�����w�/�0������R��"d�e�����R��"Q�R�����R��"[�\�2���� ������R��'�*�����R��'�*rc��UO[[2[Q2oUO	QUP*2P!)��z8SyntaxError: Non-UTF-8 code starting with '\x89' in file)r
rrr�r��rrAs& r�
test_non_utf8�SyntaxErrorTests.test_non_utf8�	s0�������'���!���
�
�Q�SV�WY�SZ�[rc�
`�U1QkoUQ2oRO[U2Q2ROUO2ROUO]2ROUO
]2UQO
22oRO[U2Q2ROUO2ROUO]2ROUO
]2U[QO
2*2oRO[U2Q2ROUO2ROUO]2ROUO
]2UQO
Q22oRO[U2Q2ROUO2ROUO]2ROUO
]2UQ2oRO[U2Q2ROUO2ROUO]2ROUO
]2UQ2oRO[U2Q2ROUO2ROUO]2ROUO
]2P!)c�:�RO[29^tt^2o[UQQ2PPP2UO!)%fhWO!9h)r^r_)rfr[rrr�)r�r�rs& �r�try_compile�8SyntaxErrorTests.test_string_source.<locals>.try_compile�	sD����"�"�;�/�/�2���
�F�3�0��<�<��0�/��<�<��s�A�A	�A	�return "ä"z,'return' outside function (<string>, line 1)�# coding: latin1
return "ä"r�z,'return' outside function (<string>, line 2)��return "ä" #ääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääää��return "ä" # ääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääää)r@r?rir�r�r�r�r)rrr;sf  r�test_string_source�#SyntaxErrorTests.test_string_source�	sE���	 �
�-�(������S��#Q�R����#�(�(�#�������Q�'��������,��-�.�.�0�1������S��#Q�R����#�(�(�#�������Q�'��������,��(�]�%9�%9�%;�;�<������S��#Q�R����#�(�(�#�������Q�'��������,��9�@�@��J�K������S��#Q�R����#�(�(�#�������Q�'��������,��5�6������S��#Q�R����#�(�(�#�������Q�'��������,��6�7������S��#Q�R����#�(�(�#�������Q�'��������,rc��UO[[2[Q2oUO	UQP,QN2[QO22oUO	UQP,QN2[[QO2*2oUO	UQP,QN2[QOQ22oUO	UQP,QN2[Q2oUO	UQ	PQQ,2UO	UQ*Q*Q
2[Q2oUO	UQ	PQQ,2UO	UQ*Q*Q2P!)
r�&SyntaxError: 'return' outside functionrr�z    ^^^^^^^^^^^:NrNr�)u    return "ä"z    ^^^^^^^^^^r rr�u�    return "ä" #ääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääru�    return "ä" # äääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääääää)r
rrr�r@r�rrs& r�test_file_source�!SyntaxErrorTests.test_file_source�	si�������'���'������R�S��$C�	D�
��-�-�/�0������R�S��$C�	D�
��M�$8�$8�$:�:�;������R�S��$C�	D�
�8�?�?��I�J������R�S��$C�	D�
�4�5������R�S��*�A�$C�	D�	
����R����(E�F��5�6������R�S��*�A�$C�	D�	
����R����(F�Grc��Qo[QU2oUvq4qVqxUOV2O2UOVBO2UOVrO2UOVRO
2UOV�O2UOVbO2UOQUO2P!)r�r�r�	r[r@r�r�r�r�r�r�r)	rr�rr�r�r��errorr�r�s	&        r�test_attributes_new_constructor�0SyntaxErrorTests.test_attributes_new_constructor�	s���2��#�I�t�4�
�BF�?��&������#9�#9�:�����!5�!5�6�����%=�%=�>�����!5�!5�6�����%=�%=�>����� 2� 2�3�����M�$5�$5�6rc��Qo[QU2oUvq4qVUOV2O2UOVBO2UOPUO2UOVRO
2UOPUO2UOVbO2UOQUO2P!)r�r�)r�r�r7r�r$)rr�rr�r�r�r%s&      r�test_attributes_old_constructor�0SyntaxErrorTests.test_attributes_old_constructor�	s���*��#�I�t�4�
�*.�'��&�����#9�#9�:�����!5�!5�6�����}�7�7�8�����!5�!5�6�����}�7�7�8����� 2� 2�3�����M�$5�$5�6rc��QoUO[[QU2QoUO[[QU2QoUO[[QU2P!)r�r�)r�r�r7)r�r�r7rHrS�r��)r�r�r7r�r�)rfrbr[�rr�s& r�test_incorrect_constructor�+SyntaxErrorTests.test_incorrect_constructor�	sM�������)�[�)�T�B�.�����)�[�)�T�B�-�����)�[�)�T�Brc��[QQ2oUOQQ2UOUOQ2UOUOQ2UOUO
Q2UOUO]2UOUO]2UOUOQ2UOUO]2UOUO]2[QQ2oUOQQ2UOUOQ2UOUOQ2UOUO
Q2UOUO]2UOUO]2UOUOQ2UOUO2UOUO2P!)	r�new_msg�new_file.py�new_txt)zfile.pyr�r7�txtr7r8�r3r7r8r4r8rH)r2r6�r3r7r8r4)r2r7)r[rr@rr�r�r�r�r�r�r�rir:s& r�test_syntax_error_memory_leak�.SyntaxErrorTests.test_syntax_error_memory_leak
sx����=�>��	�
�
�9�D�E�������	�*�������!T�U�������]�3�������1�%�������1�%��������+�������q�)�������q�)���=�>��	�
�
�9�>�?�������	�*�������!N�O�������]�3�������1�%�������1�%��������+����!�,�,�'����!�,�,�'rr6)r!r"r#r$�maxDiffrrr	rrrr!r&r)r/r8r%r&r's@rr�r�	se�����G��X(��X(�t�
��
�+�"\�(-�T$H�L
7�
7�C�(�(rr�c�(`�\sQsQsnQsQsUsP!)�TestInvalidExceptionMatcheri 
c�P�UO[29^tt^2[g]*cLh9hPPP2L)%fhL9hSO[29^tt^2[g[]*1cLh9hPPP2P!)%fhP!9hr6)rfrbrcr3s&r�'test_except_star_invalid_exception_type�CTestInvalidExceptionMatcher.test_except_star_invalid_exception_type!
s���
�
�
�y�
)�
)�
� � ���
��
���	*�
)�
)�
)���
�
�y�
)�
)�
� � ����#�
��
���	*�
)�
)�
)�s]�>�'�1�1�>�1�>�A	�A	�.B�0A6�6B�B�B�B�B�B%	�B%	r6)r!r"r#r$r>r%r&r's@rr<r< 
s�����rr<c�d`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sUsP!)�PEP626Testsi/
c��U2UOQ2,oWOoU%caUOoSOUOePL&UOUOO*
2UOoJhUO[U2U2P![coSOoPo=K�Po=hh9h)rT)rsr2r�r�r�r�f_linenor��co_firstlinenor@�tuple)rrr(r@�t�lines�frames&&*    r�lineno_after_raise�PEP626Tests.lineno_after_raise1
s���	-�
�C�
�I�I�+�,���
�I�I����J�J�E��L�L����.�����u�|�|�:�:�:�
��	�	�A�����u��x�0���	!�� � �A��	!�s�B.�.	C�8C�9C
�
Cc�2�QoUOU]2P!)c��]]*P!r�r6r6rr�simple�:PEP626Tests.test_lineno_after_raise_simple.<locals>.simpleD
s��
�a�C�r�rI)rrMs& r�test_lineno_after_raise_simple�*PEP626Tests.test_lineno_after_raise_simpleC
s��	�	
�����*rc�2�QoUOU]2P!)c�>�]]*P!]]*P!9hr�r6r6rr�	in_except�@PEP626Tests.test_lineno_after_raise_in_except.<locals>.in_exceptJ
s!��
��!����
��!���s�	�rO)rrTs& r�!test_lineno_after_raise_in_except�-PEP626Tests.test_lineno_after_raise_in_exceptI
s��	�	
���	�1�-rc�2�QoUOU]2P!)c�N�]]*P![coPo=P!Po=hh9hr�)rbr?s r�other_except�@PEP626Tests.test_lineno_after_other_except.<locals>.other_exceptS
s#��
��!�����
���
�s�	�	$�$�$rO)rrZs& r�test_lineno_after_other_except�*PEP626Tests.test_lineno_after_other_exceptR
s��	�
	
����a�0rc�2�QoUOU]2P!)c�`�]]*P![co]]*Po=P!Po=hh9hr�r1r?s r�in_named_except�@PEP626Tests.test_lineno_in_named_except.<locals>.in_named_except[
s*��
��!�����
��!����
�s�	�	-�-�	(�-rO)rr`s& r�test_lineno_in_named_except�'PEP626Tests.test_lineno_in_named_exceptZ
s��	�	
�����3rc�2�QoUOU]2P!)c�&�]]*P!h9hr�r6r6rr�in_try�.PEP626Tests.test_lineno_in_try.<locals>.in_tryd
s��
��!�����s�	�rO)rrfs& r�test_lineno_in_try�PEP626Tests.test_lineno_in_tryc
s��	�
	
�����*rc�2�QoUOU]2P!)c�:�]]*P!]]*h9hr�r6r6rr�in_finally_normal�DPEP626Tests.test_lineno_in_finally_normal.<locals>.in_finally_normall
s"��
���!�����!���s�rO)rrls& r�test_lineno_in_finally_normal�)PEP626Tests.test_lineno_in_finally_normalk
���	�	
��� 1�1�5rc�2�QoUOU]2P!)c�J�]]*]]*P!]]*h9hr�r6r6rr�in_finally_except�DPEP626Tests.test_lineno_in_finally_except.<locals>.in_finally_exceptu
s&��
��!���!�����!���s�	�"rO)rrss& r�test_lineno_in_finally_except�)PEP626Tests.test_lineno_in_finally_exceptt
rprc�N`�QQ2nU1QkoUOU]2P!)c�.`�\sQsQsnQsQsQsUsP!)�0PEP626Tests.test_lineno_after_with.<locals>.Noopi~
c��U!rr6r3s&rr��:PEP626Tests.test_lineno_after_with.<locals>.Noop.__enter__
r�rc��P!rr6r.s&*rr��9PEP626Tests.test_lineno_after_with.<locals>.Noop.__exit__�
s��rr6r�r's@r�Noopry~
s����
�
�
rr~c�v:�R29^tt^2]]*PPP2P!)%fhP!9hr�r6)r~s�r�
after_with�6PEP626Tests.test_lineno_after_with.<locals>.after_with�
s �������!�������s�
'�8	�8	rO)rr�r~s& @r�test_lineno_after_with�"PEP626Tests.test_lineno_after_with}
s$���	�	�
	�	
���
�A�.rc��QoUOU]2UOOQQ5UmUOUP2P!)c��]]*P!r�r6r6rrr�8PEP626Tests.test_missing_lineno_shows_as_none.<locals>.f�
s��
�a�C�Crs�������)�co_linetable)rI�__code__r�r�s& r�!test_missing_lineno_shows_as_none�-PEP626Tests.test_missing_lineno_shows_as_none�
sA��	�����1�%��Z�Z�'�'�5T�'�U��
�����4�(rc�P`�QQ2nU1QkoUOU]]2P!)c�.`�\sQsQsnQsQsQsUsP!)�CPEP626Tests.test_lineno_after_raise_in_with_exit.<locals>.ExitFailsi�
c��U!rr6r3s&rr��MPEP626Tests.test_lineno_after_raise_in_with_exit.<locals>.ExitFails.__enter__�
r�rc��[grr�r.s&*rr��LPEP626Tests.test_lineno_after_raise_in_with_exit.<locals>.ExitFails.__exit__�
s�� � rr6r�r's@r�	ExitFailsr��
s����
�
!�
!rr�c�t:�R29^tt^2]]*PPP2P!)%fhP!9hr�r6)r�s�rr��DPEP626Tests.test_lineno_after_raise_in_with_exit.<locals>.after_with�
s�������!������s�
&�7	�7	rO)rr�r�s& @r�$test_lineno_after_raise_in_with_exit�0PEP626Tests.test_lineno_after_raise_in_with_exit�
s&���	!�	!�	�	
���
�A�q�1rr6)r!r"r#r$rIrPrVr\rbrhrnrur�r�r�r%r&r's@rrArA/
sA����1�$+�.�1�4�+�6�6�
/�)�
2�
2rrA�__main__i���)3r�rrhr�r!r�r��codecsr�	itertoolsr�textwrapr�test.supportrrrrr	r
rr�test.support.import_helperr
�test.support.os_helperrr�test.support.warnings_helperrr�rr�rrPr2rr*r/�TestCaser9r{r�r�r�r��force_not_colorized_test_classr�r<rAr!r<r6rr�<module>r�sf���	�
��
������/�/�/�
5�1�7����!��Y���I��
+��+�v.�X�&�&�v.�r;-(�X�&�&�-(�d&+�(�+�+�&+�Vv`�x�(�(�v`�r,�CD�(�+�+�CD�L	�'�'�M(�x�(�(�M(�(�M(�`�(�"3�"3��k2�(�#�#�k2�Z�z���M�M�O���CT���I��G��s�
E � E/�&E/�.E/

Youez - 2016 - github.com/yon3zu
LinuXploit