HEX
Server: Apache
System: FreeBSD www860.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User: yoyo0427 (1306)
PHP: 8.3.8
Disabled: NONE
Upload Files
File: //usr/local/lib/python2.7/test/test_univnewlines2k.pyo
�
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