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

³ņ
h”Rc
@sÆddkZddkZddkZddkZddklZeiddeeƒeiddeeƒdei	fd„ƒYZ
dei	fd	„ƒYZd
ei	fd„ƒYZddkl
Z
d
e
ifd„ƒYZdei	fd„ƒYZdei	fd„ƒYZdei	fd„ƒYZdei	fd„ƒYZdei	fd„ƒYZeidjodei	fd„ƒYZnd„ZedjoeƒndS(i’’’’N(ttest_supporttignorettempnamttmpnamt	FileTestscBs)eZd„ZeZd„Zd„ZRS(cCs.tiitiƒotitiƒndS(N(tostpathtexistsRtTESTFNtunlink(tself((s(/usr/local/lib/python2.5/test/test_os.pytsetUpscCsOtitititiBƒ}ti|ƒ|itititi	ƒƒdS(N(
RtopenRRtO_CREATtO_RDWRtclosetassert_taccesstW_OK(R
tf((s(/usr/local/lib/python2.5/test/test_os.pyttest_accesss
cCsZttiƒ}ti|ƒ}|itti|dƒti|ƒ}|i	||ƒdS(Ni(
tunicodeRRtsystgetrefcounttassertRaisest	TypeErrorRtrenametassertEqual(R
Rtoldtnew((s(/usr/local/lib/python2.5/test/test_os.pyttest_renames
(t__name__t
__module__RttearDownRR(((s(/usr/local/lib/python2.5/test/test_os.pyRs		tTemporaryFileTestscBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsg|_titiƒdS(N(tfilesRtmkdirRR(R
((s(/usr/local/lib/python2.5/test/test_os.pyR#s	cCs5x|iD]}ti|ƒq
WtitiƒdS(N(R#RR	trmdirRR(R
tname((s(/usr/local/lib/python2.5/test/test_os.pyR!'s
cCs=|itii|ƒdƒt|dƒ|ii|ƒdS(Ns&file already exists for temporary filetw(tfailIfRRRRR#tappend(R
R&((s(/usr/local/lib/python2.5/test/test_os.pytcheck_tempfile,s
cCs©ttdƒpdSntiddtdƒ|itiƒƒtitiƒ}|i|ƒtitidƒ}|i	ti
i|ƒd djƒ|i|ƒdS(NRRstest_os$tpfxi(thasattrRtwarningstfilterwarningstRuntimeWarningR*RRRRRtbasename(R
R&((s(/usr/local/lib/python2.5/test/test_os.pyttest_tempnam4s
#cCs=ttdƒpdSntidjoæd}tii|ƒoti|ƒnyt|dƒ}Wndtj
oX}yti	ƒ}Wn+t
j
o}|i|i|iƒnX|i
dƒdSqēX|iƒti|ƒnti	ƒ}|idƒ|iddƒ|iƒ}|iƒ|i|djƒdS(Nttmpfiletwin32s \python_test_os_test_tmpfile.txtR's&expected os.tmpfile() to raise OSErrortfoobari(R,RRtplatformRRtremoveRtIOErrorR2tOSErrorRtargstfailRtwritetseektreadR(R
R&tfptfirsttsecondts((s(/usr/local/lib/python2.5/test/test_os.pyttest_tmpfileBs.
	


cCs‡ddk}ttdƒpdSntiddtdƒtiƒ}|idjo |iti	i
|ƒdƒn|i|ƒdS(Ni’’’’RRstest_os$R3s&file already exists for temporary file(swin32(RR,RR-R.R/RR5R(RRR*(R
RR&((s(/usr/local/lib/python2.5/test/test_os.pyttest_tmpnamrs(RR RR!R*R1RBRC(((s(/usr/local/lib/python2.5/test/test_os.pyR""s					0tStatAttributeTestscBsueZd„Zd„Zd„Zd„Zeidjo9d„Zee	i
ƒdjo
d„Znd„ZnRS(	cCsXtitiƒtiitidƒ|_t|idƒ}|idƒ|i	ƒdS(Ntf1twbtABC(
RR$RRRtjointfnameRR;R(R
R((s(/usr/local/lib/python2.5/test/test_os.pyRs

cCs$ti|iƒtitiƒdS(N(RR	RIR%RR(R
((s(/usr/local/lib/python2.5/test/test_os.pyR!—sc	&Cs=ttdƒpdSnddk}ti|iƒ}|i||idƒ|i|idƒddk}t|ƒ}xšt|ƒD]Œ}|d djou|i	ƒ}|i
dƒo
d„}n
d„}|i|t||ƒƒ|t||ƒƒ|i||jƒq…q…Wy|d|i
d	ƒWntj
onXyd
|_|i
d	ƒWntj
onXyd
|_|i
d	ƒWnttfj
onXyd
|_|i
d	ƒWntj
onXy tidƒ}|i
d	ƒWntj
onXytidƒ}Wntj
onXdS(Ntstati’’’’itST_tTIMEcSs
t|ƒS(N(tint(tx((s(/usr/local/lib/python2.5/test/test_os.pyttrunc®scSs|S(N((RN((s(/usr/local/lib/python2.5/test/test_os.pyRO°siČsNo exception thrownii
iiiiiiii	iii
i(i
(iiiiiiiiii	i
iii
i(R,RRJRItassertEqualstST_SIZEtst_sizeRtdirtlowertendswithtgetattrRR:t
IndexErrortst_modeRtst_rdevtAttributeErrortparrottstat_result(	R
RJtresultRtmembersR&tattrROtresult2((s(/usr/local/lib/python2.5/test/test_os.pyttest_stat_attributes›s^

				c	"CsÓttdƒpdSnddk}yti|iƒ}Wn<tj
o0}ddk}|i|ijodSqynX|i|i||i	ƒt
|ƒ}xnt
|ƒD]`}|d djoI|iƒ}|it||ƒ|t||ƒƒ|i
||jƒq¬q¬Wyd|_|idƒWntj
onXyd|_|idƒWntj
onXy tidƒ}|idƒWntj
onXytidƒ}Wntj
onXdS(Ntstatvfsi’’’’itF_isNo exception throwni
iiiiiiii	iii
i(i
(iiiiiiiiii	i
iii
i(R,RRbRIR8terrnotENOSYSRPtf_bfreetF_BFREERSRTRVRR:RR[RZtstatvfs_result(	R
RbR]teRdR^R&R_R`((s(/usr/local/lib/python2.5/test/test_os.pyttest_statvfs_attributesÜsJ

		R3cCsŠtiitii|ƒƒdd}ddk}|ii}|iddƒ}|i|ddddd|t
|ƒƒo|iSndS(Nis\i’’’’tid(RRt
splitdrivetabspathtctypestwindlltkernel32tcreate_string_buffertGetVolumeInformationAtNonetlentvalue(RtrootRnRptbuf((s(/usr/local/lib/python2.5/test/test_os.pytget_file_systems&+tNTFScCsBd}ti|i||fƒ|iti|iƒi|ƒdS(NgŠgśEŃA(RtutimeRIRPRJtst_mtime(R
tt1((s(/usr/local/lib/python2.5/test/test_os.pyttest_1565150scCsOytidƒWn7tj
o+}|djodSn|idƒnXdS(Nsc:\pagefile.sysisCould not stat pagefile.sys(RRJtWindowsErrorR:(R
Ri((s(/usr/local/lib/python2.5/test/test_os.pyttest_1686475 s
(
RR RR!RaRjRR5RxRRR}R(((s(/usr/local/lib/python2.5/test/test_os.pyRDs			A	5	
(t
mapping_teststEnvironTestscBsAeZdZdZd„Zd„Zd„Zd„Zd„Z	RS(s8check that os.environ object conform to mapping protocolcCshdd<dd<dd<S(NtVALUE1tKEY1tVALUE2tKEY2tVALUE3tKEY3((R
((s(/usr/local/lib/python2.5/test/test_os.pyt
_reference.scCstiiƒtiS(N(Rtenvirontclear(R
((s(/usr/local/lib/python2.5/test/test_os.pyt_empty_mapping0s
cCs#ttiƒ|_tiiƒdS(N(tdictRR‰t_EnvironTests__saveRŠ(R
((s(/usr/local/lib/python2.5/test/test_os.pyR3scCs$tiiƒtii|iƒdS(N(RR‰RŠtupdateR(R
((s(/usr/local/lib/python2.5/test/test_os.pyR!6s
cCsYtiidƒoBtiiddƒtidƒiƒiƒ}|i|dƒndS(Ns/bin/shtHELLOtWorlds/bin/sh -c 'echo $HELLO'(	RRRR‰RŽtpopenR=tstripRP(R
Ru((s(/usr/local/lib/python2.5/test/test_os.pyttest_update2;sN(
RR t__doc__Rst	type2testRˆR‹RR!R“(((s(/usr/local/lib/python2.5/test/test_os.pyR+s				t	WalkTestscBseZdZd„ZRS(sTests for os.walk().cCsddk}ddkl}|tidƒ}||dƒ}|tidƒ}|tidƒ}||dƒ}||dƒ}|i|ƒ|i|ƒxE|||fD]4}	t|	d	ƒ}
|
id
|	dƒ|
iƒq©Wt	|i
tiƒƒ}|it|ƒdƒ|d
dd
dj}|d
di
ƒ|i|d
tiddgdgfƒ|i|d||dgdgfƒ|i|d||ggfƒ|i|dd||gdgfƒg}xW|i
tiƒD]C\}
}}|i|
||fƒd|jo|idƒqėqėW|it|ƒdƒ|i|d
tidgdgfƒ|i|d|gdgfƒt	|i
tidtƒƒ}|it|ƒdƒ|ddd
dj}|ddi
ƒ|i|dtiddgdgfƒ|i|||ggfƒ|i||d|dgdgfƒ|i|dd||gdgfƒxw|i
tidtƒD]]\}
}}x$|D]}|i||
|ƒƒq°Wx$|D]}|i||
|ƒƒq×WqšW|itiƒdS(Ni’’’’(RHtSUB1tSUB11tSUB2ttmp1ttmp2ttmp3R'sI'm s" and proud of it.  Blame test_os.
iiiiittopdown(Rtos.pathRHRRtmakedirstfileR;RtlisttwalkRRttsortR)R6tFalseR%(R
RRHt	sub1_patht
sub11_patht	sub2_patht	tmp1_patht	tmp2_patht	tmp3_pathRRtalltflippedRvtdirsR#R&((s(/usr/local/lib/python2.5/test/test_os.pyttest_traversalDsb


)'!(
& )'((RR R”R®(((s(/usr/local/lib/python2.5/test/test_os.pyR–AstMakedirTestscBs#eZd„Zd„Zd„ZRS(cCstitiƒdS(N(RR$RR(R
((s(/usr/local/lib/python2.5/test/test_os.pyR‘sc	Csäti}tii|dddƒ}ti|ƒtii|ddddƒ}ti|ƒ|ittitiƒtii|dddddtiƒ}ti|ƒtii|dtidddddƒ}ti|ƒdS(Ntdir1tdir2tdir3tdir4tdir5tdir6(	RRRRRHRŸtfailUnlessRaisesR8tcurdir(R
tbaseR((s(/usr/local/lib/python2.5/test/test_os.pyttest_makedir”s	

'
cCsvtiitiddddddƒ}x;tii|ƒo&|tijotii|ƒ}q*Wti|ƒdS(NR°R±R²R³R“Rµ(RRRHRRRtdirnamet
removedirs(R
R((s(/usr/local/lib/python2.5/test/test_os.pyR!¦s$(RR RR¹R!(((s(/usr/local/lib/python2.5/test/test_os.pyRƐs		tDevNullTestscBseZd„ZRS(cCs_ttidƒ}|idƒ|iƒttidƒ}|i|iƒdƒ|iƒdS(NR'thellotrRk(R RtdevnullR;RRR=(R
R((s(/usr/local/lib/python2.5/test/test_os.pyttest_devnull²s

(RR RĄ(((s(/usr/local/lib/python2.5/test/test_os.pyR¼±stURandomTestscBseZd„ZRS(cCsšy€|ittidƒƒdƒ|ittidƒƒdƒ|ittidƒƒdƒ|ittidƒƒdƒWntj
onXdS(Nii
idič(RRtRturandomtNotImplementedError(R
((s(/usr/local/lib/python2.5/test/test_os.pyttest_urandom»s#(RR RÄ(((s(/usr/local/lib/python2.5/test/test_os.pyRĮŗstWin32ErrorTestscBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs'|ittititidƒdS(Ns.bak(RR~RRRR(R
((s(/usr/local/lib/python2.5/test/test_os.pyRÅscCs|ittitiƒdS(N(RR~RR6RR(R
((s(/usr/local/lib/python2.5/test/test_os.pyttest_removeČscCs|ittitiƒdS(N(RR~RtchdirRR(R
((s(/usr/local/lib/python2.5/test/test_os.pyt
test_chdirĖscCs|ittitiƒdS(N(RR~RRĒRR(R
((s(/usr/local/lib/python2.5/test/test_os.pyt
test_mkdirĪscCs |ittitidƒdS(N(RR~RRzRRRs(R
((s(/usr/local/lib/python2.5/test/test_os.pyt
test_utimeŃscCs |ittitidƒdS(Ni(RR~RRzRR(R
((s(/usr/local/lib/python2.5/test/test_os.pyRŌscCs |ittitidƒdS(Ni(RR~RRzRR(R
((s(/usr/local/lib/python2.5/test/test_os.pyt
test_chmod×s(	RR RRĘRČRÉRŹRRĖ(((s(/usr/local/lib/python2.5/test/test_os.pyRÅÄs						R3cBseZRS((RR (((s(/usr/local/lib/python2.5/test/test_os.pyRÅŪsc
Cs)titttttttt	t
ƒ	dS(N(Rtrun_unittestRR"RDRR–RÆR¼RĮRÅ(((s(/usr/local/lib/python2.5/test/test_os.pyt	test_mainŽst__main__(RtunittestR-RttestRR.R/RtTestCaseRR"RDR€tBasicTestMappingProtocolRR–RÆR¼RĮRÅR5RĶ(((s(/usr/local/lib/python2.5/test/test_os.pys<module>s*mšO!	
	



Man Man