%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_univnewlines2k.pyc

ó
Nêáac@s—ddlZddlZddlZddlmZeejdƒsUejd‚ndd Zdd	d
ddd
degZ	dj
e	ƒdZdj
e	ƒdZdj
e	ƒdZ
dj
e	ƒdZge	D]Zed^qÔZ[dejfd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZd„Zedkr“eƒndS(!iÿÿÿÿN(ttest_supporttnewliness3This Python does not have universal newline supporttxiisline1=1s>line2='this is a very long line designed to go past the magic s>hundred character limit that is inside fileobject.c and which s?is meant to speed up the common case, but we also want to test sthe uncommon case, naturally.'sdef line3():passsline4 = '%s's
s
s
tTestGenericUnivNewlinescBsSeZdZdZd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	tUtwbcCs2ttj|jƒ}|j|jƒWdQXdS(N(topenRtTESTFNt	WRITEMODEtwritetDATA(tselftfp((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pytsetUp'scCs"ytjtjƒWnnXdS(N(tostunlinkRR(R((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyttearDown+scCs`ttj|jƒ}|jƒ}WdQX|j|tƒ|jt|jƒt|j	ƒƒdS(N(
RRRtREADMODEtreadtassertEqualtDATA_LFtreprRtNEWLINE(RRtdata((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyt	test_read1scCs`ttj|jƒ}|jƒ}WdQX|j|tƒ|jt|jƒt|j	ƒƒdS(N(
RRRRt	readlinesRt
DATA_SPLITRRR(RRR((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyttest_readlines7scCsŒttj|jƒ?}g}|jƒ}x#|rO|j|ƒ|jƒ}q-WWdQX|j|tƒ|jt|j	ƒt|j
ƒƒdS(N(RRRRtreadlinetappendRRRRR(RRRtd((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyt
test_readline=s	
cCs…ttj|jƒV}|jƒ|jƒ}|jƒ}|j|tdƒ|j	|ƒ|jƒ}WdQX|j|tdƒdS(Ni(
RRRRRttellRRRtseek(RRtposR((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyt	test_seekGs

cCsai}tjƒttj|ƒWdQX|d}|j|jjdƒ|j|dtƒdS(Ntline3itline4(Rtcheck_py3k_warningstexecfileRRt	func_codetco_firstlinenotFATX(Rt	namespacetfunc((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyt
test_execfileQs

(t__name__t
__module__RRR
RRRRR#R-(((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyR!s					
	
tTestNativeNewlinescBs eZdZeZdZdZRS(trtwN(R.R/tNoneRRR
RR(((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyR0ZstTestCRNewlinescBseZdZeZRS(s
(R.R/RtDATA_CRR
(((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyR4`stTestLFNewlinescBseZdZeZRS(s
(R.R/RRR
(((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyR6dstTestCRLFNewlinescBseZdZeZd„ZRS(s
cCs{ttj|jƒ>}|jt|jƒtdƒƒ|jƒ}|j	ƒ}WdQX|jt|jƒt|j
ƒƒdS(N(RRRRRRRR3RR R(RRRR"((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyt	test_tellls
(R.R/Rt	DATA_CRLFR
R8(((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyR7hstTestMixedNewlinescBseZdZeZRS(s
s
(s
s
(R.R/Rt
DATA_MIXEDR
(((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyR:sscCstjtttttƒdS(N(Rtrun_unittestR0R4R6R7R:(((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyt	test_mainxst__main__i@(tunittestRtsysttestRthasattrtstdintSkipTestR*t
DATA_TEMPLATEtjoinRR5R9R;RRtTestCaseRR0R4R6R7R:R=R.(((s4/usr/local/lib/python2.7/test/test_univnewlines2k.pyt<module>s6	

9		

Zerion Mini Shell 1.0