python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
test_with.cpython-312.opt-2.pyc

ΑehF	dZdZddlZddlZddlmZddlmZmZm	Z	GddeZ
dZGd	d
eZ
edZGdd
eZGddeZGddej"ZGddeZGddej"eZGddej"eZGddeej"ZGddej"ZGddej"ZGddej"ZGd d!ej"Zed"k(rej8yy)#z
Mike Blandzmbland at acm dot orgN)deque)_GeneratorContextManagercontextmanagernullcontextc*eZdZfdZdZdZxZS)MockContextManagercHt||d|_d|_d|_yNF)super__init__enter_calledexit_called	exit_args)selfargs	__class__s  B/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_with.pyrzMockContextManager.__init__s'
$! c:d|_tj|SNT)r
r	__enter__rs rrzMockContextManager.__enter__s '11$77rcTd|_|||f|_tj||||Sr)rrr__exit__rtypevalue	tracebacks    rrzMockContextManager.__exit__s6y1'00t16	C	Cr)__name__
__module____qualname__rrr
__classcell__)rs@rrr
s8Crrcfd}|S)Nct||SN)r)rkwdsfuncs  rhelperz#mock_contextmanager.<locals>.helper s!$d33r)r'r(s` rmock_contextmanagerr*s
4MrceZdZdZy)MockResourcec d|_d|_yr
)yieldedstoppedrs rrzMockResource.__init__&srNrr r!rr)rrr,r,%srr,c#^Kt}	d|_|d|_y#d|_wxYwwr)r,r.r/)mocks rmock_contextmanager_generatorr3+s,>D
ts-!-	*-ceZdZdZdZdZy)Nestedc ||_d|_yr%)managersenteredrr7s  rrzNested.__init__7s 
rcD|jtdt|_g}	|jD]<}|j	|j|jj
|>	|S#|jtjsY|SxYw)NzContext is not reentrant)
r8RuntimeErrorrr7appendr
appendleftrsysexc_info)rvarsmgrs   rrzNested.__enter__;s<<#9::w	}}
-CMMO,'',
-	 4==#,,.12sAA88$Bc|}|jD]}	|j|rd}d|_||ur|y#t$r"}t|||jf}Yd}~Kd}~wwxYwN)NNN)r8r
BaseExceptionr
__traceback__)rr?exrAes     rrzNested.__exit__Isv<<	3C
33<<$+B	3
XH!
31gq!//2
3s4	AAANrr r!rrrr)rrr5r55s
rr5ceZdZdZdZdZy)
MockNestedcZtj|g|d|_d|_d|_yr
)r5rr
rrr9s  rrzMockNested.__init__Zs*(x(! rc:d|_tj|Sr)r
r5rrs rrzMockNested.__enter__`s %%rcJd|_||_tj|g|Sr)rrr5rrr?s  rrzMockNested.__exit__ds%!t/h//rNrHr)rrrJrJYs&0rrJcHeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
Zy)FailureTestCasec6d}|jt|y)Nc:t5dddy#1swYyxYwr%foor)rrfooNotDeclaredz5FailureTestCase.testNameError.<locals>.fooNotDeclaredlsNNNs)assertRaises	NameError)rrUs  r
testNameErrorzFailureTestCase.testNameErrorks	)^4rc\Gddtfd}|jtd|y)NceZdZdZy)<FailureTestCase.testEnterAttributeError1.<locals>.LacksEntercyr%r)rs    rrzEFailureTestCase.testEnterAttributeError1.<locals>.LacksEnter.__exit__rrN)rr r!rr)rr
LacksEnterr[q
rr^cB}|5dddy#1swYyxYwr%r))rTr^s r
fooLacksEnterz?FailureTestCase.testEnterAttributeError1.<locals>.fooLacksEnterus,CNNNthe context managerobjectassertRaisesRegex	TypeError)rrar^s  @rtestEnterAttributeError1z(FailureTestCase.testEnterAttributeError1ps)				
y*?Orc\Gddtfd}|jtd|y)NceZdZy)CFailureTestCase.testEnterAttributeError2.<locals>.LacksEnterAndExitNrr r!r)rrLacksEnterAndExitrk{srrmcB}|5dddy#1swYyxYwr%r))rTrms rfooLacksEnterAndExitzFFailureTestCase.testEnterAttributeError2.<locals>.fooLacksEnterAndExit~s#%CNNNrbrcrd)rrorms  @rtestEnterAttributeError2z(FailureTestCase.testEnterAttributeError2zs*				
y*?AUVrc\Gddtfd}|jtd|y)NceZdZdZy)9FailureTestCase.testExitAttributeError.<locals>.LacksExitcyr%r)rs rrzCFailureTestCase.testExitAttributeError.<locals>.LacksExit.__enter__r]rN)rr r!rr)rr	LacksExitrsr_rrucB}|5dddy#1swYyxYwr%r))rTrus rfooLacksExitz<FailureTestCase.testExitAttributeError.<locals>.fooLacksExits+CNNNrbzthe context manager.*__exit__rd)rrwrus  @rtestExitAttributeErrorz&FailureTestCase.testExitAttributeErrors)				
y*I<Xrc8d}|jt||y)Nct|ddy)Nsingle)compile)ss rshouldRaiseSyntaxErrorzGFailureTestCase.assertRaisesSyntaxError.<locals>.shouldRaiseSyntaxErrorsAr8$r)rVSyntaxError)rcodestrrs   rassertRaisesSyntaxErrorz'FailureTestCase.assertRaisesSyntaxErrors	%+'=wGrcH|jd|jdy)Nzwith mock as None:
  passzwith mock as (None):
  passrrs rtestAssignmentToNoneErrorz)FailureTestCase.testAssignmentToNoneErrors$$$%AB$$
	rcH|jd|jdy)Nzwith mock as None,:
  passzwith mock as (None,):
  passrrs r,testAssignmentToTupleOnlyContainingNoneErrorz<FailureTestCase.testAssignmentToTupleOnlyContainingNoneErrors$$$%BC$$
	rc&|jdy)Nz%with mock as (foo, None, bar):
  passrrs r(testAssignmentToTupleContainingNoneErrorz8FailureTestCase.testAssignmentToTupleContainingNoneErrors$$
	rcGddtfd}jt|jjdy)NceZdZdZdZy)4FailureTestCase.testEnterThrows.<locals>.EnterThrowsctd)NzEnter threwr;rs rrz>FailureTestCase.testEnterThrows.<locals>.EnterThrows.__enter__s
"=11rcyr%r)rrs  rrz=FailureTestCase.testEnterThrows.<locals>.EnterThrows.__exit__r]rNrr r!rrr)rrEnterThrowsrs
2
rrc\}d_|5_	dddy#1swYyxYwr%rS)ctrrs rshouldThrowz4FailureTestCase.testEnterThrows.<locals>.shouldThrows0BDH
tx


s"+)rerVr;assertEqualrT)rrrs` @rtestEnterThrowszFailureTestCase.testEnterThrowss:	&		
	
,44(rcZGddtfd}|jt|y)NceZdZdZdZy)2FailureTestCase.testExitThrows.<locals>.ExitThrowscyr%r)rs rrz<FailureTestCase.testExitThrows.<locals>.ExitThrows.__enter__srctd)N*rrs  rrz;FailureTestCase.testExitThrows.<locals>.ExitThrows.__exit__s
"2&&rNrr)rr
ExitThrowsrs

