mò %U²Ic@s›dkZdkZdkZdklZeeidƒpeid‚ndddZddd d d d d egZ di e ƒdZ di e ƒdZ di e ƒdZ di e ƒdZgZe D]ZeedqÒ[Z[deifd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZd„Zedjo eƒndS(N(s 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 tTestGenericUnivNewlinescBsStZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d „Z RS( NtUtwbcCs3tti|iƒ}|i|iƒ|iƒdS(N( topent test_supporttTESTFNtselft WRITEMODEtfptwritetDATAtclose(RR ((t3/data/zmath/lib/python2.4/test/test_univnewlines.pytsetUp'scCs"ytitiƒWnnXdS(N(tostunlinkRR(R((RttearDown,scCsWtti|iƒ}|iƒ}|i|t ƒ|it |i ƒt |i ƒƒdS(N( RRRRtREADMODER treadtdatat assertEqualtDATA_LFtreprRtNEWLINE(RR R((Rt test_read2s cCsWtti|iƒ}|iƒ}|i|t ƒ|it |i ƒt |i ƒƒdS(N( RRRRRR t readlinesRRt DATA_SPLITRRR(RR R((Rttest_readlines8s cCs…tti|iƒ}g}|iƒ}x%|o|i |ƒ|iƒ}q*W|i |t ƒ|i t |i ƒt |iƒƒdS(N(RRRRRR RtreadlinetdtappendRRRRR(RR RR((Rt test_readline>s  cCs|tti|iƒ}|iƒ|iƒ}|i ƒ}|i |t dƒ|i |ƒ|i ƒ}|i |t dƒdS(Ni(RRRRRR RttelltposRRRRtseek(RR RR#((Rt test_seekHs     cCsNh}tti|ƒ|d}|i|iidƒ|i|dt ƒdS(Ntline3itline4( t namespacetexecfileRRtfuncRRt func_codetco_firstlinenotFATX(RR(R*((Rt test_execfileRs  ( t__name__t __module__RR RRRRR!R%R.(((RR!s     tTestNativeNewlinescBs tZdZeZdZdZRS(Ntrtw(R/R0tNoneRRR RR (((RR1ZstTestCRNewlinescBstZdZeZRS(Ns (R/R0RtDATA_CRR (((RR5`stTestLFNewlinescBstZdZeZRS(Ns (R/R0RRR (((RR7dstTestCRLFNewlinescBstZdZeZRS(Ns (R/R0Rt DATA_CRLFR (((RR8hstTestMixedNewlinescBstZdZeZRS(Ns s (s s (R/R0Rt DATA_MIXEDR (((RR:lscCstitttttƒdS(N(Rt run_unittestR1R5R7R8R:(((Rt test_mainqs  t__main__(tunittestRtsysttestRthasattrtstdint TestSkippedR-t DATA_TEMPLATEtjoinRR6R9R;t_[1]RRtTestCaseRR1R5R7R8R:R=R/(RR9R8R6R?R:R-RRR=R;R@R7RRERRGR5RR1((Rt?s,    " %9