^yNSrSrSSKrSSKrSSKrSSKJr SSKJrJ r J r "SS\5r Sr "S S \ 5r\ S 5r"S S \ 5r"SS\5r"SS\R$5r"SS\ 5r"SS\R$\5r"SS\R$\5r"SS\\R$5r"SS\R$5r"SS\R$5r"SS\R$5r"S S!\R$5r\S":Xa\R:"5 gg)#z Mike Blandzmbland at acm dot orgN)deque)_GeneratorContextManagercontextmanager nullcontextc4^\rSrSrU4SjrSrSrSrU=r$)MockContextManagercJ>[TU]"U6 SUlSUlSUlgNF)super__init__ enter_called exit_called exit_args)selfargs __class__s 5/opt/alt/python313/lib64/python3.13/test/test_with.pyr MockContextManager.__init__s' $! c<SUl[R"U5$NT)rr __enter__rs rrMockContextManager.__enter__s '11$77rcPSUlXU4Ul[R"XX#5$r)rrr__exit__rtypevalue tracebacks rrMockContextManager.__exit__s0y1'0016C Crrrr) __name__ __module__ __qualname____firstlineno__r rr__static_attributes__ __classcell__)rs@rrrs 8CCrrc^U4SjnU$)Nc>[TX5$N)r)rkwdsfuncs rhelper#mock_contextmanager..helper!s!$33r)r.r/s` rmock_contextmanagerr2 s 4 Mrc\rSrSrSrSrg) MockResource&c SUlSUlgr )yieldedstoppedrs rr MockResource.__init__'s  r)r8r7Nr$r%r&r'r r(r1rrr4r4&srr4c#^# [5nSUlUv SUlg!SUlf=f7fr)r4r7r8)mocks rmock_contextmanager_generatorr=,s+ >D   t s - !- *-c&\rSrSrSrSrSrSrg)Nested6cXlSUlgr,)managersenteredrrBs rr Nested.__init__8s  rcTURb [S5e[5Ul/nURH=nUR UR 55 URR U5 M? U$! UR"[R"56(deU$=f)NzContext is not reentrant) rC RuntimeErrorrrBappendr appendleftrsysexc_info)rvarsmgrs rrNested.__enter__<s << #9: :w  }} CMMO, '',%   ==#,,.12 s A A::*B'cUnURHnUR"U6(aSnMM SUlX!LaUeg![a"n[U5XDR4nSnAMUSnAff=fN)NNN)rCr BaseExceptionr __traceback__)rrKexrMes rrNested.__exit__Jso<.fooNotDeclaredms s ) assertRaises NameError)rrhs r testNameErrorFailureTestCase.testNameErrorls  )^4rc^^"SS[5mU4SjnUR[SU5 g)Nc\rSrSrSrSrg).LacksEnterrcgr,r1rs rrEFailureTestCase.testEnterAttributeError1..LacksEnter.__exit__srr1N)r$r%r&r'rr(r1rr LacksEnterrpr rrucL>T"5nU SSS5 g!,(df  g=fr,r1)rgrus r fooLacksEnter?FailureTestCase.testEnterAttributeError1..fooLacksEntervs,C #the context managerobjectassertRaisesRegex TypeError)rrxrus @rtestEnterAttributeError1(FailureTestCase.testEnterAttributeError1qs)    y*?Orc^^"SS[5mU4SjnUR[SU5 g)Nc\rSrSrSrg)CFailureTestCase.testEnterAttributeError2..LacksEnterAndExit|r1Nr$r%r&r'r(r1rrLacksEnterAndExitr|s rrcL>T"5nU SSS5 g!,(df  g=fr,r1)rgrs rfooLacksEnterAndExitFFailureTestCase.testEnterAttributeError2..fooLacksEnterAndExits#%Crzr{r|)rrrs @rtestEnterAttributeError2(FailureTestCase.testEnterAttributeError2{s*    y*?AUVrc^^"SS[5mU4SjnUR[SU5 g)Nc\rSrSrSrSrg)9FailureTestCase.testExitAttributeError..LacksExitcgr,r1rs rrCFailureTestCase.testExitAttributeError..LacksExit.__enter__rtrr1N)r$r%r&r'rr(r1rr LacksExitrrvrrcL>T"5nU SSS5 g!,(df  g=fr,r1)rgrs r fooLacksExit.fooLacksExits+Crzzthe context manager.*__exit__r|)rrrs @rtestExitAttributeError&FailureTestCase.testExitAttributeErrors)    y*I<Xrc6SnUR[X!5 g)Nc[USS5 g)Nsingle)compile)ss rshouldRaiseSyntaxErrorGFailureTestCase.assertRaisesSyntaxError..shouldRaiseSyntaxErrors Ar8 $r)rj SyntaxError)rcodestrrs rassertRaisesSyntaxError'FailureTestCase.assertRaisesSyntaxErrors % +'=GrcHURS5 URS5 g)Nzwith mock as None: passzwith mock as (None): passrrs rtestAssignmentToNoneError)FailureTestCase.testAssignmentToNoneErrors$ $$%AB $$  rcHURS5 URS5 g)Nzwith mock as None,: passzwith mock as (None,): passrrs r,testAssignmentToTupleOnlyContainingNoneError.EnterThrowsc[S5e)Nz Enter threwrGrs rr>FailureTestCase.testEnterThrows..EnterThrows.__enter__s "=11rcgr,r1rrs rr=FailureTestCase.testEnterThrows..EnterThrows.__exit__rtrr1Nr$r%r&r'rrr(r1rr EnterThrowsrs  2 rrcf>T"5nSTlUTlSSS5 g!,(df  g=fr,rf)ctrrs r shouldThrow4FailureTestCase.testEnterThrows..shouldThrows'BDHtxs" 0)r}rjrG assertEqualrg)rrrs` @rtestEnterThrowsFailureTestCase.testEnterThrowss: &    , 4 4(rc\^"SS[5mU4SjnUR[U5 g)Nc \rSrSrSrSrSrg)2FailureTestCase.testExitThrows..ExitThrowscgr,r1rs rr.ExitThrows.__enter__src[S5e)N*rrs rr;FailureTestCase.testExitThrows..ExitThrows.__exit__s "2&&rr1Nrr1rr ExitThrowsrs   'rrcJ>T"5 SSS5 g!,(df  g=fr,r1)rsrr3FailureTestCase.testExitThrows..shouldThrowss ")r}rjrG)rrrs @rtestExitThrowsFailureTestCase.testExitThrowss& ' '   , 4rrfN)r$r%r&r'rlrrrrrrrrrr(r1rrrbrbks85 PWYH    )$ 5rrbcP\rSrSrSrSrSrSrSrSr Sr S S jr S r S r g )ContextmanagerAssertionMixinc$[S5Ulg)Nztest exception)rGTEST_EXCEPTIONrs rsetUp"ContextmanagerAssertionMixin.setUps*+;<rcURUR5 URUR5 UR UR S5 gr,) assertTruer assertFalserrrr mock_managers rassertInWithManagerInvariants:ContextmanagerAssertionMixin.assertInWithManagerInvariantss>  112 112 //6rcURUR5 URUR5 URURU5 gr,)rrrrr)rrrs r assertAfterWithManagerInvariants=ContextmanagerAssertionMixin.assertAfterWithManagerInvariantss<  112  001 //;rc(URUS5 grP)rrs r'assertAfterWithManagerInvariantsNoErrorDContextmanagerAssertionMixin.assertAfterWithManagerInvariantsNoErrors --l  rcpURUR5 URUR5 gr,)rr7rr8rmock_generators rassertInWithGeneratorInvariantsURURSUR 5 [ UR 5nURURSU5 URURSU5 URURSS5 g)Nr) rrrrrrrassertIsInstance assertIsNot)rrexc_types r)assertAfterWithManagerInvariantsWithErrorFContextmanagerAssertionMixin.assertAfterWithManagerInvariantsWithErrors  112  001     \33A68K8K LD//0H //2H= l44Q7B //2D9rcpURUR5 URUR5 gr,rrs r+assertAfterWithGeneratorInvariantsWithErrorHContextmanagerAssertionMixin.assertAfterWithGeneratorInvariantsWithErrorrrrr,)r$r%r&r'rrrrrrrrrr(r1rrrrs5=7 <  10"<@ :0rrc>\rSrSrSrSrSrSrSrSr Sr S r g ) NonexceptionalTestCasecN[5 SSS5 g!,(df  g=fr,r=rs rtestInlineGeneratorSyntax0NonexceptionalTestCase.testInlineGeneratorSyntaxs * , - , ,s $ct[5nU SSS5 URU5 g!,(df  N =fr,)r=r)rr<s rtestUnboundGenerator+NonexceptionalTestCase.testUnboundGenerators+,.   44T:Ts) 7c[5nURU5 SSS5 URW5 g!,(df  N =fr,r=rrrrgs rtestInlineGeneratorBoundSyntax5NonexceptionalTestCase.testInlineGeneratorBoundSyntaxs6 * ,  0 0 5- 66s;- , 7 Ac[5nURU5 SSS5 URW5 g!,(df  N =fr,rr s r*testInlineGeneratorBoundToExistingVariableANonexceptionalTestCase.testInlineGeneratorBoundToExistingVariables4 * ,  0 0 5- 66s;- ,r c[5UlURUR5 SSS5 URUR5 g!,(df  N*=fr,)r=rgrrrs r(testInlineGeneratorBoundToDottedVariable?NonexceptionalTestCase.testInlineGeneratorBoundToDottedVariables> * ,  0 0 :- 66txx@- ,s !A Ac[5nUnURU5 URU5 SSS5 URW5 UR U5 g!,(df  N1=fr,)r=rrrr)rr<rgs rtestBoundGenerator)NonexceptionalTestCase.testBoundGenerator sV,. S  0 0 5  . .t 4 66s; 44T: Ts #A A)c[5nUn[5nUnURU5 URU5 URU5 URU5 SSS5 URU5 UR W5 URU5 URU5 SSS5 URU5 UR W5 g!,(df  N}=f!,(df  NB=fr,)r=rrrr)rmock_argmock_bbars rtestNestedSingleStatements1NonexceptionalTestCase.testNestedSingleStatementss.0 s24F3226:226:44S944S9   8 8 @  : :3 ?  . .v 6  0 0 5 44V< 66s;Vs$ C'ACA C' C$ C'' C5rfN) r$r%r&r'rrr rrrrr(r1rrrrs&; < < A ;\rSrSrSrSrSrSrSrSr Sr S r g ) NestedNonexceptionalTestCasei$c`[[55 SSS5 g!,(df  g=fr,r?r=rs r"testSingleArgInlineGeneratorSyntax?NestedNonexceptionalTestCase.testSingleArgInlineGeneratorSyntax&s 13 4 5 4 4s -c[5n[U5nURU5 SSS5 URU5 g!,(df  N =fr,r=r?rrrmrgs rtestSingleArgBoundToNonTuple9NestedNonexceptionalTestCase.testSingleArgBoundToNonTuple*s> ) +AY#  . .q 1 44Q7Y A Ac[5n[U5nURU5 SSS5 URU5 g!,(df  N =fr,r#r$s r2testSingleArgBoundToSingleElementParenthesizedListONestedNonexceptionalTestCase.testSingleArgBoundToSingleElementParenthesizedList2s> ) +AY3  . .q 1 44Q7Yr(c6SnUR[U5 g)Ncd[[55upSSS5 g!,(df  g=fr,r)rgrs rshouldThrowValueErroriNestedNonexceptionalTestCase.testSingleArgBoundToMultipleElementTupleError..shouldThrowValueError;s!578JS988s! /)rj ValueError)rr.s r-testSingleArgBoundToMultipleElementTupleErrorJNestedNonexceptionalTestCase.testSingleArgBoundToMultipleElementTupleError:s  *&;!@ ) +-J-LN IQ1  0 0 3  0 0 3  0 0 3  . .{ ;  66q9 66q9 66q9 44[A[s AB== C r1N) r$r%r&r'r r&r*r1r6r;r>r(r1rrrr$s(88= B B Brrc\\rSrSrSrSrSrSrSrSr Sr S r S r S r S rS rSrg)ExceptionalTestCaseifc^^[5mUU4SjnTR[U5 TRT5 TR TR 5 g)Nc>TTlTRT5 TRTR5 TR5 SSS5 g!,(df  g=fr,)resourcerrrcmrsrr;ExceptionalTestCase.testSingleResource..shouldThrowis@t}222644T]]C'')s AA A)r=rjrGrrrDrrrFs` @rtestSingleResource&ExceptionalTestCase.testSingleResourcegsB * , * , 4 66r: 88Grc^^[5mUU4SjnTR[U5 TRT[5 g)NcR>TTlSS- SSS5 g!,(df  g=fNrr)rDrEsrr@ExceptionalTestCase.testExceptionNormalized..shouldThrowtst}Qs  &)r=rjZeroDivisionErrorrrHs` @rtestExceptionNormalized+ExceptionalTestCase.testExceptionNormalizedrs4 * ,  +[9 66r;LMrc^^^[5m[5mUUU4SjnTR[U5 TRT5 TRT5 TR TR 5 TR TR 5 g)NcZ>TTlTTlTRT5 TRT5 TRTR5 TRTR5 TR 5 SSS5 SSS5 g!,(df  N=f!,(df  g=fr,rgrrrrrrrsrrCExceptionalTestCase.testNestedSingleStatements..shouldThrowsw48tx66v>66v>88B88B++- Vs#BA.B :B B B B*)r=rjrGrrrgrrrrrs` @@rr.ExceptionalTestCase.testNestedSingleStatements|sj.0.0 . , 4 66v> 66v> 88B 88Brc\^^^^[5m[5m[TT5mUUUU4SjnTR[U5 TR T5 TR T5 TR T5 TR TR 5 TR TR5 g)NcJ>TuTlTlTRT5 TRT5 TRT5 TRTR5 TRTR5 TR 5 SSS5 g!,(df  g=fr,) resource_a resource_brrr)cm_acm_br5rsrrOExceptionalTestCase.testMultipleResourcesInSingleStatement..shouldThrowsu B$/2248224822;?44T__E44T__E'') s BB B")r=rXrjrGrrr[r\)rrr]r^r5s` @@@r&testMultipleResourcesInSingleStatement:ExceptionalTestCase.testMultipleResourcesInSingleStatements,.,. t,  * * , 4 66t< 66t< 66{C 88I 88Irc^^^[5m[5mSTlUUU4SjnTR[U5 TR T5 TR TR 5 TRTRS5 TRTR5 TRTR5 TRTRS5 g)Nc>TTlTRT5 TRTR5 TR5 TTlSSS5 SSS5 g!,(df  N=f!,(df  g=fr,)rgrrrrrUsrrPExceptionalTestCase.testNestedExceptionBeforeInnerStatement..shouldThrows\48226:44TXX>'')tx V s$AA1A A1 A. *A11 A?) r=rrjrGrrrgrrrrrrWs` @@r'testNestedExceptionBeforeInnerStatement;ExceptionalTestCase.testNestedExceptionBeforeInnerStatements.0.0  , 4 66v> 88B 4( ,,- ++, ))40rc^^^[5m[5mUUU4SjnTR[U5 TRT5 TR T5 TR TR 5 TRTR5 g)NcZ>TTlTTlTRT5 TRT5 TRTR5 TRTR5 SSS5 TR 5 SSS5 g!,(df  N'=f!,(df  g=fr,rTrUsrrOExceptionalTestCase.testNestedExceptionAfterInnerStatement..shouldThrowsy48tx66v>66v>88B88B  '') Vs#BAB *B B B B*) r=rjrGrrrrgrrrWs` @@r&testNestedExceptionAfterInnerStatement:ExceptionalTestCase.testNestedExceptionAfterInnerStatementsj.0.0 * , 4 66v> 44V< 88B 66txx@rc^[S5mU4SjnUR[S5 U"5 SSS5 g!,(df  g=f)Nc3# Sv g7fr,r1r1rrrF8ExceptionalTestCase.testRaisedStopIteration1..cm cL>T"5 [S5e!,(df  g=fN from with StopIterationrFsrrAExceptionalTestCase.testRaisedStopIteration1..shouldThrow#K00  #rs)rr~rurHs @rtestRaisedStopIteration1,ExceptionalTestCase.testRaisedStopIteration1s>     1 # #M; ? M@ ? ?s ; A c^"SS[5mU4SjnUR[S5 U"5 SSS5 g!,(df  g=f)Nc \rSrSrSrSrSrg)8ExceptionalTestCase.testRaisedStopIteration2..cmicgr,r1rs rrBExceptionalTestCase.testRaisedStopIteration2..cm.__enter__rtrcgr,r1rs rrAExceptionalTestCase.testRaisedStopIteration2..cm.__exit__rtrr1Nrr1rrrFr~   rrFcL>T"5 [S5e!,(df  g=frrrtrvsrrAExceptionalTestCase.testRaisedStopIteration2..shouldThrowrxryrs)r}r~rurHs @rtestRaisedStopIteration2,ExceptionalTestCase.testRaisedStopIteration2s8    1 # #M; ? M@ ? ?s > A c^[S5mU4SjnUR[5 U"5 SSS5 g!,(df  g=f)Nc3# Sv g7fr,r1r1rrrF8ExceptionalTestCase.testRaisedStopIteration3..cmrorpc^>T"5 [[/55e!,(df  g=fr,)nextiterrvsrrAExceptionalTestCase.testRaisedStopIteration3..shouldThrows48n$s ,)rrjrurHs @rtestRaisedStopIteration3,ExceptionalTestCase.testRaisedStopIteration3s=     %  } - M. - -s : AcV^[S5mU4SjnUR[U5 g)Nc3# Sv g7fr,r1r1rrrF8ExceptionalTestCase.testRaisedGeneratorExit1..cmrorpcL>T"5 [S5e!,(df  g=frr GeneratorExitrvsrrAExceptionalTestCase.testRaisedGeneratorExit1..shouldThrowrxry)rrjrrHs @rtestRaisedGeneratorExit1,ExceptionalTestCase.testRaisedGeneratorExit1s,     1 -5rc\^"SS[5mU4SjnUR[U5 g)Nc \rSrSrSrSrSrg)8ExceptionalTestCase.testRaisedGeneratorExit2..cmicgr,r1rs rrBExceptionalTestCase.testRaisedGeneratorExit2..cm.__enter__rtrcgr,r1rs rrAExceptionalTestCase.testRaisedGeneratorExit2..cm.__exit__rtrr1Nrr1rrrFrrrrFcL>T"5 [S5e!,(df  g=frrrrvsrrAExceptionalTestCase.testRaisedGeneratorExit2..shouldThrowrxry)r}rjrrHs @rtestRaisedGeneratorExit2,ExceptionalTestCase.testRaisedGeneratorExit2s& &   1 -5rc^^"SS[5mUU4SjnU"5 UU4SjnTR[U5 UU4SjnTR[U5 g)Nc&\rSrSrSrSrSrSrg)0ExceptionalTestCase.testErrorsInBool..cmic8^"U4SjS5nU"5Ulg)Nc">\rSrSrU4SjrSrg)GExceptionalTestCase.testErrorsInBool..cm.__init__..Boolic>T"5$r,r1)rbool_conversions r__bool__PExceptionalTestCase.testErrorsInBool..cm.__init__..Bool.__bool__s .00rr1N)r$r%r&r'rr()rsrBoolrs 11rr exit_result)rrrs ` rr 9ExceptionalTestCase.testErrorsInBool..cm.__init__s11$(6 rcg)Nr1rs rr:ExceptionalTestCase.testErrorsInBool..cm.__enter__srcUR$r,rrabcs rr9ExceptionalTestCase.testErrorsInBool..cm.__exit__s'''rrNrVr1rrrFrs *   (rrFcn>T"S5 TRS5 SSS5 g!,(df  g=f)Ncgrr1r1rrJExceptionalTestCase.testErrorsInBool..trueAsBool..sDrShould NOT see thisfailrEsr trueAsBool8ExceptionalTestCase.testErrorsInBool..trueAsBool$L! /0"!!& 4cn>T"S5 TRS5 SSS5 g!,(df  g=f)Ncgr r1r1rrrKExceptionalTestCase.testErrorsInBool..falseAsBool..sErz Should raiserrEsr falseAsBool9ExceptionalTestCase.testErrorsInBool..falseAsBools#M" .)#""rcn>T"S5 TRS5 SSS5 g!,(df  g=f)Nc SS-$rMr1r1rrrJExceptionalTestCase.testErrorsInBool..failAsBool..$sAqDrrrrEsr failAsBool8ExceptionalTestCase.testErrorsInBool..failAsBool#rr)r}rjAssertionErrorrO)rrrrrFs` @rtestErrorsInBool$ExceptionalTestCase.testErrorsInBool sJ ( ( 1   * .+6 1 +Z8r)rrgrDr[r\N)r$r%r&r'rIrPrr`rerjrzrrrrrr(r1rrrArAfsC HNC"J&1*A"    6 69rrAc2\rSrSrSrSrSrSrSrSr g) NonLocalFlowControlTestCasei)cSnUS- n[5 US- nSSS5 URUS5 g!,(df  O=fUS- nMI)Nrr d r=rrcounters r testWithBreak)NonLocalFlowControlTestCase.testWithBreak+sU qLG.02 1 "% 10 sNG s 5 AcSnUS- nUS:aO[5 US- nSSS5 M(URUS5 g!,(df  O=fUS- nMR)Nrrrrr rrs rtestWithContinue,NonLocalFlowControlTestCase.testWithContinue5sb qLG{.02 10 "% 10 sNGs > A c8SnURU"5S5 g)NcxSnUS- n[5 US- nUsSSS5 $!,(df  O=fUS- nM8)Nrrrrr)rs rrg7NonLocalFlowControlTestCase.testWithReturn..fooBsAG1 24rMG"5443 s$ 2r)rr s rtestWithReturn*NonLocalFlowControlTestCase.testWithReturnAs  #rcRSn[U"55nURUSS/5 g)Nc3d# [5 Sv Sv SSS5 g!,(df  g=f7f)Nr rr1rrgen6NonLocalFlowControlTestCase.testWithYield..genMs .0100s 0  0 -0rr)listr)rrxs r testWithYield)NonLocalFlowControlTestCase.testWithYieldLs(  K RH%rcSnUS- n[5 US- n[e!,(df  O=fUS- nURS5 g![a URUS5 gf=f)NrrrrzDidn't raise RuntimeErrorr)r=rGrrrs r testWithRaise)NonLocalFlowControlTestCase.testWithRaiseTsn 3 qLG.02 ""10 sNG II1 2 *   Wb ) *sA  - AA&%A&r1N) r$r%r&r'rrrrrr(r1rrrr)s& & $& 3rrc&\rSrSrSrSrSrSrg)AssignmentTargetTestCaseibcS/SQ0n[5USS'UR[UR55S/5 URUSSR[ 5 SSS5 [5[UR 55SS'UR[UR55S/5 URUSSR[ 5 SSS5 [5US'[UR55nUR5 URUSS/5 SSS5 "SS5nU"5n[5UlUR[US5S5 SSS5 g!,(df  GN(=f!,(df  N=f!,(df  Nw=f!,(df  g=f) Nrrrrrrc\rSrSrSrg);AssignmentTargetTestCase.testSingleComplexTarget..Cipr1Nrr1rrCrprrrgT) r=rrkeysrr4valuessortrghasattr)rtargetsrrblahs rtestSingleComplexTarget0AssignmentTargetTestCase.testSingleComplexTargetdsVi. * , 1   T',,.1A3 7   WQZ]44l C-+ ,W^^5E0Fq0I!0L   T',,.1A3 7   WQZ]44l C-+ ,  'D IIK   TAq6 *-  s * ,   WT514 8- ,- ,- ,- , - ,s2AF :A.F:AF,"F= F F), F:= G c"SS5nS/SQ0nU"5uUSS'USS'USS'URUS/SQ05 SSS5 U"5u[UR55SS'[UR55SS'[UR55SS'URUS/SQ05 SSS5 U"5uUS'US'US 'URUSSS S.5 SSS5 "S S 5nU"5nU"5uUlUlUlURURS5 URURS5 URUR S 5 SSS5 g!,(df  GNL=f!,(df  N=f!,(df  N=f!,(df  g=f) Nc \rSrSrSrSrSrg)>AssignmentTargetTestCase.testMultipleComplexTargets..Civcg)Nrrrr1rs rrHAssignmentTargetTestCase.testMultipleComplexTargets..C.__enter__wsrcgr,r1rtvtbs rrGAssignmentTargetTestCase.testMultipleComplexTargets..C.__exit__xs$rr1Nrr1rrrrvs / .rrrrrrr)rrrrc\rSrSrSrg)>AssignmentTargetTestCase.testMultipleComplexTargets..Bir1Nrr1rrBrrrr)rrronetwothree)rrrrrs rtestMultipleComplexTargets3AssignmentTargetTestCase.testMultipleComplexTargetsusz / /i. SAWQZ]GAJqM71:a=   Wq)n 5 SnT'..*+A.q148H3I!3LQ3OQUV]VdVdVfQghiQjklQm   Wq)n 5 S8WQZWQZ   W!a&8 9 s S4TXtx   TXXq )   TXXq )   TZZ +SS S SSs1-F A2F$F-A(F> F F*- F;> G c[[SS55GtpnURUS5 URUSS/5 URUS5 SSS5 g!,(df  g=f)Nrrr)rrangerrs rtestWithExtendedTargets0AssignmentTargetTestCase.testWithExtendedTargetssV q! %!   Q "   QA '   Q "& % %s .AfricanSwallowicgr,r1rs rr]ExitSwallowsExceptionTestCase.testExitTrueSwallowsException..AfricanSwallow.__enter__rcgrr1r s rr\ExitSwallowsExceptionTestCase.testExitTrueSwallowsException..AfricanSwallow.__exit__srr1Nrr1rrAfricanSwallowr"s % 5rr(rrz,ZeroDivisionError should have been swallowed)rOr)rr(s rtestExitTrueSwallowsException;ExitSwallowsExceptionTestCase.testExitTrueSwallowsExceptionsH 6 6 F!!"!!  F IID E Fs#3"3 033AAc"SS5nU"5 SS- SSS5 URS5 g!,(df  N =f![a gf=f)Nc \rSrSrSrSrSrg)ZExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException..EuropeanSwallowicgr,r1rs rrdExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException..EuropeanSwallow.__enter__r%rcgr r1r s rrcExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException..EuropeanSwallow.__exit__srr1Nrr1rrEuropeanSwallowr-s % 6rr2rrz)ZeroDivisionError should have been raised)rrO)rr2s r#testExitFalseDoesntSwallowExceptionAExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowExceptionsM 7 7 C "!# IIA B #"    s$A3A AA AAr1N)r$r%r&r'r)r3r(r1rrrrsF Crrc\rSrSr"SS\5r"SS\5r"SS\5r"SS \5rS r S r S r S r Sr SrSrg) NestedWithic*\rSrSrSSjrSrSrSrg)NestedWith.DummyiNcBUcUnXlX lSUlSUlgr )r gobblerr)rr r:s rr NestedWith.Dummy.__init__s&}J K %D $D rc(SUlUR$r)rr rs rrNestedWith.Dummy.__enter__s $D :: rcBSUlXlUR(aggr)rrKr:r_s rrNestedWith.Dummy.__exit__s#D $M{{r)rrKrr:r r rVr1rrDummyr8s %  rr@c\rSrSrSrSrg)NestedWith.InitRaisesic[5er,rrs rr NestedWith.InitRaises.__init__s ,.0rr1Nr:r1rr InitRaisesrBs0rrEc \rSrSrSrSrSrg)NestedWith.EnterRaisesic[5er,rrs rr NestedWith.EnterRaises.__enter__s <>1rcgr,r1r_s rrNestedWith.EnterRaises.__exit__strr1Nrr1rr EnterRaisesrGs1+rrLc \rSrSrSrSrSrg)NestedWith.ExitRaisesicgr,r1rs rrNestedWith.ExitRaises.__enter__sTrc[5er,rr_s rrNestedWith.ExitRaises.__exit__s \^';rr1Nrr1rr ExitRaisesrNs!;rrScUR5oR5nURUR5 URUR5 SSS5 SSS5 URWR5 URWR5 g!,(df  NM=f!,(df  NV=fr,)r@rrr)rrrs rtestNoExceptionsNestedWith.testNoExceptionssk ZZ\Q  OOANN + OOANN +!-\  &  & !- \\s"B07BB0 B- )B00 B>c(UR5oR5 SSS5 SSS5 URWR5 URUR5 g!,(df  NM=f!,(df  NV=f! N]=fr,)r@rErrrrrs rtestExceptionInExprList"NestedWith.testExceptionInExprLists\ OO$5%6 '  & %6$5  s=B A<A+A<B + A9 5A<< B B B Bc|UR5oR5 URS5 SSS5 SSS5 URS5 UR WR 5 UR UR 5 g!,(df  N^=f!,(df  Ng=f![a Nef=f)Nzbody of bad with executedzRuntimeError not reraised)r@rLrrGrrrrXs rtestExceptionInEnterNestedWith.testExceptionInEnters} 3$4$4$6 56%7 II1 2 '  &%7$6   s=B.BB BB. B B B+'B.. B;:B;c|SnURSS9o R5 SnSSS5 SSS5 URWR5 URUR5 URU5 UR UR SS5 g!,(df  N}=f!,(df  N=f)NFT)r:r)r@rSrrrassertNotEqualrK)r body_executedrs rtestExceptionInExitNestedWith.testExceptionInExits ZZtZ $??+< M,= $ '  &  & AJJqM40 ,=+< $ $s!B-BB- B* &B-- B;c@URSS9upURSS9up4URSU5 URSU5 URSU5 URSU5 SSS5 SSS5 g!,(df  N=f!,(df  g=f)N)rr)r )rrrrrd)r@r)ra1a2b1b2s rtestEnterReturnsTuple NestedWith.testEnterReturnsTuples ZZeZ $ ZZhZ '8B   Q #   Q #   R $   R $ (% $ ' '% $s#BA A>-B> B B Bc0^U4SjnU4SjnU4SjnUS4US4US44HupETRU5 U"5n[R"UR5SnSnURn TR UR U RS -5 TR URU RS -5 TR URURU- URU- U5 SSS5 M g!,(df  M=f) Nc8>TR5 TR5nTR5nSSS5 SSS5 SSS5 g!,(df  N=f!,(df  N(=f!,(df  g=f![a nUsSnA$SnAff=fr,)r@rE Exception)rFdrTrs r init_raises5NestedWith.testExceptionLocation..init_raisess[ ZZ\4??#4DJJLA=I#4\\LL#4#4\\  sfBA2A!AA!A2B A A!! A/ +A22 B<BB B BBBc>TR5 TR5nSSS5 SSS5 g!,(df  N=f!,(df  g=f![a nUsSnA$SnAff=fr,)rLr@rmrnrTrs r enter_raises6NestedWith.testExceptionLocation..enter_raisessL %%'*6''''  MAA7AA A A AAA A/#A*$A/*A/c>TR5 TR5nSSS5 SSS5 g!,(df  N=f!,(df  g=f![a nUsSnA$SnAff=fr,)rSr@rmrrs r exit_raises5NestedWith.testExceptionLocation..exit_raisessJ __& )5&& &&  ruzself.InitRaises()zself.EnterRaises()zself.ExitRaises()rr) subTestr! extract_tbrR__code__rlinenoco_firstlineno end_linenolinecolno end_colno) rrorsrwr.expectedexcfindentcos ` rtestExceptionLocation NestedWith.testExceptionLocations   !,-@A ,.BC +-@A NDd#f(():):;A>]]  2+<+rs? # LLC1C$ 6 !V!H00"T5h''T5l,06,0^1