'rrc@5	dddy#1swYyxYwr%r))rsrrz3FailureTestCase.testExitThrows.<locals>.shouldThrows 



s)rerVr;)rrrs  @rtestExitThrowszFailureTestCase.testExitThrowss&	'	'
		
,4rN)
rr r!rXrhrprxrrrrrrr)rrrPrPjs85
PWYH


)	5rrPcFeZdZdZdZdZdZdZdZdZ		dd	Z
d
Zy)ContextmanagerAssertionMixinc$td|_y)Nztest exception)r;TEST_EXCEPTIONrs rsetUpz"ContextmanagerAssertionMixin.setUps*+;<rc|j|j|j|j|j	|j
dyr%)
assertTruer
assertFalserrrrmock_managers  rassertInWithManagerInvariantsz:ContextmanagerAssertionMixin.assertInWithManagerInvariantss>112112//6rc|j|j|j|j|j|j|yr%)rr
rrr)rrrs   r assertAfterWithManagerInvariantsz=ContextmanagerAssertionMixin.assertAfterWithManagerInvariantss<112001//;rc(|j|dyrC)rrs  r'assertAfterWithManagerInvariantsNoErrorzDContextmanagerAssertionMixin.assertAfterWithManagerInvariantsNoErrors--l	 rcp|j|j|j|jyr%)rr.rr/rmock_generators  rassertInWithGeneratorInvariantsz<ContextmanagerAssertionMixin.assertInWithGeneratorInvariantss(..///0rcp|j|j|j|jyr%rr.r/rs  r)assertAfterWithGeneratorInvariantsNoErrorzFContextmanagerAssertionMixin.assertAfterWithGeneratorInvariantsNoError&../../rc|jr%)rrs rraiseTestExceptionz/ContextmanagerAssertionMixin.raiseTestExceptions!!!rNc|j|j|j|j|>|j|jd|j
t
|j
}|j|jd||j|jd||j|jddy)Nr)	rr
rrrrrassertIsInstanceassertIsNot)rrexc_types   r)assertAfterWithManagerInvariantsWithErrorzFContextmanagerAssertionMixin.assertAfterWithManagerInvariantsWithErrors112001\33A68K8KLD//0H//2H=l44Q7B//2D9rcp|j|j|j|jyr%rrs  r+assertAfterWithGeneratorInvariantsWithErrorzHContextmanagerAssertionMixin.assertAfterWithGeneratorInvariantsWithErrorrrr%)rr r!rrrrrrrrrr)rrrrs5=7
<
 10"<@
