Current File : //opt/imh-python/lib/python2.7/test/test_univnewlines.pyo
�
��Wc@s�ddlmZddlmZddlZddlZddlZddlZddlZddl	m
Zeej
d�s�ejd��nddZd
ddd
ddegZdje�dZdje�dZdje�dZdje�dZgeD]Zed^qZdejfd��YZdefd��YZdefd��YZdefd��YZdefd��YZd�Zedkr�e�ndS( i����(tprint_function(tunicode_literalsN(ttest_supportunewlinesu3This Python does not have universal newline supportuxiiuline1=1u@line2='this is a very long line designed to go past any default u;buffer limits that exist in io.py but we also want to test uthe uncommon case, naturally.'udef line3():passuline4 = '%s'u
u
u
tTestGenericUnivNewlinescBsJeZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	RS(uruwbcCs\|j}d|jkr*|jd�}n|jtj|j��}|j|�WdQXdS(Nubuascii(tDATAt	WRITEMODEtencodetopentsupporttTESTFNtwrite(tselftdatatfp((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pytsetUp.s
	cCs"ytjtj�WnnXdS(N(tostunlinkRR	(R((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyttearDown5scCsc|jtj|j��}|j�}WdQX|j|t�|jt|j�t|j	��dS(N(
RRR	tREADMODEtreadtassertEqualtDATA_LFtsettnewlinestNEWLINE(RR
R((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyt	test_read;scCsc|jtj|j��}|j�}WdQX|j|t�|jt|j�t|j	��dS(N(
RRR	Rt	readlinesRt
DATA_SPLITRRR(RR
R((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyttest_readlinesAscCs�|jtj|j��?}g}|j�}x#|rR|j|�|j�}q0WWdQX|j|t�|jt|j	�t|j
��dS(N(RRR	RtreadlinetappendRRRRR(RR
Rtd((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyt
test_readlineGs	
cCs�|jtj|j��V}|j�|j�}|j�}|j|td�|j	|�|j�}WdQX|j|td�dS(Ni(
RRR	RRttellRRRtseek(RR
tposR((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyt	test_seekQs

(
t__name__t
__module__RRRRRRR R$(((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyR(s					
tTestCRNewlinescBseZdZeZRS(u
(R%R&RtDATA_CRR(((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyR'\stTestLFNewlinescBseZdZeZRS(u
(R%R&RRR(((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyR)`stTestCRLFNewlinescBseZdZeZd�ZRS(u
cCs~|jtj|j��>}|jt|j�td��|j�}|j	�}WdQX|jt|j�t|j
��dS(N(RRR	RRtreprRtNoneRR!R(RR
RR#((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyt	test_tellhs
(R%R&Rt	DATA_CRLFRR-(((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyR*dstTestMixedNewlinescBseZdZeZRS(u
u
(u
u
(R%R&Rt
DATA_MIXEDR(((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyR/oscCs�ttttf}g}x�|D]x}d|fd��Y}td|j�|_d|fd��Y}td|j�|_|j|�|j|�qWtj|�dS(NtCTestcBseZejZRS((R%R&tioR(((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyR1|suCtPyTestcBseZeej�ZRS((R%R&tstaticmethodtpyioR(((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyR3suPy(	R'R)R*R/tstrR%RRtrun_unittest(t
base_teststteststtestR1R3((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyt	test_maints	

u__main__i@( t
__future__RRR2t_pyioR5tunittestRtsysR:RRthasattrtstdintSkipTesttFATXt
DATA_TEMPLATEtjoinRR(R.R0txRtTestCaseRR'R)R*R/R;R%(((so/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_univnewlines.pyt<module>s:

4