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

³ò
h”Rc
@sàddkZddkZddkZddklZddklZddklZlZl	Z	ddk
l
Z
deifd„ƒYZdeifd	„ƒYZ
d
eifd„ƒYZd„Zed
joeƒndS(iÿÿÿÿN(tarray(tproxy(tTESTFNtfindfiletrun_unittest(tUserListt
AutoFileTestscBs}eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„ZRS(
cCsttdƒ|_dS(Ntwb(topenRtf(tself((s*/usr/local/lib/python2.5/test/test_file.pytsetUp
scCs,|io|iiƒntitƒdS(N(R	tclosetostremoveR(R
((s*/usr/local/lib/python2.5/test/test_file.pyttearDowns
cCskt|iƒ}|idƒ|i|iiƒ|iƒƒ|iiƒd|_|itt	|dƒdS(Nt
teststringttell(
RR	twritetassertEqualsRRtNonetassertRaisestReferenceErrortgetattr(R
tp((s*/usr/local/lib/python2.5/test/test_file.pyttestWeakRefss

	cCsd|i}|i}|i|i|i||_x-dD]%}|ittft||dƒq7WdS(Ntnametmodetclosedtoops(snamesmodesclosed(	R	t	softspaceRRRRtAttributeErrort	TypeErrortsetattr(R
R	Rtattr((s*/usr/local/lib/python2.5/test/test_file.pyttestAttributess			cCsn|iidƒ|iiƒtddƒ}ttdƒ|_|ii|ƒ}|id|iƒ| ƒdS(Nt12tctxi
trbt
xxxxxxxxxx(	R	RRRRRtreadintoRttostring(R
tatn((s*/usr/local/lib/python2.5/test/test_file.pyttestReadinto-s
cCsdtddgƒ}|ii|ƒ|iiƒttdƒ|_|iiƒ}|i|dƒdS(Nt1t2R'R$(RR	t
writelinesRRRtreadR(R
tltbuf((s*/usr/local/lib/python2.5/test/test_file.pyttestWritelinesUserList6s
cCs&|it|iidddgƒdS(Niii(RR R	R0(R
((s*/usr/local/lib/python2.5/test/test_file.pyttestWritelinesIntegers?scCs2tdddgƒ}|it|ii|ƒdS(Niii(RRR R	R0(R
R2((s*/usr/local/lib/python2.5/test/test_file.pyttestWritelinesIntegersUserListCscCs<ddd„ƒY}|it|ii|ƒ|ƒgƒdS(Nt	NonStringcBseZRS((t__name__t
__module__(((s*/usr/local/lib/python2.5/test/test_file.pyR7Js((RR R	R0(R
R7((s*/usr/local/lib/python2.5/test/test_file.pyttestWritelinesNonStringHscCs'|it|iƒidtƒƒdS(Ns<open file '(tassert_treprR	t
startswithR(R
((s*/usr/local/lib/python2.5/test/test_file.pyttestReprPscCsu|i}|i|itƒ|i|iƒƒ|i|iƒ|it|i	dƒ|i
ƒ|i|iƒdS(Nt(R	RRRR;tisattyRRR R)R(R
R	((s*/usr/local/lib/python2.5/test/test_file.pyt
testErrorsTs	
cCs'ddddddddd	d
ddd
dg}tiidƒo|idƒn|iidddƒ|i|iiƒx0|D](}t	|i|ƒ}|i
t|ƒq„W|i
t|iigƒ|i
|iidddƒdƒyddWn)|i
|iitiƒŒdƒnXdS(NtfilenotflushR@tnextR1R)treadlinet	readlinestseekRttruncateRt
xreadlinest__iter__tatheosii(tsystplatformR=RR	t__exit__RR;RRRt
ValueErrorR0Rtexc_info(R
tmethodst
methodnametmethod((s*/usr/local/lib/python2.5/test/test_file.pyttestMethods^s""cCs|it|iiƒdS(N(RtIOErrorR	R1(R
((s*/usr/local/lib/python2.5/test/test_file.pyttestReadWhenWritingws(R8R9RRRR#R-R4R5R6R:R>RARTRV(((s*/usr/local/lib/python2.5/test/test_file.pyR
s														
	tOtherFileTestscBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsYxRdD]J}ytt|ƒ}Wntj
oqX|iƒ|id|ƒqWdS(NR?taUswU+s%r is an invalid file mode(R?RXswU+(RRRORtfail(R
RR	((s*/usr/local/lib/python2.5/test/test_file.pyttestModeStrings|s
cCsTtidjo|ittiidƒntidIJ|ittiiƒdS(Ntosf1V5iÿÿÿÿsK  Skipping sys.stdin.seek(-1), it may crash the interpreter. Test manually.(RLRMRRUtstdinRGt
__stdout__RH(R
((s*/usr/local/lib/python2.5/test/test_file.pyt	testStdin‡s
cCsPtttƒdƒ}|it|ƒidtƒƒ|iƒtitƒdS(Ntws
<open file u'(	RtunicodeRR;R<R=RR
tunlink(R
R	((s*/usr/local/lib/python2.5/test/test_file.pyttestUnicodeOpen‘s 
cCs²d}ytt|ƒ}Wnwtj
ok}|ddjoQt|ƒ}|itƒdjp|i|ƒdjo|id|ƒqŽq®nX|iƒ|id|ƒdS(Ntqwertyiiÿÿÿÿs&bad error message for invalid mode: %ssno error for invalid mode: %s(RRROtstrtfindRYR(R
tbad_modeR	tmsgts((s*/usr/local/lib/python2.5/test/test_file.pyttestBadModeArgument˜s,
cCsÏxÈdD]À}yuttd|ƒ}|it|ƒƒ|iƒ|iƒttd|ƒ}t|iƒƒ}|iƒ|iƒWn2tj
o&}|id|t|ƒfƒnX|i	||ƒqWdS(	NiÿÿÿÿiiiR_trs error setting buffer size %d: %s(iÿÿÿÿiii(
RRRRdRtintR1RURYR(R
RhR	tdRg((s*/usr/local/lib/python2.5/test/test_file.pyttestSetBufferSize¨s


"cs<titƒ‡fd†}z|ƒWdtitƒXdS(Ncsttdƒ}|idƒ|iƒttdƒ}|idƒ}|djoˆid|ƒn|iƒdjoˆid|iƒƒn|iƒ|iƒdjoˆid|iƒƒn|iƒti	i
tƒ}|djoˆid	|ƒndS(
NRt12345678901srb+it12345s(Read on file opened for update failed %rsFile pos after read wrong %ds!File pos after ftruncate wrong %ds"File size after ftruncate wrong %d(RRRRR1RYRRHR
tpathtgetsize(R	tdatatsize(R
(s*/usr/local/lib/python2.5/test/test_file.pyt	bug801631¼s 





(R
RaR(R
Rt((R
s*/usr/local/lib/python2.5/test/test_file.pyttestTruncateOnWindows¹s

cCsëd}d}|t|ƒp
td‚|t|ƒ}dddddd	g}d
dfdd fdd!fd
tdddƒffg}zLttdƒ}|i||ƒ|i|ƒ|iƒx˜|D]\}}ttƒ}	|	iƒ|jo|i	dfnt
|	|ƒ}
y|
|ŒWntj
onX|i	d||fƒ|	iƒqËWttƒ}	xt|ƒD]}|	iƒqxW|i
dƒ}y|	iƒ}
Wn tj
o|i	dƒnX|
|jo|i	d|
|fƒn|i
dƒ}tddt|ƒƒ}y|	i|ƒWn tj
o|i	dƒnX|iƒ}
|
|jo|i	d|
|fƒn|i
dƒ}y|	it|ƒƒ}
Wn tj
o|i	dƒnX|
|jo|i	d|
|fƒny|	iƒ}Wn tj
o|i	dƒnX||jo|i	d|
|fƒnttƒ}	zgx|	D]}
qjWy/|	iƒ|	i|ƒ|	iƒ|	iƒWn tj
o|i	dƒnXWd|	iƒXWdtitƒXdS("Ni@sham
s*dataoffset must be multiple of len(filler)sspam, spam and eggs
seggs, spam, ham and spam
ssaussages, spam, spam and eggs
sspam, ham, spam and eggs
s(spam, spam, spam, spam, spam, ham, spam
swonderful spaaaaaam.
RER1RFR)R%t idR_sBroken testfiles)%s%r after next() didn't raise ValueErrorisLreadline() after next() with supposedly empty iteration-buffer failed anywaysEreadline() after next() with empty buffer failed. Got %r, expected %rtsLreadinto() after next() with supposedly empty iteration-buffer failed anywaysEreadinto() after next() with empty buffer failed. Got %r, expected %rsHread() after next() with supposedly empty iteration-buffer failed anywaysAread() after next() with empty buffer failed. Got %r, expected %rsMreadlines() after next() with supposedly empty iteration-buffer failed anywaysFreadlines() after next() with empty buffer failed. Got %r, expected %rs'read* failed after next() consumed file((((tlentAssertionErrorRRRRR0RRDRYRROtrangetpopRER)R*R1RFR
Ra(R
t
dataoffsettfillertnchunkst	testlinesRQtbagRRtargsR	tmethtittestlinetlineR3tlines((s*/usr/local/lib/python2.5/test/test_file.pyt
testIterationØs¤		

		

	
	
	
	


(	R8R9RZR^RbRiRmRuR‡(((s*/usr/local/lib/python2.5/test/test_file.pyRWzs		
				tStdoutTestscBseZd„Zd„ZRS(csHti‰dd‡fd†ƒY}z|ƒt_dGHWdˆt_XdS(NtFilecseZ‡fd†ZRS(csd|jo
ˆt_ndS(Ns
(RLtstdout(R
Rr(tsave_stdout(s*/usr/local/lib/python2.5/test/test_file.pyRPs
(R8R9R((R‹(s*/usr/local/lib/python2.5/test/test_file.pyR‰Oss	some text((RLRŠ(R
R‰((R‹s*/usr/local/lib/python2.5/test/test_file.pyttest_move_stdout_on_writeJs		c	Csdti}t`zDyHWn+tj
o}|it|ƒdƒnX|idƒWd|t_XdS(Nslost sys.stdoutsExpected RuntimeError(RLRŠtRuntimeErrorRRdRY(R
R‹te((s*/usr/local/lib/python2.5/test/test_file.pyttest_del_stdout_before_printZs	(R8R9RŒR(((s*/usr/local/lib/python2.5/test/test_file.pyRˆHs	cCs@zttttƒWdtiitƒotitƒnXdS(N(	RRRWRˆR
RptexistsRRa(((s*/usr/local/lib/python2.5/test/test_file.pyt	test_mainist__main__(RLR
tunittestRtweakrefRttest.test_supportRRRRtTestCaseRRWRˆR‘R8(((s*/usr/local/lib/python2.5/test/test_file.pys<module>spÎ!		


Man Man