:0rrc6eZdZdZdZdZdZdZdZdZ	y)	NonexceptionalTestCasecDt5	dddy#1swYyxYwr%r3rs rtestInlineGeneratorSyntaxz0NonexceptionalTestCase.testInlineGeneratorSyntaxs 
*
,				scjt}|5	ddd|j|y#1swYxYwr%)r3r)rr2s  rtestUnboundGeneratorz+NonexceptionalTestCase.testUnboundGenerators3,.
		44T:		s)2ct5}|j|ddd|jy#1swYxYwr%r3rrrrTs  rtestInlineGeneratorBoundSyntaxz5NonexceptionalTestCase.testInlineGeneratorBoundSyntaxs=
*
,	6005	6	
66s;	6	6s	7Acd}t5}|j|ddd|j|y#1swYxYwr%rrs  r*testInlineGeneratorBoundToExistingVariablezANonexceptionalTestCase.testInlineGeneratorBoundToExistingVariables@
*
,	6005	666s;	6	6s	9Act5|_|j|jddd|j|jy#1swY%xYwr%)r3rTrrrs r(testInlineGeneratorBoundToDottedVariablez?NonexceptionalTestCase.testInlineGeneratorBoundToDottedVariablesE
*
,	;00:	;66txx@	;	;s!AAct}|5}|j||j|ddd|j|j	|y#1swY,xYwr%)r3rrrr)rr2rTs   rtestBoundGeneratorz)NonexceptionalTestCase.testBoundGenerators^,.
	5S005..t4	5	
66s;44T:		5	5s#AA$ct}|5}t}|5}|j||j||j||j|ddd|j||j	|j||j|ddd|j||j	y#1swYxxYw#1swY8xYwr%)r3rrrr)rmock_arTmock_bbars     rtestNestedSingleStatementsz1NonexceptionalTestCase.testNestedSingleStatementss.0

	6s24F
:3226:226:44S944S9	
:

88@::3?..v6005
	6	
44V<66s;
:
:
	6
	6s$
