config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_with.pyc

hRc
@sdZddklZdZdZddkZddkZddkZddkl	Z	ddk
lZlZddk
lZd	efd
YZdZdefd
YZedZdefdYZdefdYZdeifdYZdefdYZdeiefdYZdeiefdYZdeiefdYZdeifdYZdeifd YZd!eifd"YZd#eifd$YZd%Z e!d&joe ndS('s7Unit tests for the with statement specified in PEP 343.i(twith_statements
Mike Blandsmbland at acm dot orgN(tdeque(tGeneratorContextManagertcontextmanager(trun_unittesttMockContextManagercBs#eZdZdZdZRS(cCs/ti||t|_t|_d|_dS(N(Rt__init__tFalsetenter_calledtexit_calledtNonet	exit_args(tselftgen((s*/usr/local/lib/python2.5/test/test_with.pyRs		cCst|_ti|S(N(tTrueRRt	__enter__(R((s*/usr/local/lib/python2.5/test/test_with.pyRs	cCs1t|_|||f|_ti||||S(N(RR	RRt__exit__(Rttypetvaluet	traceback((s*/usr/local/lib/python2.5/test/test_with.pyRs	(t__name__t
__module__RRR(((s*/usr/local/lib/python2.5/test/test_with.pyRs		csfd}|S(Ncst||S(N(R(targstkwds(tfunc(s*/usr/local/lib/python2.5/test/test_with.pythelper%s((RR((Rs*/usr/local/lib/python2.5/test/test_with.pytmock_contextmanager$stMockResourcecBseZdZRS(cCst|_t|_dS(N(Rtyieldedtstopped(R((s*/usr/local/lib/python2.5/test/test_with.pyR+s	(RRR(((s*/usr/local/lib/python2.5/test/test_with.pyR*sccs,t}zt|_|VWdt|_XdS(N(RRRR(tmock((s*/usr/local/lib/python2.5/test/test_with.pytmock_contextmanager_generator0s
			tNestedcBs#eZdZdZdZRS(cGs||_d|_dS(N(tmanagersR
tentered(RR!((s*/usr/local/lib/python2.5/test/test_with.pyR<s	cCs|idj	otdnt|_g}y;x4|iD])}|i|i|ii|q?WWn$|it	i
pqnX|S(NsContext is not reentrant(R"R
tRuntimeErrorRR!tappendRt
appendleftRtsystexc_info(Rtvarstmgr((s*/usr/local/lib/python2.5/test/test_with.pyR@s
cGs|}xE|iD]:}y|i|o
d}nWqti}qXqWd|_||j	o|d|d|dndS(Niii(NNN(R"RR
R&R'(RR'texR)((s*/usr/local/lib/python2.5/test/test_with.pyRNs
	
(RRRRR(((s*/usr/local/lib/python2.5/test/test_with.pyR :s		t
MockNestedcBs#eZdZdZdZRS(cGs/ti||t|_t|_d|_dS(N(R RRRR	R
R(RR!((s*/usr/local/lib/python2.5/test/test_with.pyR_s		cCst|_ti|S(N(RRR R(R((s*/usr/local/lib/python2.5/test/test_with.pyRes	cGs"t|_||_ti||S(N(RR	RR R(RR'((s*/usr/local/lib/python2.5/test/test_with.pyRis		(RRRRR(((s*/usr/local/lib/python2.5/test/test_with.pyR+^s		tFailureTestCasecBsbeZdZdZdZdZdZdZdZdZ	dZ
d	ZRS(
cCsd}|it|dS(NcSs$ti}izWd|~QXdS(N(tfooRR(t_[1]((s*/usr/local/lib/python2.5/test/test_with.pytfooNotDeclaredqs(tassertRaisest	NameError(RR/((s*/usr/local/lib/python2.5/test/test_with.pyt
testNameErrorps	cs9dtfdYfd}|it|dS(Nt
LacksEntercBseZdZRS(cSsdS(N((RRRR((s*/usr/local/lib/python2.5/test/test_with.pyRws(RRR(((s*/usr/local/lib/python2.5/test/test_with.pyR3vscs-}|i}izWd|~QXdS(N(RR(R-R.(R3(s*/usr/local/lib/python2.5/test/test_with.pyt
fooLacksEnterzs	(tobjectR0tAttributeError(RR4((R3s*/usr/local/lib/python2.5/test/test_with.pyttestEnterAttributeErroruscs9dtfdYfd}|it|dS(Nt	LacksExitcBseZdZRS(cSsdS(N((R((s*/usr/local/lib/python2.5/test/test_with.pyRs(RRR(((s*/usr/local/lib/python2.5/test/test_with.pyR8scs-}|i}izWd|~QXdS(N(RR(R-R.(R8(s*/usr/local/lib/python2.5/test/test_with.pytfooLacksExits	(R5R0R6(RR9((R8s*/usr/local/lib/python2.5/test/test_with.pyttestExitAttributeErrorscCs d}|it||dS(NcSst|dddS(Nttsingle(tcompile(ts((s*/usr/local/lib/python2.5/test/test_with.pytshouldRaiseSyntaxErrors(R0tSyntaxError(RtcodestrR?((s*/usr/local/lib/python2.5/test/test_with.pytassertRaisesSyntaxErrors	cCs|id|iddS(Nswith mock as None:
  passswith mock as (None):
  pass(RB(R((s*/usr/local/lib/python2.5/test/test_with.pyttestAssignmentToNoneErrors
cCs|iddS(Nswith mock as ():
  pass(RB(R((s*/usr/local/lib/python2.5/test/test_with.pyttestAssignmentToEmptyTupleErrorscCs|id|iddS(Nswith mock as None,:
  passswith mock as (None,):
  pass(RB(R((s*/usr/local/lib/python2.5/test/test_with.pyt,testAssignmentToTupleOnlyContainingNoneErrors
cCs|iddS(Ns%with mock as (foo, None, bar):
  pass(RB(R((s*/usr/local/lib/python2.5/test/test_with.pyt(testAssignmentToTupleContainingNoneErrorscsOdtfdYfd}it|iiddS(NtEnterThrowscBseZdZdZRS(cSstddS(NsEnter threw(R#(R((s*/usr/local/lib/python2.5/test/test_with.pyRscWsdS(N((RR((s*/usr/local/lib/python2.5/test/test_with.pyRs(RRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRGs	csD}d_|i}i}z|~_Wd|~QXdS(N(R
R-RR(tctR.t_[2](RRG(s*/usr/local/lib/python2.5/test/test_with.pytshouldThrows		"(R5R0R#tassertEqualR-R
(RRJ((RRGs*/usr/local/lib/python2.5/test/test_with.pyttestEnterThrowsscs9dtfdYfd}|it|dS(Nt
ExitThrowscBseZdZdZRS(cSsdS(N((R((s*/usr/local/lib/python2.5/test/test_with.pyRscWstddS(Ni*(R#(RR((s*/usr/local/lib/python2.5/test/test_with.pyRs(RRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRMs	cs'i}izWd|~QXdS(N(RR(R.(RM(s*/usr/local/lib/python2.5/test/test_with.pyRJs(R5R0R#(RRJ((RMs*/usr/local/lib/python2.5/test/test_with.pyttestExitThrowss(RRR2R7R:RBRCRDRERFRLRN(((s*/usr/local/lib/python2.5/test/test_with.pyR,os		
	
						tContextmanagerAssertionMixincBs\eZedZdZdZdZdZdZdZ	dZ
dZRS(	stest exceptioncCs7|i|i|i|i|i|iddS(N(t
assertTrueRtassertFalseR	RKRR
(Rtmock_manager((s*/usr/local/lib/python2.5/test/test_with.pytassertInWithManagerInvariantsscCs7|i|i|i|i|i|i|dS(N(RPRR	RKR(RRRR((s*/usr/local/lib/python2.5/test/test_with.pyt assertAfterWithManagerInvariantsscCs|i|ddS(N(NNN(RTR
(RRR((s*/usr/local/lib/python2.5/test/test_with.pyt'assertAfterWithManagerInvariantsNoErrors	cCs$|i|i|i|idS(N(RPRRQR(Rtmock_generator((s*/usr/local/lib/python2.5/test/test_with.pytassertInWithGeneratorInvariantsscCs$|i|i|i|idS(N(RPRR(RRV((s*/usr/local/lib/python2.5/test/test_with.pyt)assertAfterWithGeneratorInvariantsNoErrorscCs
|idS(N(tTEST_EXCEPTION(R((s*/usr/local/lib/python2.5/test/test_with.pytraiseTestExceptionscCsU|i|i|i|i|i|idt|i|id|idS(Nii(RPRR	RKRR#RY(RRR((s*/usr/local/lib/python2.5/test/test_with.pyt)assertAfterWithManagerInvariantsWithErrorscCs$|i|i|i|idS(N(RPRR(RRV((s*/usr/local/lib/python2.5/test/test_with.pyt+assertAfterWithGeneratorInvariantsWithErrors(RRR#RYRSRTRURWRXRZR[R\(((s*/usr/local/lib/python2.5/test/test_with.pyROs							tNonexceptionalTestCasecBsGeZdZdZdZdZdZdZdZRS(cCs'ti}izWd|~QXdS(N(RRR(RR.((s*/usr/local/lib/python2.5/test/test_with.pyttestInlineGeneratorSyntaxscCs:t}|i}izWd|~QX|i|dS(N(RRRRU(RRR.((s*/usr/local/lib/python2.5/test/test_with.pyttestUnboundGenerators	cCsLti}i}z|~}|i|Wd|~QX|i|dS(N(RRRRWRX(RR.RIR-((s*/usr/local/lib/python2.5/test/test_with.pyttestInlineGeneratorBoundSyntaxs"cCsRd}ti}i}z|~}|i|Wd|~QX|i|dS(N(R
RRRRWRX(RR-R.RI((s*/usr/local/lib/python2.5/test/test_with.pyt*testInlineGeneratorBoundToExistingVariables"cCsUti}i}z |~|_|i|iWd|~QX|i|idS(N(RRRR-RWRX(RR.RI((s*/usr/local/lib/python2.5/test/test_with.pyt(testInlineGeneratorBoundToDottedVariables%cCslt}|i}i}z'|~}|i||i|Wd|~QX|i||i|dS(N(RRRRWRSRXRU(RRR.RIR-((s*/usr/local/lib/python2.5/test/test_with.pyttestBoundGenerators	

c	Cst}|i}i}z|~}t}|i}i}zA|~}|i||i||i||i|Wd|~QX|i||i||i||i|Wd|~QX|i||i|dS(N(RRRRSRWRURX(	Rtmock_aR.RIR-tmock_bt_[3]t_[4]tbar((s*/usr/local/lib/python2.5/test/test_with.pyttestNestedSingleStatements	s		






(	RRR^R_R`RaRbRcRi(((s*/usr/local/lib/python2.5/test/test_with.pyR]s						tNestedNonexceptionalTestCasecBsPeZdZdZdZdZdZdZdZdZRS(cCs-tti}izWd|~QXdS(N(R RRR(RR.((s*/usr/local/lib/python2.5/test/test_with.pyt"testSingleArgInlineGeneratorSyntaxscCsmt}t|}|i}iz|i||i|Wd|~QX|i||i|dS(N(RR+RRRSRU(RRtmock_nestedR.((s*/usr/local/lib/python2.5/test/test_with.pyttestSingleArgUnbound s	

cCsXt}t|i}i}z|~}|i|Wd|~QX|i|dS(N(RR RRRSRU(RtmR.RIR-((s*/usr/local/lib/python2.5/test/test_with.pyttestSingleArgBoundToNonTuple)s	%cCsXt}t|i}i}z|~}|i|Wd|~QX|i|dS(N(RR RRRSRU(RRnR.RIR-((s*/usr/local/lib/python2.5/test/test_with.pyt2testSingleArgBoundToSingleElementParenthesizedList1s	%cCsd}|it|dS(NcSs>tti}i}z|~\}}Wd|~QXdS(N(R RRR(R.RIR-Rh((s*/usr/local/lib/python2.5/test/test_with.pytshouldThrowValueError:s.(R0t
ValueError(RRq((s*/usr/local/lib/python2.5/test/test_with.pyt-testSingleArgBoundToMultipleElementTupleError9s	cCsmt}t|}|i}iz|i||i|Wd|~QX|i||i|dS(N(RR+RRRSRU(RRRlR.((s*/usr/local/lib/python2.5/test/test_with.pyRm?s	

cCst}t}t}t|||}|i}iz8|i||i||i||i|Wd|~QX|i||i||i||i|dS(N(RR+RRRSRU(RRntntoRlR.((s*/usr/local/lib/python2.5/test/test_with.pyttestMultipleArgUnboundHs			





cCstttt}|i}i}zJ|~\}}}|i||i||i||i|Wd|~QX|i||i||i||i|dS(N(R+RRRRWRSRXRU(RRlR.RIRnRtRu((s*/usr/local/lib/python2.5/test/test_with.pyttestMultipleArgBoundWs	(





(	RRRkRmRoRpRsRvRw(((s*/usr/local/lib/python2.5/test/test_with.pyRjs									tExceptionalTestCasecBskeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZRS(csLtfd}it|iiidS(NcsYi}i}z7|~_iiiiWd|~QXdS(N(RRtresourceRSRWRZ(R.RI(Rtcm(s*/usr/local/lib/python2.5/test/test_with.pyRJhs"
(RR0R#R[R\Ry(RRJ((RRzs*/usr/local/lib/python2.5/test/test_with.pyttestSingleResourcefs
	
csuttfd}it|iiiiiidS(Ncsi}i}z|~_i}i}zT|~_iiiiiiiWd|~QXWd|~QXdS(N(RRR-RhRSRWRZ(R.RIRfRg(RRdRe(s*/usr/local/lib/python2.5/test/test_with.pyRJts""

(RR0R#R[R\R-Rh(RRJ((RReRds*/usr/local/lib/python2.5/test/test_with.pyRiqs		

cstttfd}it|iiiiiiidS(Ncsi}i}zj|~\__iiiiiiiiWd|~QXdS(N(RRt
resource_at
resource_bRSRWRZ(R.RI(RRltcm_atcm_b(s*/usr/local/lib/python2.5/test/test_with.pyRJs+


(RR+R0R#R[R\R|R}(RRJ((RRlR~Rs*/usr/local/lib/python2.5/test/test_with.pyt&testMultipleResourcesInSingleStatements		


csttd_fd}it|iiiiidi	i
i	iiiddS(Ncsi}i}ze|~_iiiii}i}z|~_Wd|~QXWd|~QXdS(N(RRR-RSRWRZRh(R.RIRfRg(RRdRe(s*/usr/local/lib/python2.5/test/test_with.pyRJs"

"(
RR
RhR0R#R[R\R-RKRQRR	R(RRJ((RReRds*/usr/local/lib/python2.5/test/test_with.pyt'testNestedExceptionBeforeInnerStatements			
csuttfd}it|iiiiiidS(Ncsi}i}z|~_i}i}zJ|~_iiiiiiWd|~QXiWd|~QXdS(N(RRR-RhRSRWRZ(R.RIRfRg(RRdRe(s*/usr/local/lib/python2.5/test/test_with.pyRJs""

(	RR0R#R[RUR\R-RXRh(RRJ((RReRds*/usr/local/lib/python2.5/test/test_with.pyt&testNestedExceptionAfterInnerStatements		

cs2tdfd}|it|dS(Ncss	dVdS(N((((s*/usr/local/lib/python2.5/test/test_with.pyRzscs3i}iztdWd|~QXdS(Ns	from with(RRt
StopIteration(R.(Rz(s*/usr/local/lib/python2.5/test/test_with.pyRJs(RR0R(RRJ((Rzs*/usr/local/lib/python2.5/test/test_with.pyttestRaisedStopIteration1scs9dtfdYfd}|it|dS(NRzcBseZdZdZRS(cSsdS(N((R((s*/usr/local/lib/python2.5/test/test_with.pyRscSsdS(N((RRRR((s*/usr/local/lib/python2.5/test/test_with.pyRs(RRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRzs	cs3i}iztdWd|~QXdS(Ns	from with(RRR(R.(Rz(s*/usr/local/lib/python2.5/test/test_with.pyRJs(R5R0R(RRJ((Rzs*/usr/local/lib/python2.5/test/test_with.pyttestRaisedStopIteration2scs2tdfd}|it|dS(Ncss	dVdS(N((((s*/usr/local/lib/python2.5/test/test_with.pyRzscs9i}iztgiWd|~QXdS(N(RRtitertnext(R.(Rz(s*/usr/local/lib/python2.5/test/test_with.pyRJs(RR0R(RRJ((Rzs*/usr/local/lib/python2.5/test/test_with.pyttestRaisedStopIteration3scs2tdfd}|it|dS(Ncss	dVdS(N((((s*/usr/local/lib/python2.5/test/test_with.pyRzscs3i}iztdWd|~QXdS(Ns	from with(RRt
GeneratorExit(R.(Rz(s*/usr/local/lib/python2.5/test/test_with.pyRJs(RR0R(RRJ((Rzs*/usr/local/lib/python2.5/test/test_with.pyttestRaisedGeneratorExit1scs9dtfdYfd}|it|dS(NRzcBseZdZdZRS(cSsdS(N((R((s*/usr/local/lib/python2.5/test/test_with.pyRscSsdS(N((RRRR((s*/usr/local/lib/python2.5/test/test_with.pyRs(RRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRzs	cs3i}iztdWd|~QXdS(Ns	from with(RRR(R.(Rz(s*/usr/local/lib/python2.5/test/test_with.pyRJs(R5R0R(RRJ((Rzs*/usr/local/lib/python2.5/test/test_with.pyttestRaisedGeneratorExit2scswdtfdYfd}|fd}it|fd}it|dS(NRzcBs#eZdZdZdZRS(cs)ddfdY}||_dS(NtBoolcseZfdZRS(csS(N((R(tbool_conversion(s*/usr/local/lib/python2.5/test/test_with.pyt__nonzero__s(RRR((R(s*/usr/local/lib/python2.5/test/test_with.pyRs((texit_result(RRR((Rs*/usr/local/lib/python2.5/test/test_with.pyRscSsdS(Ni((R((s*/usr/local/lib/python2.5/test/test_with.pyRscSs|iS(N(R(Rtatbtc((s*/usr/local/lib/python2.5/test/test_with.pyRs(RRRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRzs		cs:di}izidWd|~QXdS(NcSstS((R(((s*/usr/local/lib/python2.5/test/test_with.pyt<lambda>ssShould NOT see this(RRtfail(R.(RRz(s*/usr/local/lib/python2.5/test/test_with.pyt
trueAsBoolscs:di}izidWd|~QXdS(NcSstS((R(((s*/usr/local/lib/python2.5/test/test_with.pyRssShould raise(RRR(R.(RRz(s*/usr/local/lib/python2.5/test/test_with.pytfalseAsBoolscs:di}izidWd|~QXdS(NcSsddS(ii((((s*/usr/local/lib/python2.5/test/test_with.pyRssShould NOT see this(RRR(R.(RRz(s*/usr/local/lib/python2.5/test/test_with.pyt
failAsBools(R5R0tAssertionErrortZeroDivisionError(RRRR((RzRs*/usr/local/lib/python2.5/test/test_with.pyttestErrorsInBools(
RRR{RiRRRRRRRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRxes								
		tNonLocalFlowControlTestCasecBs5eZdZdZdZdZdZRS(cCskd}xNtoF|d7}ti}iz|d7}PWd|~QX|d7}q	W|i|ddS(Niii
idi(RRRRRK(RtcounterR.((s*/usr/local/lib/python2.5/test/test_with.pyt
testWithBreaks


cCsd}xbtoZ|d7}|djoPnti}iz|d7}w	Wd|~QX|d7}q	W|i|ddS(Niiii
idi(RRRRRK(RRR.((s*/usr/local/lib/python2.5/test/test_with.pyttestWithContinue's


cCs d}|i|ddS(NcSs^d}xQtoI|d7}ti}iz|d7}|SWd|~QX|d7}q	WdS(Niii
id(RRRR(RR.((s*/usr/local/lib/python2.5/test/test_with.pyR-4s

i(RK(RR-((s*/usr/local/lib/python2.5/test/test_with.pyttestWithReturn3s	cCs2d}t|}|i|ddgdS(Ncss1ti}izdVdVWd|~QXdS(Nii
(RRR(R.((s*/usr/local/lib/python2.5/test/test_with.pyR
?sii
(tlistRK(RR
tx((s*/usr/local/lib/python2.5/test/test_with.pyt
testWithYield>s	cCsd}yK|d7}ti}iz|d7}tWd|~QX|d7}Wn#tj
o|i|dnX|iddS(Niii
idisDidn't raise RuntimeError(RRRR#RKR(RRR.((s*/usr/local/lib/python2.5/test/test_with.pyt
testWithRaiseFs

(RRRRRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRs
	
			tAssignmentTargetTestCasecBseZdZdZRS(c
Cshdddgd<}ti}i}zI|~|dd<|i|idg|i|dditWd|~QXti}i}zO|~|idd<|i|idg|i|dditWd|~QXti}i}z=|~|d<|i}|i|i|ddgWd|~QXdddY}	|	}
ti}i}z)|~|
_	|it
|
dtWd|~QXdS(NiiitCcBseZRS((RR(((s*/usr/local/lib/python2.5/test/test_with.pyRbsR-((RRRRKtkeyst	__class__RtvaluestsortR-thasattrR(
RttargetsR.RIRfRgt_[5]t_[6]RRtblaht_[7]t_[8]((s*/usr/local/lib/python2.5/test/test_with.pyttestSingleComplexTargetVs*'0'&
"	%c
Cs&dd	dY}hdddgd<}|i}i}zP|~\|dd<|dd<|dd<|i|hdddgd<Wd|~QX|i}i}zb|~\|idd<|idd<|idd<|i|hdddgd<Wd|~QX|i}i}zM|~\|d<|d<|d<|i|hdd<dd<dd<Wd|~QXdd
dY}	|	}
|i}i}zX|~\|
_|
_|
_|i|
id|i|
id|i|
idWd|~QXdS(NRcBseZdZdZRS(cSsdS(Niii(iii((R((s*/usr/local/lib/python2.5/test/test_with.pyRiscSsdS(N((Rtttvttb((s*/usr/local/lib/python2.5/test/test_with.pyRjs(RRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRhs	iiiitBcBseZRS((RR(((s*/usr/local/lib/python2.5/test/test_with.pyRrs(((RRRKRtonettwotthree(
RRRR.RIRfRgRRRRRR((s*/usr/local/lib/python2.5/test/test_with.pyttestMultipleComplexTargetsgsC.U.77	4(RRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRTs	tExitSwallowsExceptionTestCasecBseZdZdZRS(cCsidddY}y/|i}izddWd|~QXWn tj
o|idnXdS(NtAfricanSwallowcBseZdZdZRS(cSsdS(N((R((s*/usr/local/lib/python2.5/test/test_with.pyR~scSstS(N(R(RRRR((s*/usr/local/lib/python2.5/test/test_with.pyRs(RRRR(((s*/usr/local/lib/python2.5/test/test_with.pyR}s	iis,ZeroDivisionError should have been swallowed((RRRR(RRR.((s*/usr/local/lib/python2.5/test/test_with.pyttestExitTrueSwallowsException|scCsidddY}y/|i}izddWd|~QXWntj
onX|iddS(NtEuropeanSwallowcBseZdZdZRS(cSsdS(N((R((s*/usr/local/lib/python2.5/test/test_with.pyRscSstS(N(R(RRRR((s*/usr/local/lib/python2.5/test/test_with.pyRs(RRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRs	iis)ZeroDivisionError should have been raised((RRRR(RRR.((s*/usr/local/lib/python2.5/test/test_with.pyt#testExitFalseDoesntSwallowExceptions(RRRR(((s*/usr/local/lib/python2.5/test/test_with.pyRzs	
tNewKeywordsWarningTestCasecBs&eZddZdZdZRS(c	Csti}tit_}zt|dddtWd|t_X|o!|id||ijn|i|iddS(Ns<string>texecis8Warning: %r will become a reserved keyword in Python 2.6R;(R&tstderrtStringIOR=Rtassert_tgetvalueRK(Rtcodetwordtsavetstream((s*/usr/local/lib/python2.5/test/test_with.pytchecks	

cCs|idd|idd|idd|idd|idd|idd|id	d|id
ddS(Nsas = 4tasswith = 4twithsclass as: passsclass with: passs
obj.as = 4swith.obj = 4sdef with(): passsdo(); with = 23(R(R((s*/usr/local/lib/python2.5/test/test_with.pyt
test_basicscCs$|idd|idddS(Nsimport sys
as = 4Rsimport sys
with = 4R(R(R((s*/usr/local/lib/python2.5/test/test_with.pyttest_after_importsN(RRR
RRR(((s*/usr/local/lib/python2.5/test/test_with.pyRs
	
c	Cs#tttttttttdS(N(	RR,R]RjRxRRRR(((s*/usr/local/lib/python2.5/test/test_with.pyt	test_mains	t__main__("t__doc__t
__future__Rt
__author__t	__email__R&tunittestRtcollectionsRt
contextlibRRttest.test_supportRRRR5RRR R+tTestCaseR,ROR]RjRxRRRRRR(((s*/usr/local/lib/python2.5/test/test_with.pys<module>s8	
$O'5	J9&		


Man Man