KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/test/test_zlib.pyc
mò
‚=5Dc@s_dkZdklZdkZdkZd„Zdeifd„ƒYZdeifd„ƒYZdeifd„ƒYZ	d	eifd
„ƒYZ
ded„Zded
„Z
dZd„Zedjoeƒndd„ZeondkZeiiddƒdkZeieiZZeiƒZeieiei	ƒƒeieƒndS(N(stest_supportcCsfdk}y|idƒ}|d}Wntj
ottƒ}nX|iƒd}|i	ƒ|S(Nt	test_zlibii(
timptfind_moduletttfiletImportErrortopent__file__treadtbuftclose(R	RRR((t&/usr/lib64/python2.4/test/test_zlib.pytgetbufs	
tChecksumTestCasecBs>tZd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCsB|itidƒtiddƒƒ|itiddƒƒdS(NtitabcIÿÿÿÿ(tselftassertEqualtzlibtcrc32tassert_(R((Rttest_crc32starts%cCsX|itiddƒdƒ|itiddƒdƒ|itiddƒdƒdS(NRiii°(RRRR(R((Rttest_crc32emptyscCsB|itidƒtiddƒƒ|itiddƒƒdS(NRiRIÿÿÿÿ(RRRtadler32R(R((Rttest_adler32start"s%cCsX|itiddƒdƒ|itiddƒdƒ|itiddƒdƒdS(NRiii°(RRRR(R((Rttest_adler32empty&scCs|i|d@|d@ƒdS(Nlÿÿ(RRtseentexpected(RRR((Rt
assertEqual32+scCs¾|itiddƒdƒ|itiddƒdƒ|itiddƒdƒ|itiddƒdƒ|itidƒtiddƒƒ|itidƒtiddƒƒdS(Ntpenguinil !ƒKii”ª¶CiöÏi÷Ö(RRRRRR(R((Rt
test_penguins0s%(t__name__t
__module__RRRRRR(((RR
s					tExceptionTestCasecBs#tZd„Zd„Zd„ZRS(NcCs'|ititidtidƒdS(NtERRORi(RtassertRaisesRterrortcompresst	MAX_WBITS(R((Rttest_bigbits=scCs#|ittidtidƒdS(Nii(RR#t
ValueErrorRtcompressobjtDEFLATED(R((Rttest_badcompressobjBscCs|ittidƒdS(Ni(RR#R(Rt
decompressobj(R((Rttest_baddecompressobjFs(RR R'R+R-(((RR!;s		tCompressTestCasecBstZd„Zd„ZRS(NcCs,titƒ}|iti|ƒtƒdS(N(RR%tHAMLET_SCENEtxRRt
decompress(RR0((Rttest_speechNscCs6td}ti|ƒ}|iti|ƒ|ƒdS(Ni€(R/tdataRR%R0RRR1(RR0R3((Rttest_speech128Rs
(RR R2R4(((RR.Ls	tCompressObjectTestCasecBsŒtZd„Zd„Zd„Zedddd„Zd„Zdddd„Z	ed	„Z
d
„Zd„Zd„Z
d
„Zd„ZRS(NcCsŠtd}tiƒ}|i|ƒ}|iƒ}|i
ti|iƒtiƒ}|i||ƒ}|iƒ}|i|||ƒdS(Ni€(R/R3RR)tcoR%tx1tflushtx2RR#R$R,tdcoR1ty1ty2R(RR:R<R6R;R9R7R3((Rt	test_pair]s
cCs d}ti}d}d}
ti}ti||||
|ƒ}|i
tƒ}|i
ƒ}	ti|ƒ}|i||	ƒ}|i
ƒ}|it||ƒdS(Niiôÿÿÿi	(tlevelRR*tmethodtwbitstmemlevelt
Z_FILTEREDtstrategyR)R6R%R/R7R8R9R,R:R1R;R<RR(RR<R:R7R6R>RCR;R@R9RAR?((Rttest_compressoptionsis		c	CsÊtd}tiƒ}g}xAtdt|ƒdƒD]'}|i	|i
|||d!ƒƒq5W|i	|iƒƒdi|ƒ}tiƒ}|idi|ƒƒ}|iƒ}|i|||ƒdS(Ni€iiR(R/R3RR)R6tbufstrangetlentitappendR%R8tjointcombufR,R:R1R;R<RR(	RR:R6RHR;RKR<R3RE((Rttest_compressincrementalxs
%ii@cCs¶|pt}|d}
tiƒ}g}xAtdt|
ƒ|ƒD]'}|i|i|
|||!ƒƒqBW|i|i
ƒƒdi|ƒ}	|i|
ti|	ƒƒtiƒ}g}xdtdt|	ƒ|ƒD]J}|i|i|	|||!ƒƒ|id|idt|iƒƒqÓW|o|i|i
ƒƒn8x4to,|idƒ}|o|i|ƒqBPqBW|id|idt|iƒƒ|i|
di|ƒƒdS(Ni€iRs!(A) uct should be '': not %d longs!(B) uct should be '': not %d long(tsourceR/R3RR)R6RERFRGtcxRHRIR%R8RJRKRRR1R,R:tdcxtunconsumed_tailtTruetchunk(RR8RMRNROR:R6RRRHRKR3RE((Rttest_decompinc‡s8

%!cCs|idtƒdS(NR8(RRSRQ(R((Rttest_decompincflushªscCsY|pt}|d}
tiƒ}g}xAtdt|
ƒ|ƒD]'}|i|i|
|||!ƒƒqBW|i|i
ƒƒdi|ƒ}	|i|
ti|	ƒdƒtiƒ}g}|	}x`|oX|i||ƒ}|it|ƒ|jdt|ƒ|fƒ|i|ƒ|i}qÆW|i|i
ƒƒ|i|
di|ƒdƒdS(Ni€iRscompressed data failureschunk too big (%d>%d)sWrong data retrieved(RMR/R3RR)R6RERFRGRNRHRIR%R8RJRKRRR1R,R:tcbRORRtfailIfRP(RRMRNROR:R6RRRHRURKR3RE((Rttest_decompimax­s.

%
cCsÅtd}	tiƒ}g}
xAtdt|	ƒdƒD]'}|
i	|i
|	||d!ƒƒq5W|
i	|iƒƒdi|
ƒ}|i|	ti|ƒdƒtiƒ}g}
|}xt|oldt|ƒd}|i||ƒ}|it|ƒ|jdt|ƒ|fƒ|
i	|ƒ|i}q¹W|o|
i	|iƒƒn[xW|oO|id|ƒ}|it|ƒ|jdt|ƒ|fƒ|
i	|ƒqNW|i|	di|
ƒd	ƒdS(
Ni€iiRscompressed data failureii
schunk too big (%d>%d)sWrong data retrieved(R/R3RR)R6RERFRGRHRIR%R8RJRKRRR1R,R:RUt
max_lengthRRRVRP(RR8R:R6RRRHRURXRKR3RE((Rttest_decompressmaxlenÈs<
%
cCs|idtƒdS(NR8(RRYRQ(R((Rttest_decompressmaxlenflushèscCs<tiƒ}|it|iddƒ|id|iƒdS(NRiÿÿÿÿ(	RR,R:RR#R(R1RRP(RR:((Rttest_maxlenmiscësc	Csdddg}
g}|
D]*}tt|ƒo|tt|ƒqq~}
td}x³|
D]«}x¢t	dƒD]”}ti|ƒ}|i
|d ƒ}	|i|ƒ}|i
|dƒ}|iƒ}|itidi|	|||gƒƒ|d||fƒ~qqWq^WdS(	Nt
Z_NO_FLUSHtZ_SYNC_FLUSHtZ_FULL_FLUSHii
i¸Rs*Decompress failed: flush mode=%i, level=%i(tsync_optt_[1]toptthasattrRtgetattrR/R3tsyncRFR>R)tobjR%taR8tbtctdRRR1RJ(RRaRhRgReRiR>RdR`RfR_R3((Rttest_flushesñs>

'c	Csþdk}ttdƒoátitiƒ}tiƒ}y|iƒ}Wn?t
j
o3y|iƒ}Wq‰t
j
o
|}q‰XnX|idƒt
dddd|ƒ}|i|ƒ}|itiƒ}|i||ƒ}|i||dƒndS(NR]iiit	generators17K random source doesn't match(trandomRbRR)tZ_BEST_COMPRESSIONR6R,R:tWichmannHilltgentAttributeErrortRandomtseedtgenblockR3R%tfirstR8R]tsecondR1texpandedRR(	RR:RlR6R3RuRvRoRt((Rttest_odd_flushs"	
cCsKtitiƒ}|i|iƒƒtiƒ}|i	|iƒdƒdS(NR(
RR)RmR6Rt
failUnlessR8R,R:R(RR:R6((Rttest_empty_flush's(RR R=RDRLtFalsetNoneRSRTRWRYRZR[RjRwRy(((RR5[s			#	 				"ic	
CsÅ|dj	o|i|ƒn|i}||jp
|djo
|}ng}x`td||ƒD]L}|i	di
g}t|ƒD]}|t
|ddƒƒq‡~ƒƒqdWdi
|ƒ| S(sDlength-byte stream of random data from a seed (in step-byte blocks).iiRiÿN(RrR{RktrandinttlengthtsteptblocksRFRHRIRJR`R0tchr(	RrR}R~RkRR|RHR`R0((RRs2s
	
JcCs[|dj	o|i|ƒn|idƒ}g}t|ƒD]}||i
|ƒq>~S(s=Return a list of number lines randomly chosen from the sources
N(RrR{RkRMtsplittsourcesR`RFtnumbertntchoice(RMRƒRrRkR‚R„R`((Rtchoose_linesAs

s
LAERTES

       O, fear me not.
       I stay too long: but here my father comes.

       Enter POLONIUS

       A double blessing is a double grace,
       Occasion smiles upon a second leave.

LORD POLONIUS

       Yet here, Laertes! aboard, aboard, for shame!
       The wind sits in the shoulder of your sail,
       And you are stay'd for. There; my blessing with thee!
       And these few precepts in thy memory
       See thou character. Give thy thoughts no tongue,
       Nor any unproportioned thought his act.
       Be thou familiar, but by no means vulgar.
       Those friends thou hast, and their adoption tried,
       Grapple them to thy soul with hoops of steel;
       But do not dull thy palm with entertainment
       Of each new-hatch'd, unfledged comrade. Beware
       Of entrance to a quarrel, but being in,
       Bear't that the opposed may beware of thee.
       Give every man thy ear, but few thy voice;
       Take each man's censure, but reserve thy judgment.
       Costly thy habit as thy purse can buy,
       But not express'd in fancy; rich, not gaudy;
       For the apparel oft proclaims the man,
       And they in France of the best rank and station
       Are of a most select and generous chief in that.
       Neither a borrower nor a lender be;
       For loan oft loses both itself and friend,
       And borrowing dulls the edge of husbandry.
       This above all: to thine ownself be true,
       And it must follow, as the night the day,
       Thou canst not then be false to any man.
       Farewell: my blessing season this in thee!

LAERTES

       Most humbly do I take my leave, my lord.

LORD POLONIUS

       The time invites you; go; your servants tend.

LAERTES

       Farewell, Ophelia; and remember well
       What I have said to you.

OPHELIA

       'Tis in my memory lock'd,
       And you yourself shall keep the key of it.

LAERTES

       Farewell.
cCstittttƒdS(N(ttest_supporttrun_unittestR
R!R.R5(((Rt	test_main‹s	t__main__RcCs |p
d}ng}d|jo|itƒnd|jo|itƒnd|jo|itƒnd|jo|itƒnti|ŒdS(NtotkR0Rh(	ttestst	testcasesRIR
R!R.R5R‡Rˆ(RRŽ((Rttest–s




is!/Py23Src/python/dist/src/Lib/test(tunittestRR‡RRlRtTestCaseR
R!R.R5RsR{R†R/R‰RRztsystpathtinsertRttzttstutt	TestSuitetsutaddTestt	makeSuitet	run_suite(R‡R5RRlR.R•R–R/R‰RR!R
R’RR†R—RR™Rs((Rt?s.	
			$×	A	
			

Anon7 - 2021