C"ACAC"C	C""C+N)
rr r!rrrrrrrr)rrrrs&;<<A
;<rrc6eZdZdZdZdZdZdZdZdZ	y)	NestedNonexceptionalTestCasecVtt5	dddy#1swYyxYwr%r5r3rs r"testSingleArgInlineGeneratorSyntaxz?NestedNonexceptionalTestCase.testSingleArgInlineGeneratorSyntax#s&
13
4				s(ct}t|5}|j|ddd|j|y#1swYxYwr%r3r5rrrmrTs   rtestSingleArgBoundToNonTuplez9NestedNonexceptionalTestCase.testSingleArgBoundToNonTuple'sF)+AY	2#..q1	244Q7	2	2AAct}t|5}|j|ddd|j|y#1swYxYwr%rrs   r2testSingleArgBoundToSingleElementParenthesizedListzONestedNonexceptionalTestCase.testSingleArgBoundToSingleElementParenthesizedList/sF)+AY	23..q1	244Q7	2	2rc6d}|jt|y)Nc\tt5\}}	dddy#1swYyxYwr%r)rTrs  rshouldThrowValueErrorziNestedNonexceptionalTestCase.testSingleArgBoundToMultipleElementTupleError.<locals>.shouldThrowValueError8s,578
JS#


s"+)rV
ValueError)rrs  r-testSingleArgBoundToMultipleElementTupleErrorzJNestedNonexceptionalTestCase.testSingleArgBoundToMultipleElementTupleError7s		
*&;<rct}t|}|5|j||j|ddd|j||j|y#1swY,xYwr%r3rJrr)rr*mock_nesteds   rtestSingleArgUnboundz1NestedNonexceptionalTestCase.testSingleArgUnbound=sj;= !45
	<../BC..{;	<	
445HI44[A		<	<s#A&&A/ct}t}t}t|||}|5|j||j||j||j|ddd|j||j||j||j|y#1swYNxYwr%r)rrnors     rtestMultipleArgUnboundz3NestedNonexceptionalTestCase.testMultipleArgUnboundFs)+)+)+ Aq)
	<..q1..q1..q1..{;		<
	
44Q744Q744Q744[A	<	<sACC	ctttt}|5\}}}|j||j||j||j|ddd|j	|j	|j	|j|y#1swYNxYwr%)rJr3rrrr)rrrrrs     rtestMultipleArgBoundz1NestedNonexceptionalTestCase.testMultipleArgBoundUs !>!@)+-J-LN
	<IQ1003003003..{;		<
	
66q966q966q944[A	<	<sA	B>>CN)
rr r!rrrrrrrr)rrrr!s(88=B
BBrrcTeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZy
)ExceptionalTestCasectfd}jt|jj	j
y)Nc5_jjjjdddy#1swYyxYwr%)resourcerrrcmrsrrz;ExceptionalTestCase.testSingleResource.<locals>.shouldThrowfsK
*t}222644T]]C'')
*
*
*sAAA)r3rVr;rrrrrrs` @rtestSingleResourcez&ExceptionalTestCase.testSingleResourcedsB
*
,	*
	
,466r:88Grctfd}jt|jty)NcH5_ddzdddy#1swYyxYwNrr)rrsrrz@ExceptionalTestCase.testExceptionNormalized.<locals>.shouldThrowqs(
t}Q


s!)r3rVZeroDivisionErrorrrs` @rtestExceptionNormalizedz+ExceptionalTestCase.testExceptionNormalizedos4
*
,	
	
+[966r;LMrcttfd}jt|jjj	j
j	jy)NcF5_5_jjjjjjj	ddddddy#1swYxYw#1swYyxYwr%rTrrrrrrrsrrzCExceptionalTestCase.testNestedSingleStatements.<locals>.shouldThrow|s
.48.tx66v>66v>88B88B++-.
.
...
.
.s#BA.B:BB	BB )r3rVr;rrrTrrrrrs` @@rrz.ExceptionalTestCase.testNestedSingleStatementsysj.0.0	.	
,466v>66v>88B88BrcZtttfd}jt|j	j	j	jjjjy)Nc@5\__jjjjjjjj	dddy#1swYyxYwr%)
resource_a
resource_brrr)cm_acm_brrsrrzOExceptionalTestCase.testMultipleResourcesInSingleStatement.<locals>.shouldThrows
* B$/2248224822;?44T__E44T__E'')

