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_functools.pyc

³ò
h”Rc@sddkZddkZddklZddklZed„ƒZd„Zdei	fd„ƒYZ
deifd	„ƒYZd
e
fd„ƒYZ
de
fd
„ƒYZdei	fd„ƒYZdefd„ƒYZdd„ZedjoedeƒndS(iÿÿÿÿN(ttest_support(tproxycs4‡‡‡fd†}ˆ|_ˆ|_ˆ|_|S(s&Pure Python approximation of partial()cs*ˆiƒ}|i|ƒˆˆ||ŽS(N(tcopytupdate(tfargst	fkeywordstnewkeywords(targstfunctkeywords(s//usr/local/lib/python2.5/test/test_functools.pytnewfunc	s
(RRR	(RRR	R
((R	RRs//usr/local/lib/python2.5/test/test_functools.pyt
PythonPartials
			cOs
||fS(s,capture all positional and keyword arguments((Rtkw((s//usr/local/lib/python2.5/test/test_functools.pytcapturestTestPartialcBs†eZeiZd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd„Zd„Z
d	„Zd
„Zd„Zd„ZRS(
c
Cs¨|itddddddƒ}|i|dddd	d
dƒd
tdddd	d
dƒfƒ|itd„ƒ}|i|ddddgƒddd	dgƒdS(Niitai
tbiiiitci(cSs|dS(i
((tx((s//usr/local/lib/python2.5/test/test_functools.pyt<lambda>s(iiii(tthetypeR
tassertEqualtdicttmap(tselftp((s//usr/local/lib/python2.5/test/test_functools.pyttest_basic_exampless
!"c
Csâ|itddddddƒ}|i|itƒ|i|id
ƒ|i|itddddƒƒt|itƒpdSn|i	t
t|dtƒ|i	t
t|ddƒ|i	t
t|d	tddddƒƒdS(NiiRi
RiRRR	(ii(ii(
RR
RRRR	Rt
isinstancettypetassertRaisest	TypeErrortsetattrR(RR((s//usr/local/lib/python2.5/test/test_functools.pyttest_attributes!s!"cCsN|it|iƒy|idƒƒWntj
onX|idƒdS(Nis%First arg not checked for callability(RRRtfail(R((s//usr/local/lib/python2.5/test/test_functools.pyttest_argument_checking.scCsŒddd„}hdd<}|i|ddƒ}|i||dƒ|i|hdd<ƒ|ddƒ|i|hdd<ƒdS(	Ni
icSs|S(N((RR((s//usr/local/lib/python2.5/test/test_functools.pyR9siRiRi(RR(RRtdR((s//usr/local/lib/python2.5/test/test_functools.pyt(test_protection_of_callers_dict_argument7s
cCs˜|itƒ}|i|ƒdhfƒ|i|ddƒdhfƒ|itddƒ}|i|ƒdhfƒ|i|ddƒdhfƒdS(	Niiii((ii(ii(iiii(RR
R(RR((s//usr/local/lib/python2.5/test/test_functools.pyttest_arg_combinationsBscCsó|itƒ}|i|ƒdhfƒ|i|ddƒdhdd<fƒ|itddƒ}|i|ƒdhdd<fƒ|i|ddƒd	hdd<dd<fƒ|i|ddddƒd
hdd<dd<fƒdS(NRiRii((((((RR
R(RR((s//usr/local/lib/python2.5/test/test_functools.pyttest_kw_combinationsLs("1cCsrxkdddd	d
gD]T}|it|Œ}|d}|dƒ\}}|i||jo
|hjƒqWdS(NiiiiR((i(ii(iii(iiii(R(RR
t
failUnless(RRRtexpectedtgottempty((s//usr/local/lib/python2.5/test/test_functools.pyttest_positionalXs
cCsƒx|ddddgD]h}|itd|ƒ}h|d<dd<}|ddƒ\}}|i||jo
|djƒqWdS(NRig@R((tNoneRR
R'(RRRR(R*R)((s//usr/local/lib/python2.5/test/test_functools.pyttest_keyword`scCsž|itdddƒ}|dddƒ\}}|i|djo|hdd<dd<jƒ|ƒ\}}|i|djo|hdd<jƒdS(NiRiRi(ii(i(RR
R'(RRtargs1tkw1targs2tkw2((s//usr/local/lib/python2.5/test/test_functools.pyttest_no_side_effectshs
2cCsŒd„}|it|i|ddƒƒ|it|i|dƒdƒ|it|i|ƒddƒ|it|i|ddƒdƒdS(NcSs||dS(N((Rty((s//usr/local/lib/python2.5/test/test_functools.pytfqsiiR3(RtZeroDivisionErrorR(RR4((s//usr/local/lib/python2.5/test/test_functools.pyttest_error_propagationps
	cCs@|itƒ}y
|`Wntj
onX|idƒdS(Ns-partial object allowed __dict__ to be deleted(Rthext__dict__RR!(RR((s//usr/local/lib/python2.5/test/test_functools.pyR xs
cCsW|itddƒ}t|ƒ}|i|i|iƒd}|itt|dƒdS(NtbaseiR(	RtintRRRR,RtReferenceErrortgetattr(RR4R((s//usr/local/lib/python2.5/test/test_functools.pyttest_weakrefs
cCsltttdƒƒ}|itidƒ}|i||ƒdƒ|idiƒ}|i||ƒdƒdS(Ni
tt
0123456789(RtstrtrangeRtjoinR(RtdataRB((s//usr/local/lib/python2.5/test/test_functools.pyt#test_with_bound_and_unbound_methodsˆs
(t__name__t
__module__t	functoolstpartialRRR R"R$R%R&R+R-R2R6R=RD(((s//usr/local/lib/python2.5/test/test_functools.pyRs			
				
								tPartialSubclasscBseZRS((RERF(((s//usr/local/lib/python2.5/test/test_functools.pyRIstTestPartialSubclasscBseZeZRS((RERFRIR(((s//usr/local/lib/python2.5/test/test_functools.pyRJ’stTestPythonPartialcBseZeZRS((RERFRR(((s//usr/local/lib/python2.5/test/test_functools.pyRK—stTestUpdateWrappercBsAeZeieid„Zd„Zd„Zd„Zd„Z	RS(c	Cs•x3|D]+}|it||ƒt||ƒjƒqWxX|D]P}t||ƒ}t||ƒ}x)|D]!}|i||||jƒqhWq=WdS(N(R'R<(	Rtwrappertwrappedtassignedtupdatedtnametwrapper_attrtwrapped_attrtkey((s//usr/local/lib/python2.5/test/test_functools.pyt
check_wrappers)cCsxd„}d|_d„}ti||ƒ|i||ƒ|i|idƒ|i|idƒ|i|idƒdS(NcSsdS(sThis is a testN((((s//usr/local/lib/python2.5/test/test_functools.pyR4«ssThis is also a testcSsdS(N((((s//usr/local/lib/python2.5/test/test_functools.pyRM¯sR4sThis is a test(tattrRGtupdate_wrapperRURREt__doc__(RR4RM((s//usr/local/lib/python2.5/test/test_functools.pyttest_default_updateªs			cCs‡d„}d|_d„}ti||ddƒ|i||dd	ƒ|i|idƒ|i|idƒ|it	|dƒƒdS(
NcSsdS(sThis is a testN((((s//usr/local/lib/python2.5/test/test_functools.pyR4¸ssThis is also a testcSsdS(N((((s//usr/local/lib/python2.5/test/test_functools.pyRM¼sRMRV(((((
RVRGRWRURRERXR,tfailIfthasattr(RR4RM((s//usr/local/lib/python2.5/test/test_functools.pyttest_no_update·s			cCsÍd„}d|_tddddddƒ|_d	„}h|_d
}d}ti||||ƒ|i||||ƒ|i|idƒ|i|idƒ|i|idƒ|i|i|iƒdS(NcSsdS(N((((s//usr/local/lib/python2.5/test/test_functools.pyR4ÅssThis is a different testRiRiRicSsdS(N((((s//usr/local/lib/python2.5/test/test_functools.pyRMÉsRVt	dict_attrRM(sattr(s	dict_attr(
RVRR]RGRWRURRERXR,(RR4RMtassignR((s//usr/local/lib/python2.5/test/test_functools.pyttest_selective_updateÄs				cCsId„}ti|tƒ|i|idƒ|i|iidƒƒdS(NcSsdS(N((((s//usr/local/lib/python2.5/test/test_functools.pyRM×stmaxsmax((RGRWR`RREtassert_RXt
startswith(RRM((s//usr/local/lib/python2.5/test/test_functools.pyttest_builtin_updateÕs	(
RERFRGtWRAPPER_ASSIGNMENTStWRAPPER_UPDATESRURYR\R_Rc(((s//usr/local/lib/python2.5/test/test_functools.pyRL›s	
	
	t	TestWrapscBs#eZd„Zd„Zd„ZRS(cCswd„}d|_ti|ƒd„ƒ}|i||ƒ|i|idƒ|i|idƒ|i|idƒdS(NcSsdS(sThis is a testN((((s//usr/local/lib/python2.5/test/test_functools.pyR4àssThis is also a testcSsdS(N((((s//usr/local/lib/python2.5/test/test_functools.pyRMäsR4sThis is a test(RVRGtwrapsRURRERX(RR4RM((s//usr/local/lib/python2.5/test/test_functools.pyRYßs		cCs†d„}d|_ti|ddƒd„ƒ}|i||dd	ƒ|i|idƒ|i|idƒ|it	|dƒƒdS(
NcSsdS(sThis is a testN((((s//usr/local/lib/python2.5/test/test_functools.pyR4íssThis is also a testcSsdS(N((((s//usr/local/lib/python2.5/test/test_functools.pyRMñsRMRV(((((
RVRGRgRURRERXR,RZR[(RR4RM((s//usr/local/lib/python2.5/test/test_functools.pyR\ìs		cCsÒd„}d|_tddddddƒ|_d	„}d}d}ti|||ƒ|d„ƒƒ}|i||||ƒ|i|id
ƒ|i|idƒ|i|idƒ|i|i|iƒdS(NcSsdS(N((((s//usr/local/lib/python2.5/test/test_functools.pyR4ússThis is a different testRiRiRicSs
h|_|S(N(R](R4((s//usr/local/lib/python2.5/test/test_functools.pyt
add_dict_attrþs	RVR]cSsdS(N((((s//usr/local/lib/python2.5/test/test_functools.pyRMsRM(sattr(s	dict_attr(
RVRR]RGRgRURRERXR,(RR4RhR^RRM((s//usr/local/lib/python2.5/test/test_functools.pyR_ùs			(RERFRYR\R_(((s//usr/local/lib/python2.5/test/test_functools.pyRfÝs	
	
cCs¯ddk}tttttf}ti|Œ|ovt|dƒofddk	}dgd}xAtt|ƒƒD]-}ti|Œ|i
ƒ|iƒ||<qqW|GHndS(Niÿÿÿÿtgettotalrefcounti(tsysRRJRKRLRfRtrun_unittestR[tgcR,txrangetlentcollectRi(tverboseRjttest_classesRltcountsti((s//usr/local/lib/python2.5/test/test_functools.pyt	test_mains 	



t__main__Rp(RGtunittestttestRtweakrefRtstaticmethodRR
tTestCaseRRHRIRJRKRLRfR,RtREtTrue(((s//usr/local/lib/python2.5/test/test_functools.pys<module>s	yB2


Man Man