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
Q\¬Qc
@s«ddlZddlZddlZddlmZddlmZdddddd    d
d d d g
Zejdkr¢ej    dddddddddg    ƒnej
j sej ƒpÃej ƒZy"xeD]ZejeƒqÐWWqek
r
ejdƒ‚qXnd„Zdejfd„ƒYZdefd„ƒYZdefd„ƒYZd efd!„ƒYZd"efd#„ƒYZd$„Zed%kr§eƒndS(&iÿÿÿÿN(t    normalize(t test_supportt1_abcu2_asciiu 3_Grüß-Gottu4_Γειά-σαςu5_Здравствуйтеu 6_にぽんu7_השקצץסu 8_曨曩曫u9_曨שんдΓßu    10_΅´tdarwinu    11_΅ϓϔu12_΅ϓϔu 13_ ÌˆÌÎŽÎ«u14_ẛ῁῍῎῏῝῞῟῭u 15_΅´𣏕u 16_   Au 17_   Au 18_   Au19_   As>only NT+ and systems with Unicode-friendly filesystem encodingcCsbtjj|ƒr^x9tjt|ƒƒD]"}tjtjj||ƒƒq(Wtj|ƒndS(N(tostpathtexiststlistdirtunicodetunlinktjointrmdir(tdirnametfname((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pytdeltree9s tUnicodeFileTestscBs­eZeeƒZd Zd„Zd„Zd„Z    e
d„Z d„Z d„Z ejejdkdƒd„ƒZejejdkdƒd    „ƒZd
„Zd „ZRS( cCs¿ytjtjƒWntk
r'nXtƒ}x~|jD]s}tjjtj|j    |ƒƒ}t
|dƒ!}|j |dj dƒƒWdQXtj |ƒ|j|ƒq;W||_dS(Ntws
sutf-8(RtmkdirRtTESTFNtOSErrortsettfilesRR
tnormtopentwritetencodetstattadd(tselfRtnametf((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pytsetUpGs     !  cCsttjƒdS(N(RRR(R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyttearDownUscCs,|jr(t|tƒr(t|j|ƒS|S(N(t normal_formt
isinstanceRR(Rts((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyRXscCs…|j|ƒ}||ƒWdQX|jj}t|tƒrU|jtjƒƒ}n|r|j||d|j    ||fƒndS(Ns>Function '%s(%r) failed with bad filename in the exception: %r(
t assertRaisest    exceptiontfilenameR"tstrRtsystgetfilesystemencodingt assertEqualt__name__(RtfnR&texpected_exceptiontcheck_fn_in_exceptiontct exc_filename((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyt_apply_failure]s cCs¦xŸ|jD]”}d|}|jt|tƒ|jtj|tƒ|jtj|tƒ|jtj|tƒ|jtj    |tƒ|jtj
|tt ƒq
WdS(Ntnot_( RR1RtIOErrorRRRtchdirR tremoveRtFalse(RR((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyt test_failuresjs
cCsXxQ|jD]F}t|dƒ}|j|djdƒƒ|jƒtj|ƒq
WdS(NRs
sutf-8(RRRRtcloseRR(RRR((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyt    test_openvs
 
Rsirrelevant test on Mac OS Xcstd„|jDƒƒ}tƒ}x@tddddgƒD]&‰|t‡fd†|DƒƒO}q;W||8}x’|D]Š}|jt|tƒ|jtj|tƒ|jtj|tƒ|jtj    |tƒ|jtj
|tƒ|jtj |tt ƒqvWdS(Ncss$|]}t|tƒr|VqdS(N(R"R(t.0R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pys    <genexpr>ƒstNFCtNFDtNFKCtNFKDc3s|]}tˆ|ƒVqdS(N(R(R:tfile(tnf(sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pys    <genexpr>†s( RRR1RR3RRRR4R R5RR6(RRtothersR((R@sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyttest_normalizes    $
 cCsˆt|jƒ}tjtjƒ}tjttjtjƒƒƒ}td„|Dƒƒ}|j    ||ƒ|j    t
|ƒt
|ƒƒdS(Ncss-|]#}tjjttjƒ|ƒVqdS(N(RRR
RRR(R:R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pys    <genexpr>šs( RRRRRRRR(R)R*tlen(Rtsf0tf1tf2tsf2((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyt test_listdir”scCs8x1|jD]&}tj|dƒtjd|ƒq
WdS(Nttmp(RRtrename(RR((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyt test_renamežscCs¼tjjtjdƒ}d}tjƒ}tj|ƒtj|ƒzVt|dƒ!}|j    |dj
dƒƒWdQXtj |tj ƒtj |ƒWdtj|ƒtj|ƒXdS(NuGrüß-曨曩曫u ß-曨曩曫Rs
sutf-8(RRR
RRtgetcwdRR4RRRtaccesstR_OKR5R (RR R&toldwdR((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyttest_directory£s         N(R+t
__module__Rt    filenamesRtNoneR!RR RtTrueR1R7R9tunittesttskipIfR(tplatformRBRHRKRP(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyRCs                      $$
   tUnicodeNFCFileTestscBseZdZRS(R;(R+RQR!(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyRX´stUnicodeNFDFileTestscBseZdZRS(R<(R+RQR!(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyRY¸stUnicodeNFKCFileTestscBseZdZRS(R=(R+RQR!(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyRZ¼stUnicodeNFKDFileTestscBseZdZRS(R>(R+RQR!(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyR[ÀscCs2ztjtttttƒWdttjƒXdS(N(    Rt run_unittestRRXRYRZR[RR(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyt    test_mainÄs t__main__(R(RRUt unicodedataRttestRRRRWtextendRtsupports_unicode_filenamesR)tgetdefaultencodingt
fsencodingRRtUnicodeEncodeErrortSkipTestRtTestCaseRRXRYRZR[R]R+(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_pep277.pyt<module>sN$                
q