config root man

Current Path : /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 : //usr/local/lib/python2.5/test/test_contextlib.pyc

³ò
h”Rc@€sdZddklZddkZddkZddkZddkZddkZddkZddk	Tddk
lZdeifd„ƒYZ
deifd	„ƒYZd
eifd„ƒYZdeifd
„ƒYZdeifd„ƒYZd„ZedjoeƒndS(s9Unit tests for contextlib.py, and other context managers.iÿÿÿÿ(twith_statementN(t*(t	run_suitetContextManagerTestCasecB€s>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(c	€s–g‰t‡fd†ƒ}|ƒi}iƒ}z=|~}|iˆdgƒ|i|dƒˆi|ƒWd|~QX|iˆdddgƒdS(Nc3€s#ˆidƒdVˆidƒdS(Nii*iç(tappend((tstate(s0/usr/local/lib/python2.5/test/test_contextlib.pytwoohoos
ii*iç(tcontextmanagert__exit__t	__enter__tassertEqualR(tselfRt_[1]t_[2]tx((Rs0/usr/local/lib/python2.5/test/test_contextlib.pyttest_contextmanager_plains"c€sÆg‰t‡fd†ƒ}yk|ƒi}iƒ}zF|~}|iˆdgƒ|i|dƒˆi|ƒtƒ‚Wd|~QXWntj
onX|idƒ|iˆdddgƒdS(Nc3€s+ˆidƒz	dVWdˆidƒXdS(Nii*iç(R((R(s0/usr/local/lib/python2.5/test/test_contextlib.pyRs
	ii*sExpected ZeroDivisionErroriç(RRR	R
RtZeroDivisionErrortfail(RRRR
R((Rs0/usr/local/lib/python2.5/test/test_contextlib.pyttest_contextmanager_finallys"

cC€sHtd„ƒ}|ƒ}|iƒ|i|ittdƒdƒƒdS(Ncs€s	dVdS(N((((s0/usr/local/lib/python2.5/test/test_contextlib.pytwhee3stfoo(RR	tfailIfRt	TypeErrortNone(RRtctx((s0/usr/local/lib/python2.5/test/test_contextlib.pyttest_contextmanager_no_reraise2s	
cC€sHtd„ƒ}|ƒ}|iƒ|it|ittdƒdƒdS(Ncs€sy	dVWndVnXdS(N((((s0/usr/local/lib/python2.5/test/test_contextlib.pytwhoo<s	R(RR	tassertRaisestRuntimeErrorRRR(RRR((s0/usr/local/lib/python2.5/test/test_contextlib.pyt*test_contextmanager_trap_yield_after_throw;s
	
c	€s¥g‰t‡‡fd†ƒ}|ƒi}iƒ}zI|~}ˆiˆdgƒˆi|dƒˆi|ƒtdƒ‚Wd|~QXˆiˆdddgƒdS(Nc3€s_ˆidƒy	dVWnBtj
o6}ˆi|idƒˆiˆdddgƒnXdS(Nii*iiç(RRtargsR
(te(RR(s0/usr/local/lib/python2.5/test/test_contextlib.pyRJs
	ii*iç(RRR	R
RR(RRRR
R((RRs0/usr/local/lib/python2.5/test/test_contextlib.pyttest_contextmanager_exceptHs"
cC€sdd„}t|ddƒd„ƒƒ}|i|idƒ|i|idƒ|i|idƒdS(Nc€s‡fd†}|S(Nc€s1x*ˆiƒD]\}}t|||ƒq
W|S(N(titemstsetattr(tfunctktv(tkw(s0/usr/local/lib/python2.5/test/test_contextlib.pytdecorate[s
((R&R'((R&s0/usr/local/lib/python2.5/test/test_contextlib.pytattribsZsRtbarcS€sdS(sWhee!N((tspam((s0/usr/local/lib/python2.5/test/test_contextlib.pytbaz`sR+sWhee!(RR
t__name__Rt__doc__(RR(R+((s0/usr/local/lib/python2.5/test/test_contextlib.pyttest_contextmanager_attribsYs	(R,t
__module__RRRRR R.(((s0/usr/local/lib/python2.5/test/test_contextlib.pyRs	
				
	tNestedTestCasecB€sGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(c	C€sªtd„ƒ}td„ƒ}td„ƒ}t|ƒ|ƒ|ƒƒi}iƒ}zF|~\}}}|i|dƒ|i|dƒ|i|dƒWd|~QXdS(Ncs€s	dVdS(Ni((((s0/usr/local/lib/python2.5/test/test_contextlib.pytamscs€s	dVdS(Ni((((s0/usr/local/lib/python2.5/test/test_contextlib.pytbpscs€s	dVdS(Ni((((s0/usr/local/lib/python2.5/test/test_contextlib.pytcssiii(RtnestedRR	R
(	RR1R2R3RR
Rtytz((s0/usr/local/lib/python2.5/test/test_contextlib.pyttest_nestedls=c
€sßg‰t‡fd†ƒ}t‡fd†ƒ}yft|ƒ|ƒƒi}iƒ}z5|~\}}ˆi|ƒˆi|ƒddWd|~QXWn5tj
o)|iˆdddddd	gƒnX|id
ƒdS(Nc3€s+ˆidƒz	dVWdˆidƒXdS(Niii(R((R(s0/usr/local/lib/python2.5/test/test_contextlib.pyR1}s
	c3€s+ˆidƒz	dVWdˆidƒXdS(Niii(R((R(s0/usr/local/lib/python2.5/test/test_contextlib.pyR2„s
	iiiiiiisDidn't raise ZeroDivisionError(RR4RR	RRR
R(RR1R2RR
RR5((Rs0/usr/local/lib/python2.5/test/test_contextlib.pyttest_nested_cleanup{s4

'cC€sÓg}td„ƒ}dtfd„ƒY}yLt|ƒ|ƒƒi}iƒ}z|~\}}ddWd|~QXWnHtj
o|i||fd	ƒn.tj
o|idƒnX|idƒdS(
Ncs€s	dVdS(Ni((((s0/usr/local/lib/python2.5/test/test_contextlib.pyR1—sR2cB€seZd„Zd„ZRS(cS€sdS(Ni((R((s0/usr/local/lib/python2.5/test/test_contextlib.pyR	›scW€sy
tƒ‚WnnXdS(N(t	Exception(Rtexc_info((s0/usr/local/lib/python2.5/test/test_contextlib.pyRs
(R,R/R	R(((s0/usr/local/lib/python2.5/test/test_contextlib.pyR2šs	iiisReraised wrong exceptionsDidn't raise ZeroDivisionError(ii(	RtobjectR4RR	RR
R9R(RRR1R2RR
RR5((s0/usr/local/lib/python2.5/test/test_contextlib.pyttest_nested_right_exception•s4cC€s€td„ƒ}td„ƒ}y;t|ƒ|ƒƒi}iƒzddWd|~QXWn tj
o|idƒnXdS(Ncs€s	dVdS(N((((s0/usr/local/lib/python2.5/test/test_contextlib.pyR1­scs€sy	dVWnnXdS(N((((s0/usr/local/lib/python2.5/test/test_contextlib.pyR2°s	iis Didn't swallow ZeroDivisionError(RR4RR	RR(RR1R2R((s0/usr/local/lib/python2.5/test/test_contextlib.pyttest_nested_b_swallows¬s#cC€s|td„ƒ}d}xPtoH|d7}t|ƒ|ƒƒi}iƒzPWd|~QX|d7}qW|i|dƒdS(Ncs€s	dVdS(N((((s0/usr/local/lib/python2.5/test/test_contextlib.pyR1¾siii
(RtTrueR4RR	R
(RR1RR((s0/usr/local/lib/python2.5/test/test_contextlib.pyttest_nested_break½s
#
cC€s„td„ƒ}d}xX|djoJ|d7}t|ƒ|ƒƒi}iƒzwWd|~QX|d7}qW|i|dƒdS(Ncs€s	dVdS(N((((s0/usr/local/lib/python2.5/test/test_contextlib.pyR1Êsiiii
(RR4RR	R
(RR1RR((s0/usr/local/lib/python2.5/test/test_contextlib.pyttest_nested_continueÉs

#c€s5td„ƒ‰‡fd†}|i|ƒdƒdS(Ncs€sy	dVWnnXdS(N((((s0/usr/local/lib/python2.5/test/test_contextlib.pyR1Ös	c€s7tˆƒˆƒƒi}iƒzdSWd|~QXdS(Nii
(R4RR	(R(R1(s0/usr/local/lib/python2.5/test/test_contextlib.pyRÜs#i(RR
(RR((R1s0/usr/local/lib/python2.5/test/test_contextlib.pyttest_nested_returnÕs(	R,R/R7R8R<R=R?R@RA(((s0/usr/local/lib/python2.5/test/test_contextlib.pyR0hs						tClosingTestCasecB€seZd„Zd„ZRS(c€sg‰dd‡fd†ƒY}|ƒ}|iˆgƒt|ƒi}iƒ}z|~}|i||ƒWd|~QX|iˆdgƒdS(NtCc€seZ‡fd†ZRS(c€sˆidƒdS(Ni(R(R(R(s0/usr/local/lib/python2.5/test/test_contextlib.pytcloseés(R,R/RD((R(s0/usr/local/lib/python2.5/test/test_contextlib.pyRCèsi((R
tclosingRR	(RRCRRR
R5((Rs0/usr/local/lib/python2.5/test/test_contextlib.pyttest_closingæs	%c
€s¿g‰dd‡fd†ƒY}|ƒ}|iˆgƒyMt|ƒi}iƒ}z%|~}|i||ƒddWd|~QXWn&tj
o|iˆdgƒnX|idƒdS(NRCc€seZ‡fd†ZRS(c€sˆidƒdS(Ni(R(R(R(s0/usr/local/lib/python2.5/test/test_contextlib.pyRDôs(R,R/RD((R(s0/usr/local/lib/python2.5/test/test_contextlib.pyRCósiisDidn't raise ZeroDivisionError((R
RERR	RR(RRCRRR
R5((Rs0/usr/local/lib/python2.5/test/test_contextlib.pyttest_closing_errorñs	%(R,R/RFRG(((s0/usr/local/lib/python2.5/test/test_contextlib.pyRBâs	tFileContextTestCasecB€seZd„ZRS(cC€sHtiƒ}z
d}t|dƒi}iƒ}z*|~}|i|iƒ|idƒWd|~QX|i	|iƒd}yft|dƒi}iƒ}z;|~}|i|iƒ|i
|iƒdƒddWd|~QXWn#tj
o|i	|iƒnX|i
dƒWdyti|ƒWntij
onXXdS(NtwsBooh
triisDidn't raise ZeroDivisionError(ttempfiletmktempRtopenRR	Rtclosedtwritet
failUnlessR
treadRRtostremoveterror(RttfntfRR
t_[3]t_[4]((s0/usr/local/lib/python2.5/test/test_contextlib.pyttestWithOpens((((R,R/RY(((s0/usr/local/lib/python2.5/test/test_contextlib.pyRHstLockContextTestCasecB€s>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cC€sÃ|i|ƒƒ|i}iƒz|i|ƒƒWd|~QX|i|ƒƒy<|i}iƒz|i|ƒƒddWd|~QXWn#tj
o|i|ƒƒnX|idƒdS(NiisDidn't raise ZeroDivisionError(RRR	RPRR(RtlocktlockedRR
((s0/usr/local/lib/python2.5/test/test_contextlib.pytboilerPlatescC€s#tiƒ}|i||iƒdS(N(t	threadingtLockR]R\(RR[((s0/usr/local/lib/python2.5/test/test_contextlib.pyttestWithLock+scC€s#tiƒ}|i||iƒdS(N(R^tRLockR]t	_is_owned(RR[((s0/usr/local/lib/python2.5/test/test_contextlib.pyt
testWithRLock/sc€s/tiƒ‰‡fd†}|iˆ|ƒdS(Nc€s
ˆiƒS(N(Rb((R[(s0/usr/local/lib/python2.5/test/test_contextlib.pyR\5s(R^t	ConditionR](RR\((R[s0/usr/local/lib/python2.5/test/test_contextlib.pyttestWithCondition3sc€s/tiƒ‰‡fd†}|iˆ|ƒdS(Nc€s*ˆitƒoˆiƒtSntSdS(N(tacquiretFalsetreleaseR>((R[(s0/usr/local/lib/python2.5/test/test_contextlib.pyR\;s
(R^t	SemaphoreR](RR\((R[s0/usr/local/lib/python2.5/test/test_contextlib.pyttestWithSemaphore9sc€s/tiƒ‰‡fd†}|iˆ|ƒdS(Nc€s*ˆitƒoˆiƒtSntSdS(N(RfRgRhR>((R[(s0/usr/local/lib/python2.5/test/test_contextlib.pyR\Es
(R^tBoundedSemaphoreR](RR\((R[s0/usr/local/lib/python2.5/test/test_contextlib.pyttestWithBoundedSemaphoreCs(R,R/R]R`RcReRjRl(((s0/usr/local/lib/python2.5/test/test_contextlib.pyRZs					
cC€s!ttiititƒƒdS(N(RtunittesttdefaultTestLoadertloadTestsFromModuletsystmodulesR,(((s0/usr/local/lib/python2.5/test/test_contextlib.pyt	test_mainNst__main__(R-t
__future__RRpRRtdecimalRKRmR^t
contextlibttest.test_supportRtTestCaseRR0RBRHRZRrR,(((s0/usr/local/lib/python2.5/test/test_contextlib.pys<module>s"
Zz3	


Man Man