*
*
*sBBB)r3rJrVr;rrr
r)rrrr
rs` @@@r&testMultipleResourcesInSingleStatementz:ExceptionalTestCase.testMultipleResourcesInSingleStatements,.,. t,	*	
,466t<66t<66{C88I88Ircttd_fd}jt|j	jjjjdjjjjjjdy)Nc5_jjjj5_	ddddddy#1swYxYw#1swYyxYwr%)rTrrrrrsrrzPExceptionalTestCase.testNestedExceptionBeforeInnerStatement.<locals>.shouldThrowso
48226:44TXX>'')tx	

	

s$AA,A A, A)	%A,,A5)r3rrVr;rrrTrrr
rrrs` @@r'testNestedExceptionBeforeInnerStatementz;ExceptionalTestCase.testNestedExceptionBeforeInnerStatements.0.0		
,466v>88B	
4(,,-++,))40rcttfd}jt|jj	jjjjy)NcF5_5_jjjjjjdddj	dddy#1swY"xYw#1swYyxYwr%rrsrrzOExceptionalTestCase.testNestedExceptionAfterInnerStatement.<locals>.shouldThrows
*48Ctx66v>66v>88B88B	C
'')

*
*CC
*
*s#BAB*BB	BB )	r3rVr;rrrrTrrrs` @@r&testNestedExceptionAfterInnerStatementz:ExceptionalTestCase.testNestedExceptionAfterInnerStatementsj.0.0	*	
,466v>44V<88B66txx@rctdfd}|jtd5|dddy#1swYyxYw)Nc3Kdywr%r)r)rrrz8ExceptionalTestCase.testRaisedStopIteration1.<locals>.cm	cB5td#1swYyxYwN	from with
StopIterationrsrrzAExceptionalTestCase.testRaisedStopIteration1.<locals>.shouldThrow#
1#K00
1
1r)rrfrrs  @rtestRaisedStopIteration1z,ExceptionalTestCase.testRaisedStopIteration1sF		
		1
#
#M;
?	M			s	:AcGddtfd}|jtd5|dddy#1swYyxYw)NceZdZdZdZy)8ExceptionalTestCase.testRaisedStopIteration2.<locals>.cmcyr%r)rs rrzBExceptionalTestCase.testRaisedStopIteration2.<locals>.cm.__enter__r]rcyr%r)rs    rrzAExceptionalTestCase.testRaisedStopIteration2.<locals>.cm.__exit__r]rNrr)rrrr$

rrcB5td#1swYyxYwrrrsrrzAExceptionalTestCase.testRaisedStopIteration2.<locals>.shouldThrowrr r)rerfrrs  @rtestRaisedStopIteration2z,ExceptionalTestCase.testRaisedStopIteration2s@			1
#
#M;
?	M			s	=Actdfd}|jt5|dddy#1swYyxYw)Nc3Kdywr%r)r)rrrz8ExceptionalTestCase.testRaisedStopIteration3.<locals>.cmrrcT5ttg#1swYyxYwr%)nextiterrsrrzAExceptionalTestCase.testRaisedStopIteration3.<locals>.shouldThrows&
%48n$
%
%s')rrVrrs  @rtestRaisedStopIteration3z,ExceptionalTestCase.testRaisedStopIteration3sF
	
		%

}
-	M			s	9AcTtdfd}|jt|y)Nc3Kdywr%r)r)rrrz8ExceptionalTestCase.testRaisedGeneratorExit1.<locals>.cmrrcB5td#1swYyxYwr
GeneratorExitrsrrzAExceptionalTestCase.testRaisedGeneratorExit1.<locals>.shouldThrowrr )rrVr4rs  @rtestRaisedGeneratorExit1z,ExceptionalTestCase.testRaisedGeneratorExit1s,		
		1	
