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_zipfile.pyo

³ò
h”Rc@s1yddkZWnej
o
dZnXddkZddkZddkZddkZddkZddklZddk	l
Z
ddklZl
Z
edZdeifd„ƒYZdeifd	„ƒYZd
eifd„ƒYZdeifd
„ƒYZd„ZedjoeƒndS(iÿÿÿÿN(tStringIO(t
TemporaryFile(tTESTFNtrun_unittestt2tTestsWithSourceFilecBsIeZd„Zd„Zd„Zeo
d„Znd„Zd„ZRS(cCsXd„tddƒDƒ}di|ƒ|_ttdƒ}|i|iƒ|iƒdS(Ncssx|]}d|VqWdS(sTest of zipfile line %d.N((t.0ti((s-/usr/local/lib/python2.5/test/test_zipfile.pys	<genexpr>s	iiès
twb(trangetjointdatatopenRtwritetclose(tselftline_gentfp((s-/usr/local/lib/python2.5/test/test_zipfile.pytsetUps
cCs]ti|d|ƒ}|itdtidƒ|ittƒ|id|iƒ|iƒti|d|ƒ}|i	|i
tƒ|iƒ|i	|i
dtidƒ|iƒ|i	|i
dƒ|iƒtƒ}ti
}z|t_
|iƒWd|t_
X|iƒ}|iƒ}|it|ƒdƒ|id|djƒ|id	|djƒ|id
|djƒ|diƒ\}}	}
}|i|dƒ|i|tt|iƒƒƒ|iƒ}|it|ƒd
ƒ|it|jƒ|idtid|jƒ|id|jƒ|iƒ}
g}|
D]}||iqB~}|it|ƒd
ƒ|it|jƒ|idtid|jƒ|id|jƒx*|
D]"}|i|it|iƒƒq¼Wx`tdtiddfD]D}|i|ƒ}|i|i|ƒ|i|it|iƒƒqýW|iƒ|iƒdS(Ntwtanothertnametstrfiletris	File NameitModifiedtSizeisanother.namei(tzipfiletZipFileR
RtostextseptwritestrRRtassertEqualtreadRtsyststdouttprintdirtgetvaluet
splitlinestassertEqualstlentassert_tsplittstrtnamelisttinfolisttfilenamet	file_sizetgetinfottestzip(RtftcompressiontzipfpRR"t	directorytlinestfntdatettimetsizetnamestinfost_[1]Rtnmtinfo((s-/usr/local/lib/python2.5/test/test_zipfile.pytzipTestsZ
'			
$  
cCs7x0ttƒtƒfD]}|i|tiƒqWdS(N(tTESTFN2RRR?Rt
ZIP_STORED(RR1((s-/usr/local/lib/python2.5/test/test_zipfile.pyt
testStored_scCs7x0ttƒtƒfD]}|i|tiƒqWdS(N(R@RRR?RtZIP_DEFLATED(RR1((s-/usr/local/lib/python2.5/test/test_zipfile.pyttestDeflateddscCsqtitdtiƒ}|itdƒ|iƒtitdtiƒ}|i|iƒdgƒ|iƒdS(NRs	/absoluteRtabsolute(	RRR@RAR
RRRR+(RR3((s-/usr/local/lib/python2.5/test/test_zipfile.pyttestAbsoluteArcnameshs
cCstitƒtitƒdS(N(RtremoveRR@(R((s-/usr/local/lib/python2.5/test/test_zipfile.pyttearDownrs
(	t__name__t
__module__RR?RBtzlibRDRFRH(((s-/usr/local/lib/python2.5/test/test_zipfile.pyRs			E	
	
tTestZip64InSmallFilescBsdeZd„Zd„Zd„Zd„Zd„Zd„Zeo
d„Z	nd„Z
d„ZRS(	cCsmti|_dt_d„tddƒDƒ}di|ƒ|_ttdƒ}|i|iƒ|i	ƒdS(Nicssx|]}d|VqWdS(sTest of zipfile line %d.N((RR((s-/usr/local/lib/python2.5/test/test_zipfile.pys	<genexpr>~s	iiès
R(
RtZIP64_LIMITt_limitR	R
RRRR
R(RRR((s-/usr/local/lib/python2.5/test/test_zipfile.pyRzs	cCsJti|d|ƒ}|iti|itdtidƒ|iƒdS(NRRR(	RRtassertRaisestLargeZipFileR
RRRR(RR1R2R3((s-/usr/local/lib/python2.5/test/test_zipfile.pytlargeFileExceptionTest†scCsMti|d|ƒ}|iti|idtid|iƒ|iƒdS(NRRR(	RRRORPRRRRR(RR1R2R3((s-/usr/local/lib/python2.5/test/test_zipfile.pytlargeFileExceptionTest2ŒscCsJxCttƒtƒfD],}|i|tiƒ|i|tiƒqWdS(N(R@RRRQRRARR(RR1((s-/usr/local/lib/python2.5/test/test_zipfile.pyttestLargeFileException’scCscti|d|dtƒ}|itdtidƒ|ittƒ|id|iƒ|i	ƒti|d|ƒ}|i
|itƒ|iƒ|i
|idtidƒ|iƒ|i
|idƒ|iƒtƒ}t
i}z|t
_|iƒWd|t
_X|iƒ}|iƒ}|it|ƒdƒ|id|d	jƒ|id
|d	jƒ|id|d	jƒ|diƒ\}}	}
}|i|d
ƒ|i|tt|iƒƒƒ|iƒ}|it|ƒdƒ|it|jƒ|idtid|jƒ|id|jƒ|iƒ}
g}|
D]}||iqH~}|it|ƒdƒ|it|jƒ|idtid|jƒ|id|jƒx*|
D]"}|i|it|iƒƒqÂWx`tdtiddfD]D}|i|ƒ}|i|i|ƒ|i|it|iƒƒqW|iƒ|i	ƒdS(NRt
allowZip64RRRRis	File NameiRRisanother.namei(RRtTrueR
RRRRRRRR RR!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0(RR1R2R3RR"R4R5R6R7R8R9R:R;R<RR=R>((s-/usr/local/lib/python2.5/test/test_zipfile.pyR?—sZ
'			
$  
cCs7x0ttƒtƒfD]}|i|tiƒqWdS(N(R@RRR?RRA(RR1((s-/usr/local/lib/python2.5/test/test_zipfile.pyRBÙscCs7x0ttƒtƒfD]}|i|tiƒqWdS(N(R@RRR?RRC(RR1((s-/usr/local/lib/python2.5/test/test_zipfile.pyRDßscCswtitdtidtƒ}|itdƒ|iƒtitdtiƒ}|i|i	ƒdgƒ|iƒdS(NRRTs	/absoluteRRE(
RRR@RARUR
RRRR+(RR3((s-/usr/local/lib/python2.5/test/test_zipfile.pyRFãs
cCs*|it_titƒtitƒdS(N(RNRRMRRGRR@(R((s-/usr/local/lib/python2.5/test/test_zipfile.pyRHís
(RIRJRRQRRRSR?RBRKRDRFRH(((s-/usr/local/lib/python2.5/test/test_zipfile.pyRLvs					B	
	
tPyZipFileTestscBs#eZd„Zd„Zd„ZRS(cCstitƒdƒ}t}|idƒp|idƒo|d }n|i|ƒtii|ƒ}|i	||i
ƒjƒ|i	|d|i
ƒjp|d|i
ƒjƒ|iƒtitƒdƒ}t}|idƒp|idƒo|d }n|i|dƒddtii|ƒf}|i	||i
ƒjƒ|i	|d|i
ƒjp|d|i
ƒjƒ|iƒdS(	NRs.pycs.pyoiÿÿÿÿtotcttestpackages%s/%s(Rt	PyZipFileRt__file__tendswithtwritepyRtpathtbasenameR(R+R(RR3R6tbn((s-/usr/local/lib/python2.5/test/test_zipfile.pyttestWritePyfileós$ 
4
 4cCs“ddk}tii|iƒ}titƒdƒ}|i|ƒ|i	ƒ}|i
d|jp
d|jƒ|i
d|jp
d|jƒdS(NiÿÿÿÿRsemail/__init__.pyosemail/__init__.pycsemail/mime/text.pyosemail/mime/text.pyc(temailRR^tdirnameR[RRZRR]R+R((RRbt
packagedirR3R:((s-/usr/local/lib/python2.5/test/test_zipfile.pyttestWritePythonPackage
s
 cCsFtitƒz$ttiitdƒdƒ}|idƒ|iƒttiitdƒdƒ}|idƒ|iƒttiitdƒdƒ}|idƒ|iƒti	t
ƒdƒ}|itƒ|iƒ}|i
d|jp
d	|jƒ|i
d
|jp
d|jƒ|i
d|jƒWdtitƒXdS(Nsmod1.pyRs	print 42
smod2.pysprint 42 * 42
smod2.txtsbla bla bla
smod1.pycsmod1.pyosmod2.pycsmod2.pyo(RtmkdirR@RR^R
R
RRRZRR]R+R(tshutiltrmtree(RRR3R:((s-/usr/local/lib/python2.5/test/test_zipfile.pyttestWritePythonDirectorys$







  (RIRJRaReRi(((s-/usr/local/lib/python2.5/test/test_zipfile.pyRVòs		t
OtherTestscBs#eZd„Zd„Zd„ZRS(cCscttdƒ}|idƒ|iƒytitƒ}Wn#tij
otitƒnXdS(NRsthis is not a legal zip file
(	RRR
RRRt
BadZipfileRtunlink(RRtzf((s-/usr/local/lib/python2.5/test/test_zipfile.pyttestCloseErroneousFile6s

cCs|ittitƒdS(N(ROtIOErrorRRR(R((s-/usr/local/lib/python2.5/test/test_zipfile.pyt testNonExistentFileRaisesIOErrorEscCsOtƒ}ti|ddƒ}|iddƒ|iƒ|it|iƒdS(NtmodeRsfoo.txtsO, for a Muse of Fire!(RRRRRROtRuntimeErrorR0(RRtzipf((s-/usr/local/lib/python2.5/test/test_zipfile.pyttestClosedZipRaisesRuntimeErrorSs
	
(RIRJRnRpRt(((s-/usr/local/lib/python2.5/test/test_zipfile.pyRj5s		cCstttttƒdS(N(RRRLRjRV(((s-/usr/local/lib/python2.5/test/test_zipfile.pyt	test_main`st__main__(RKtImportErrortNoneRRtunittestR!RgRttempfileRttest.test_supportRRR@tTestCaseRRLRVRjRuRI(((s-/usr/local/lib/python2.5/test/test_zipfile.pys<module>s<
f|C+	


Man Man