%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/test/test_marshal.pyc

ó
Nêáac@sàddlmZddlZddlZddlZddlZyddlZWnek
ridZnXdej	fd„ƒYZ
dej	fd„ƒYZdej	fd„ƒYZd	ej	fd
„ƒYZ
dej	fd„ƒYZd
ej	fd„ƒYZdej	fd„ƒYZdZejdkr4dndZejdkrOdndZejeejkdƒdej	fd„ƒYƒZejejedƒdej	fd„ƒYƒƒZd„ZedkrÜeƒndS( iÿÿÿÿ(ttest_supportNtIntTestCasecBs#eZd„Zd„Zd„ZRS(cCsÁtj}x¡|r¬xŠ||fD]{}tj|ƒ}tj|ƒ}|j||ƒtj|ttj	dƒƒtj
ttj	dƒƒ}|j||ƒq W|d?}qWtjtj	ƒdS(Ntwbtrbi(
tsystmaxinttmarshaltdumpstloadstassertEqualtdumptfileRtTESTFNtloadtostunlink(tselftntexpectedtstgot((s-/usr/local/lib/python2.7/test/test_marshal.pyt	test_intss		cCsŸd„}d
}|d}x~||||d?fD]d}x[|r–d||dƒ}tj|ƒ}|j||ƒ|dkr‰d}q<|dL}q<Wq3WdS(NcSsKg}x5t|ƒD]'}|jt|d@ƒƒ|dL}qWdj|ƒS(Niÿit(trangetappendtchrtjoin(tvaluetnbytestbytesti((s-/usr/local/lib/python2.7/test/test_marshal.pytto_little_endian_string!s
li?itIiiÿÿÿÿillÿÿÿÿ(RRR	(RRtmaxint64tminint64tbaseRR((s-/usr/local/lib/python2.7/test/test_marshal.pyt
test_int64s			cCsÂx»ttfD]­}tjtj|ƒƒ}|j||ƒ|jt|ƒt|ƒƒtj|tt	j
dƒƒtjtt	j
dƒƒ}|j||ƒ|jt|ƒt|ƒƒq
WdS(NRR(tTruetFalseRRRR	ttypeR
RRRR
(Rtbtnew((s-/usr/local/lib/python2.7/test/test_marshal.pyt	test_bool5s(t__name__t
__module__RR$R*(((s-/usr/local/lib/python2.7/test/test_marshal.pyRs		t
FloatTestCasecBseZd„ZRS(cCsƒd}tjd}x³||krÈx–||fD]‡}t|ƒ}tj|ƒ}tj|ƒ}|j||ƒtj|tt	j
dƒƒtjtt	j
dƒƒ}|j||ƒq0W|d:}qWd}tj|dƒ}tj|ƒ}|j||ƒtj|dƒ}tj|ƒ}|j||ƒtjd	}x.||krnx||fD]}t|ƒ}tj|ƒ}tj|ƒ}|j||ƒtj|dƒ}tj|ƒ}|j||ƒtj|tt	j
dƒƒtjtt	j
dƒƒ}|j||ƒtj|tt	j
dƒdƒtjtt	j
dƒƒ}|j||ƒq[W|d9}qAWtj
t	j
ƒdS(
NgÙ}ÚõÐò¾:gŸ6˜Ò«ôsRRgS£’:Ý^@giigìZ1%(RRtfloatRRRR	R
RRRR
RR(RtsmallRRtfRR((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_floats@sJ

(R+R,R1(((s-/usr/local/lib/python2.7/test/test_marshal.pyR-?stStringTestCasecBs#eZd„Zd„Zd„ZRS(cCsÜxÅdddddgD]­}tjtj|ƒƒ}|j||ƒ|jt|ƒt|ƒƒtj|ttjdƒƒtj	ttjdƒƒ}|j||ƒ|jt|ƒt|ƒƒqWt
jtjƒdS(Nuu
Andrè Previnuabcu i'RR(RRRR	R'R
RRRR
RR(RRR)((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_unicodeps cCsÜxÅdddddgD]­}tjtj|ƒƒ}|j||ƒ|jt|ƒt|ƒƒtj|ttjdƒƒtj	ttjdƒƒ}|j||ƒ|jt|ƒt|ƒƒqWt
jtjƒdS(NRsAndrè Previntabct i'RR(RRRR	R'R
RRRR
RR(RRR)((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_string{s cCsÌxµdddddgD]}tjdtfƒt|ƒ}WdQXtjtj|ƒƒ}|j||ƒtj|t	tj
dƒƒtjt	tj
dƒƒ}|j||ƒqWtj
tj
ƒdS(	NRsAndrè PrevinR4R5i'sbuffer.. not supportedRR(Rtcheck_py3k_warningstDeprecationWarningtbufferRRRR	R
RRR
RR(RRR(R)((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_buffer†s	
(R+R,R3R6R:(((s-/usr/local/lib/python2.7/test/test_marshal.pyR2os		tExceptionTestCasecBseZd„ZRS(cCs,tjtjtƒƒ}|jt|ƒdS(N(RRRt
StopIterationR	(RR)((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_exceptions“s(R+R,R=(((s-/usr/local/lib/python2.7/test/test_marshal.pyR;’stCodeTestCasecBseZd„ZRS(cCs8tjj}tjtj|ƒƒ}|j||ƒdS(N(R;R=t	func_codeRRRR	(RtcoR)((s-/usr/local/lib/python2.7/test/test_marshal.pyt	test_code˜s(R+R,RA(((s-/usr/local/lib/python2.7/test/test_marshal.pyR>—stContainerTestCasecBsmeZidd6dd6dd6dd6d	gd
6dd6ed
6dd6Zd„Zd„Zd„Zd„ZRS(sfoo@bar.baz.spamtastringgHázns¼@tafloatiitanintlt
ashortlongs.zyx.41talisti
tatupletabooleanu
Andrè PrevintaunicodecCstjtj|jƒƒ}|j|j|ƒtj|jttjdƒƒtj	ttjdƒƒ}|j|j|ƒt
jtjƒdS(NRR(RRRtdR	R
RRRR
RR(RR)((s-/usr/local/lib/python2.7/test/test_marshal.pyt	test_dict§scCs’|jjƒ}tjtj|ƒƒ}|j||ƒtj|ttj	dƒƒtj
ttj	dƒƒ}|j||ƒtjtj	ƒdS(NRR(
RKtitemsRRRR	R
RRRR
RR(RtlstR)((s-/usr/local/lib/python2.7/test/test_marshal.pyt	test_list¯scCs˜t|jjƒƒ}tjtj|ƒƒ}|j||ƒtj|tt	j
dƒƒtjtt	j
dƒƒ}|j||ƒtj
t	j
ƒdS(NRR(ttupleRKtkeysRRRR	R
RRRR
RR(RttR)((s-/usr/local/lib/python2.7/test/test_marshal.pyt
test_tuple¸scCsáxÚttfD]Ì}||jjƒƒ}tjtj|ƒƒ}|j||ƒ|jt	||ƒƒ|j
t|ƒt|ƒƒtj|t
tjdƒƒtjt
tjdƒƒ}|j||ƒtjtjƒq
WdS(NRR(tsett	frozensetRKRQRRRR	t
assertTruet
isinstancetassertNotEqualtidR
RRRR
RR(RtconstructorRRR)((s-/usr/local/lib/python2.7/test/test_marshal.pyt	test_setsÁsi(s.zyx.41(
s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41s.zyx.41(R+R,R&RKRLRORSR[(((s-/usr/local/lib/python2.7/test/test_marshal.pyRBs


					tBugsTestCasecBsYeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	cCstjdgdƒdS(Ni€iè(RR(R((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_bug_5888452ÎscCsS|jttjdƒ|jttjdƒ|jttjtjdƒd ƒdS(Nt0R0liÿÿÿÿ(tassertRaisest	ExceptionRRR(R((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_patch_873224ÒscCsN|jtjtjddƒƒdƒ|jtjtjddƒƒdƒdS(Niii(R	RRR(R((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_version_argument×s%cCsYxRgtdƒD]}t|ƒ^qD]+}ytj|ƒWq&tk
rPq&Xq&WdS(Ni(RRRRR`(RRtc((s-/usr/local/lib/python2.7/test/test_marshal.pyt	test_fuzzÜs
,
cs9d„}|dtjƒ‡fd†}|d|ƒdS(NcSsT|d|dƒ|d|dƒ|d|dd|ƒ|d|dƒdS(Ns(tNs[s{NR^s>((Retcheck((s-/usr/local/lib/python2.7/test/test_marshal.pyt	run_testsæsidcsˆjttj|ƒdS(N(R_t
ValueErrorRR(R(R(s-/usr/local/lib/python2.7/test/test_marshal.pyRfósiii(RR(RRgRf((Rs-/usr/local/lib/python2.7/test/test_marshal.pyttest_loads_recursionås	cCsg}}tjdkr1ttdƒr1d}nd}x2t|dƒD] }|jdgƒ|d}qHWtj|ƒ}tj|ƒ}|j	t
|ƒt
|ƒƒ|j	t
|dƒt
|dƒƒ|j	t
|dƒt
|dƒƒ|jdgƒ|jttj|ƒdS(NtnttgettotalrefcountièiÐiiiÿÿÿÿ(
RtnamethasattrRRRRRRR	tlenR_Rh(RtheadtlasttMAX_MARSHAL_STACK_DEPTHRtdatatnew_head((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_recursion_limit÷s
	$$c	Cs^xWtttttttttf	D]4}t	d|fiƒ}|j
ttj
|ƒƒq"WdS(Ntsubtyp(tinttlongR.tcomplexRPtlisttdictRTRUR'R_RhRR(RttypRu((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_exact_type_matchs(cCs'tdƒ}d|}tj|ƒdS(Ng€„.AR4(RvRR(Rtsizet
testString((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_large_marshals
cCs d}|jttj|ƒdS(Ns	l(R_RhRR(Rtinvalid_string((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_invalid_longs s(R+R,R]RaRbRdRiRtR|RR(((s-/usr/local/lib/python2.7/test/test_marshal.pyR\Ís								
	iiiÿÿiIÿÿÿÿis!test cannot run on 32-bit systemstLargeValuesTestCasecBsPeZd„Zejdedddeƒd„ƒZejdededdeƒd„ƒZ	ejdede
deƒd„ƒZejdede
deƒd	„ƒZejdede
d
e
jedƒdeƒd„ƒZejdede
d
e
jedƒdeƒd„ƒZejdedddeƒd
„ƒZRS(c	CsRttjdƒ}|jtjtjƒ||jttj||ƒWdQXdS(NR(	topenRRt
addCleanupRR_RhRR
(RRrR0((s-/usr/local/lib/python2.7/test/test_marshal.pytcheck_unmarshallable+sR}tmemuseitdry_runcCs|jd|ƒdS(Ntx(R…(RR}((s-/usr/local/lib/python2.7/test/test_marshal.pyR61sicCs|jd|ƒdS(Nux(R…(RR}((s-/usr/local/lib/python2.7/test/test_marshal.pyR35scCs|jd|ƒdS(N(N(R…tNone(RR}((s-/usr/local/lib/python2.7/test/test_marshal.pyRS:scCs|jdg|ƒdS(N(R…R‰(RR}((s-/usr/local/lib/python2.7/test/test_marshal.pyRO?sicCs|jtt|ƒƒƒdS(N(R…RTR(RR}((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_setDscCs|jtt|ƒƒƒdS(N(R…RUR(RR}((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_frozensetJscCs|jt|ƒƒdS(N(R…t	bytearray(RR}((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_bytearrayPs(R+R,R…Rtprecisionbigmemtestt
LARGE_SIZER&R6tcharacter_sizeR3tpointer_sizeRSRORt	getsizeofRŠR‹R(((s-/usr/local/lib/python2.7/test/test_marshal.pyR‚)s	'srequires _testcapit
CAPI_TestCasecBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsxxttjdƒD]c}tjdtj|ƒttjdƒ}|jƒ}WdQXtj	tjƒ|j
|dƒqWdS(NiixV4RsxV4(RRtversiont	_testcapitpymarshal_write_long_to_fileRRRƒtreadRR	(RtvR0Rr((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_write_long_to_fileYscCs¤dddddddf}xttjd	ƒD]l}tj|tj|ƒttjd
ƒ}|jƒ}WdQXtj	tjƒ|j
tj|ƒ|ƒq0WdS(Ns\u20acR4i{gÍÌÌÌÌÌF@iy @s
long line ièiRy@ @(RRR”R•tpymarshal_write_object_to_fileRRRƒR—RR	R(RtobjR˜R0Rr((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_write_object_to_fileascCstttjdƒ}|jdƒWdQXtjtjƒ\}}tjtjƒ|j|dƒ|j|dƒdS(NRs4xxxxi4i(RƒRRtwriteR•tpymarshal_read_short_from_fileRR	(RR0trtp((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_read_short_from_filejscCstttjdƒ}|jdƒWdQXtjtjƒ\}}tjtjƒ|j|dƒ|j|dƒdS(NRsxV4xxxxixV4i(RƒRRRR•tpymarshal_read_long_from_fileRR	(RR0RŸR ((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_read_long_from_filerscCs­ddddd
f}x‘ttjdƒD]|}tj||ƒ}ttjdƒ}|j|d	ƒWdQXtj	tjƒ\}}tj
tjƒ|j||ƒq)WdS(Ns\u20acR4i{gÍÌÌÌÌÌF@iy @iRtxxxxy@ @(RRR”RRƒRRRR•t$pymarshal_read_last_object_from_fileRR	(RR›R˜RrR0RŸR ((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_read_last_object_from_filezscCsÃddddd
f}x§ttjdƒD]’}tj||ƒ}ttjdƒ}|j|d	ƒWdQXtj	tjƒ\}}tj
tjƒ|j||ƒ|j|t|ƒƒq)WdS(Ns\u20acR4i{gÍÌÌÌÌÌF@iy @iRR¤y@ @(
RRR”RRƒRRRR•tpymarshal_read_object_from_fileRR	Rn(RR›R˜RrR0RŸR ((s-/usr/local/lib/python2.7/test/test_marshal.pyttest_read_object_from_file„s(R+R,R™RœR¡R£R¦R¨(((s-/usr/local/lib/python2.7/test/test_marshal.pyR“Us						
c
Cs)tjtttttttt	t
ƒ	dS(N(Rtrun_unittestRR-R2R>RBR;R\R‚R“(((s-/usr/local/lib/python2.7/test/test_marshal.pyt	test_mains	t__main__I€(ttestRRRtunittestRR•tImportErrorR‰tTestCaseRR-R2R;R>RBR\Rt
maxunicodeRtmaxsizeR‘tskipIfR‚tcpython_onlyt
skipUnlessR“RªR+(((s-/usr/local/lib/python2.7/test/test_marshal.pyt<module>s4

10#0X+9	

Zerion Mini Shell 1.0