Current File : //opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyo
�
��Wc@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((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pytsetUp'scCs"ytjtj�WnnXdS(N(tostunlinkRR(R((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyttearDown+scCs`ttj|j��}|j�}WdQX|j|t�|jt|j�t|j	��dS(N(
RRRtREADMODEtreadtassertEqualtDATA_LFtreprRtNEWLINE(RRtdata((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyt
test_execfileQs

(t__name__t
__module__RRR
RRRRR#R-(((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyR!s					
	
tTestNativeNewlinescBs eZdZeZdZdZRS(trtwN(R.R/tNoneRRR
RR(((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyR0ZstTestCRNewlinescBseZdZeZRS(s
(R.R/RtDATA_CRR
(((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyR4`stTestLFNewlinescBseZdZeZRS(s
(R.R/RRR
(((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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"((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyt	test_tellls
(R.R/Rt	DATA_CRLFR
R8(((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyR7hstTestMixedNewlinescBseZdZeZRS(s
s
(s
s
(R.R/Rt
DATA_MIXEDR
(((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyR:sscCstjttttt�dS(N(Rtrun_unittestR0R4R6R7R:(((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyt	test_mainxst__main__i@(tunittestRtsysttestRthasattrtstdintSkipTestR*t
DATA_TEMPLATEtjoinRR5R9R;RRtTestCaseRR0R4R6R7R:R=R.(((sq/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines2k.pyt<module>s6	

9