-5rcZGddtfd}|jt|y)NceZdZdZdZy)8ExceptionalTestCase.testRaisedGeneratorExit2.<locals>.cmcyr%r)rs rrzBExceptionalTestCase.testRaisedGeneratorExit2.<locals>.cm.__enter__r]rcyr%r)rs    rrzAExceptionalTestCase.testRaisedGeneratorExit2.<locals>.cm.__exit__r]rNrr)rrrr8r'rrcB5td#1swYyxYwrr3rsrrzAExceptionalTestCase.testRaisedGeneratorExit2.<locals>.shouldThrowrr )rerVr4rs  @rtestRaisedGeneratorExit2z,ExceptionalTestCase.testRaisedGeneratorExit2s&	&		1	
-5rcGddtfd}|fd}jt|fd}jt|y)NceZdZdZdZdZy)0ExceptionalTestCase.testErrorsInBool.<locals>.cmc6Gfdd}||_y)NceZdZfdZy)GExceptionalTestCase.testErrorsInBool.<locals>.cm.__init__.<locals>.BoolcSr%r))rbool_conversions r__bool__zPExceptionalTestCase.testErrorsInBool.<locals>.cm.__init__.<locals>.Bool.__bool__s.00rN)rr r!rE)rDsrBoolrB
s1rrFexit_result)rrDrFs ` rrz9ExceptionalTestCase.testErrorsInBool.<locals>.cm.__init__s11$(6 rcy)Nr)rs rrz:ExceptionalTestCase.testErrorsInBool.<locals>.cm.__enter__src|jSr%rGrabcs    rrz9ExceptionalTestCase.testErrorsInBool.<locals>.cm.__exit__s'''rNrHr)rrrr?s
*


(rrcdd5jddddy#1swYyxYw)Ncyrr)r)rr<lambda>zJExceptionalTestCase.testErrorsInBool.<locals>.trueAsBool.<locals>.<lambda>rShould NOT see thisfailrsr
trueAsBoolz8ExceptionalTestCase.testErrorsInBool.<locals>.trueAsBool-L!
1		/0
1
1
1&/cdd5jddddy#1swYyxYw)Ncyr
r)r)rrrRzKExceptionalTestCase.testErrorsInBool.<locals>.falseAsBool.<locals>.<lambda>rSrzShould raiserUrsrfalseAsBoolz9ExceptionalTestCase.testErrorsInBool.<locals>.falseAsBools,M"
*		.)
*
*
*rYcdd5jddddy#1swYyxYw)NcddzSrr)r)rrrRzJExceptionalTestCase.testErrorsInBool.<locals>.failAsBool.<locals>.<lambda>!s
AqDrrTrUrsr
failAsBoolz8ExceptionalTestCase.testErrorsInBool.<locals>.failAsBool rXrY)rerVAssertionErrorr)rrWr\r_rs`   @rtestErrorsInBoolz$ExceptionalTestCase.testErrorsInBoolsJ		(		(	1		*	
.+6	1	
+Z8rN)rr r!rrrrrrr!r)r/r5r<rar)rrrrcsC	HNC"J&1*A"

669rrc*eZdZdZdZdZdZdZy)NonLocalFlowControlTestCasecd}	|dz
}t5|dz
}	ddd|j|dy#1swYnxYw|dz
}C)Nrr
dr3rrcounters  r
testWithBreakz)NonLocalFlowControlTestCase.testWithBreak(s\qLG.0
2

	
"%	


sNGs5>cd}	|dz
}|dkDrnt5|dz
}	ddd&|j|dy#1swYnxYw|dz
}J)Nrrrrerfrhris  rtestWithContinuez,NonLocalFlowControlTestCase.testWithContinue2skqLG{.0
2


	
"%	


sNGs	<Ac8d}|j|dy)Ncld}	|dz
}t5|dz
}|cdddS#1swYnxYw|dz
}2)Nrrrerfr)rjs rrTz7NonLocalFlowControlTestCase.testWithReturn.<locals>.foo?sJG124#rMG"###3s$-rg)rrs  rtestWithReturnz*NonLocalFlowControlTestCase.testWithReturn>s		
#rcRd}t|}|j|ddgy)Nc3ZKt5dddddy#1swYyxYww)Nrm
rr)rrgenz6NonLocalFlowControlTestCase.testWithYield.<locals>.genJs*.0



