tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
O\¬Qc@s)ddlZddlZddlZddlZddlZddlZddlmZdejfd„ƒYZ    de    fd„ƒYZ
de    fd„ƒYZ ddlZej j d    ƒrÄeZnd
e
fd „ƒYZd e fd „ƒYZde fd„ƒYZd„Zedkr%eƒndS(iÿÿÿÿN(t test_supporttTestGenericStringIOcBs´eZdZeZd„Zd„Zd„Zd„Zd„Z    d„Z
d„Z d„Z d    „Z d
„Zejejdd dƒd„ƒZejejd dƒd„ƒZRS(s5abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!cCs9|j|jddƒ|_|jj|jƒ|_dS(Ns
i(t constructort_linet_linestMODULEtStringIOt_fp(tself((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pytsetUpscCså|j}|jt|jjƒ||jjdƒ|jd ƒ||jjdƒdƒ||jjdƒdƒ||jjƒ|jddƒ|t|jj    dƒƒdƒ|jjdƒ||jjdƒ|jdƒdS(Ni
its
i<iiÿÿÿÿ(
t assertEqualt assertRaisest    TypeErrorRtseektreadRtreadlinetlent    readlines(Rteq((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyt
test_readss     !cCsˆ|jjƒ}|jt|jƒ|j|jd ƒ|jdƒ|j|jdd!ƒ|j|jdƒ|j|jƒdƒdS(Niiiii4s
abcuvwxyz!(    RRR R RtwriteRR tgetvalue(Rtf((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyt test_writes%s cCsa|jjƒ}|j|jd|jd|jdgƒ|jdƒ|j|jƒdƒdS(Niiitabc(RRt
writelinesRRR R(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyttest_writelines.s+ cCs5d„}|jjƒ}|jt|j|ƒƒdS(NcssdVtƒ‚dS(Nta(tKeyboardInterrupt(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyterrorGen5s(RRR RR(RRR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyttest_writelines_error4s    cCsÌ|j}|jjƒ}|j|jƒ|jdƒ|jƒ||jƒdƒ|jdƒ||jƒdƒ|jdƒ||jƒdƒ|jt    |jdƒ|j
ƒ|jt |jdƒdS(    Ni
t
abcdefghijitabcdetxyztabcdexyziÿÿÿÿtfrobnitz( R RRRRRttruncateRR tIOErrortcloset
ValueError(RRR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyt test_truncate;s     
 
cCs…|jjƒ}|j|jtƒ|jƒ|j|jtƒ|jjdƒ}|j|jtƒ|jƒ|j|jtƒdS(NR(RRR tclosedtFalseR'tTrue(RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyttest_closed_flagJs
 
cCs\|jjƒ}|jt|jdƒ|j|jƒtƒ|jƒ|jt    |jƒdS(N(
RRR R tisattytNoneR R+R'R((RR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyt test_isattyTs
 
cCsÃ|j}|j}|t|jƒ|jƒ|t|jdƒƒ|t|jdƒƒd}x/|jD]$}|||jdƒ|d7}qgW||dƒ|jjƒ|jt|jj    ƒdS(Nt__iter__tnextis
ii(
R t
assertTruetiterRthasattrRR'R R(R2(RRtunlesstitline((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyt test_iterator[s          cCs'|jjƒ|jt|jjƒdS(N(RR'R R(R(R((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyt test_getvaluejs iitmemuseg5^ºI @cCs²d    }d|ddg||d||g}|jjdj|ƒƒ}x[t|ƒD]M\}}|jt|ƒƒ}|jt|ƒt|ƒƒ|j||ƒqZW|j|jƒdƒ|jdƒxRt|ƒD]D\}}|jƒ}|jt|ƒt|ƒƒ|j||ƒqÛW|j|jƒdƒ|jdƒ|j|j    ƒ|ƒ|j|j    ƒgƒ|jdƒ|j|j    |ƒ|ƒ|j|j    ƒgƒdS(
Niitxis
tyR
ii(
RRtjoint    enumerateRRR RRR(RtsizetlinesizetlinesRR7texpectedR8((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyttest_reads_from_large_streamns*    icCsŒdd}|jjƒ}|}x3|t|ƒkrT|j|ƒ|t|ƒ8}q"Wd}|jd|ƒ|jt|jƒƒ|ƒdS(NR<iii(RRRRR/R R(RR@tsRtn((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyttest_writes_to_large_streamˆs
 i(t__name__t
__module__RtstrRR    RRRRR)R-R0R9R:Rt
bigmemtestt_2GRDRG(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyR s                                
           %t TestStringIOcBseZeZd„ZRS(cCs³tjs dS|jjƒ}|j|jd ƒ|jdƒ|jt|jdd!ƒƒ|jt|jdƒƒ|jƒ}|j    |tdƒƒ|j    t
|ƒt j ƒdS(Niiiii4s
abcuvwxyz!( Rt have_unicodeRRRRRtunicodeRR ttypettypest UnicodeType(RRRE((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyt test_unicode˜s      (RHRIRRRS(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyRM•st TestcStringIOcBs eZeZd„Zd„ZRS(cCsGtjddddgƒ}|jj|ƒ}|j|jƒdƒdS(NtBiiit(tarrayRRR R(RRR((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyttest_array_support¬scCs¼tjs dS|jjƒ}|jdƒ|jƒ}|j|dƒ|jt|ƒtƒ|jjdƒ}|jƒ}|j|dƒ|jt|ƒtƒ|j    t
|jjdƒdS(NuabcdeR!uô( RRNRRRRR RPRJR tUnicodeEncodeError(RRRE((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyRS²s       (RHRIt    cStringIORRXRS(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyRT©s    tjavatTestBufferStringIOcBseZeZRS((RHRItbufferR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyR\ÎstTestBuffercStringIOcBseZeZRS((RHRIR]R(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyR^ÑstTestMemoryviewcStringIOcBseZeZRS((RHRIt
memoryviewR(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyR_ÔscCsMtjttƒtjdtfƒtjttƒWdQXtjtƒdS(Nsbuffer.. not supported(    Rt run_unittestRMRTtcheck_py3k_warningstDeprecationWarningR\R^R_(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyt    test_mainØs
     t__main__(tunittestRRZRQRWtsysttestRtTestCaseRRMRTtplatformt
startswithRJR]R\R^R_RdRH(((sZ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_StringIO.pyt<module>s$      ‰