s+		+(+rmrt)listr)rruxs   r
testWithYieldz)NonLocalFlowControlTestCase.testWithYieldIs(	
KRH%rcd}	|dz
}t5|dz
}t#1swYnxYw|dz
}|jdy#t$r|j|dYywxYw)NrrrerfzDidn't raise RuntimeErrorrg)r3r;rVrris  r
testWithRaisez)NonLocalFlowControlTestCase.testWithRaiseQsu		3qLG.0
#2
""
#
#
sNG
II12	*Wb)	*sA(AA A N)rr r!rkrnrqrxrzr)rrrcrc&s&
&	$&3rrcceZdZdZdZdZy)AssignmentTargetTestCasectdgdi}t5|dd<|jt|jdg|j|ddjt
dddt5t|j
dd<|jt|jdg|j|ddjt
dddt5|d<t|j}|j|j|ddgdddGdd}|}t5|_|jt|dddddy#1swY#xYw#1swYxYw#1swYhxYw#1swYyxYw)	NrrrrrrceZdZy);AssignmentTargetTestCase.testSingleComplexTarget.<locals>.CNrlr)rrCrmrrrTT)
r3rrvkeysrr,valuessortrThasattr)rtargetsrrblahs     rtestSingleComplexTargetz0AssignmentTargetTestCase.testSingleComplexTargetas|i.
*
,	D
1
T',,.1A37WQZ]44lC	D+
,	DW^^5E0Fq0I!0LT',,.1A37WQZ]44lC	D+
,	+
'DIIKTAq6*	+	
s
*
,	9WT5148	9	9	D	D	D	D	+	+	9	9s2AF	:A.F:AF""F.	FF"F+.F7cvGdd}dgdi}|5\|dd<|dd<|dd<|j|dgdiddd|5\t|jdd<t|jdd<t|jdd<|j|dgdiddd|5\|d<|d<|d	<|j|ddd	ddddGd
d}|}|5\|_|_|_|j|jd|j|jd|j|j
d	dddy#1swYGxYw#1swYxYw#1swYxYw#1swYyxYw)NceZdZdZdZy)>AssignmentTargetTestCase.testMultipleComplexTargets.<locals>.Ccy)NrrrJr)rs rrzHAssignmentTargetTestCase.testMultipleComplexTargets.<locals>.C.__enter__tsrcyr%r)rtvtbs    rrzGAssignmentTargetTestCase.testMultipleComplexTargets.<locals>.C.__exit__urSrNrr)rrrrss/.rrrr~rrr)rJrrrJceZdZy)>AssignmentTargetTestCase.testMultipleComplexTargets.<locals>.BNrlr)rrBr}rrr)rrvronetwothree)rrrrrs     rtestMultipleComplexTargetsz3AssignmentTargetTestCase.testMultipleComplexTargetsrs	/	/i.
S	6AWQZ]GAJqM71:a=Wq)n5	6
S	6nT'..*+A.q148H3I!3LQ3OQUV]VdVdVfQghiQjklQmWq)n5	6
S	:8WQZWQZW!a&89	:
s
S	,4TXtxTXXq)TXXq)TZZ+	,	,	6	6	6	6	:	:	,	,s1-F
A2F$F#A(F/
FF #F,/F8cttdd5^}}}|j|d|j|ddg|j|ddddy#1swYyxYw)NrrrJ)rrangerrLs    rtestWithExtendedTargetsz0AssignmentTargetTestCase.testWithExtendedTargetssa
q!
%	#!aQ"QA'Q"	#	#	#s=AA%N)rr r!rrrr)rrr|r|_s9",$#rr|ceZdZdZdZy)ExitSwallowsExceptionTestCasecGdd}	|5ddzdddy#1swYyxYw#t$r|jdYywxYw)NceZdZdZdZy)SExitSwallowsExceptionTestCase.testExitTrueSwallowsException.<locals>.AfricanSwallowcyr%r)rs rrz]ExitSwallowsExceptionTestCase.testExitTrueSwallowsException.<locals>.AfricanSwallow.__enter__rSrcyrr)rs    rrz\ExitSwallowsExceptionTestCase.testExitTrueSwallowsException.<locals>.AfricanSwallow.__exit__srNrr)rrAfricanSwallowrs%5rrrrz,ZeroDivisionError should have been swallowed)rrV)rrs  rtestExitTrueSwallowsExceptionz;ExitSwallowsExceptionTestCase.testExitTrueSwallowsExceptionsQ	6	6	F!
!


 	FIIDE	Fs#.".+..A
AcGdd}	|5ddzddd|jdy#1swYxYw#t$rYywxYw)NceZdZdZdZy)ZExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException.<locals>.EuropeanSwallowcyr%r)rs rrzdExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException.<locals>.EuropeanSwallow.__enter__rSrcyr
r)rs    rrzcExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException.<locals>.EuropeanSwallow.__exit__srNrr)rrEuropeanSwallowrs%6rrrrz)ZeroDivisionError should have been raised)rVr)rrs  r#testExitFalseDoesntSwallowExceptionzAExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowExceptionsT	7	7	C "
!


IIAB

 		s?3?<?	A
AN)rr r!rrr)rrrrsF
CrrceZdZGddeZGddeZGddeZGddeZd	Zd
Z	dZ
dZd
Zy)
NestedWithc eZdZddZdZdZy)NestedWith.DummyNcD||}||_||_d|_d|_yr
)rgobbler
r)rrrs   rrzNestedWith.Dummy.__init__s*}DJ DK %D$Drc(d|_|jSr)r
rrs rrzNestedWith.Dummy.__enter__s $D::rc:d|_||_|jryyr)rr?rrNs  rrzNestedWith.Dummy.__exit__s #D$DM{{rr
rHr)rrDummyrs	%		rrceZdZdZy)NestedWith.InitRaisesctr%rrs rrzNestedWith.InitRaises.__init__s	,.0rNr0r)rr
InitRaisesrs0rrceZdZdZdZy)NestedWith.EnterRaisesctr%rrs rrz NestedWith.EnterRaises.__enter__s	<>1rcyr%r)rNs  rrzNestedWith.EnterRaises.__exit__rSrNrr)rrEnterRaisesrs1+rrceZdZdZdZy)NestedWith.ExitRaisescyr%r)rs rrzNestedWith.ExitRaises.__enter__rSrctr%rrNs  rrzNestedWith.ExitRaises.__exit__s	\^';rNrr)rr
ExitRaisesrs!;rrcp|j5}|j5}|j|j|j|jdddddd|jj|jjy#1swYHxYw#1swYLxYwr%)rrr
r)rrMrNs   rtestNoExceptionszNestedWith.testNoExceptionss
ZZ\	,Q

	,OOANN+OOANN+	,	,	


&

&		,	,	,	,s"B,7B B, B)	%B,,B5c	|j5}|j5	dddddd|jj|j|jy#1swYHxYw#1swYLxYw#YSxYwr%)rrrr
rrrMs  rtestExceptionInExprListz"NestedWith.testExceptionInExprListss	
DOO$5


	
'

&



	s7BA8A,A8B,A5	1A88B=BBch	|j5}|j5|jddddddd|jd|j	j
|j	|jy#1swYYxYw#1swY]xYw#t$rYZwxYw)Nzbody of bad with executedzRuntimeError not reraised)rrrVr;rr
rrs  rtestExceptionInEnterzNestedWith.testExceptionInEnters	3
7D$4$4$6
7		56
7
7

II12'

&
7
7
7
7		s=B%BB
BB%
B	BB"B%%	B10B1cpd}|jd5}|j5d}dddddd|jj|j|j|j||j|jddy#1swYxxYw#1swY|xYw)NFT)rr)rrrr
rassertNotEqualr?)r
body_executedrMs   rtestExceptionInExitzNestedWith.testExceptionInExits

ZZtZ
$	!4??+<	! M	!	!'

&
&AJJqM40	!	!	!	!s!B,B B, B)	%B,,B5c<|jd5\}}|jd5\}}|jd||jd||jd||jd|ddddddy#1swYxYw#1swYyxYw)N)rr)r)rerrrer)rr)ra1a2b1b2s     rtestEnterReturnsTuplez NestedWith.testEnterReturnsTuples
ZZeZ
$	%R
ZZhZ
'	%+3BQ#Q#R$R$	%	%	%	%	%	%s#BAB5BB	BBN)
rr r!rerrrrrrrrrr)rrrrsK&1V1,f,<V<''	'1%rr__main__)
__author__	__email__r>unittestcollectionsr
contextlibrrrrr*rer,r3r5rJTestCaserPrrrrrcr|rrrmainr)rr<module>rsA=
#	
LLC1C$6!V!H00"Q5h''Q5f,06,0^2<X..0L2<j?B8#4#4 ?BD@968I8I@9F63("3"363r)#x00)#XCH$5$5C2J%""J%XzHMMOr