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
43
44
45
46
47
48
49
50
51
52
53
P\¬Qc@s¡dZddlZddlmZddlZddlZddlZd„Zdejfd„ƒYZ    de    fd„ƒYZ
d    „Z e d
kre ƒndS( s<
Tests common to genericpath, macpath, ntpath and posixpath
iÿÿÿÿN(t test_supportcCs)ytj|ƒWntk
r$nXdS(N(tostrmdirtOSError(tdirname((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt
safe_rmdir s t GenericTestcBsqeZeZddddddddgZgZd„Zd    „Zd
„Zd „Z    d „Z
d „Z d„Z RS(t commonprefixtgetsizetgetatimetgetctimetgetmtimetexiststisdirtisfilec    Csixb|j|jD]P}|jtƒ9t|j|ƒƒ|jdj|jj|ƒƒ‚WdQXqWdS(Ns!{}.{}() did not raise a TypeError(    tcommon_attributest
attributest assertRaisest    TypeErrortgetattrt
pathmoduletfailtformatt__name__(tselftattr((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyttest_no_arguments
 c Cs–|jj}|j|gƒdƒ|j|ddgƒdƒ|j|ddgƒdƒ|j|ddgƒdƒ|j|ddgƒd    ƒ|j|d
d gƒd ƒ|j|d
d
gƒd
ƒdd dddddddddg }xž|D]–}x|D]…}|||gƒ}|j|j|ƒƒ|j|j|ƒƒ||krt|ƒ}|j|||d!|||d!ƒqqWqøWdS(Nts/home/swenson/spams/home/swen/spams
/home/swens/home/swen/eggss /home/swen/shome:swenson:spamshome:swen:spams    home:swens:home:swen:spams:home:swen:eggss :home:swen:tabctXbcdtXbtXYtabcdtaXctabdtabtaXtabcXi(RRt assertEqualt
assertTruet
startswithtlentassertNotEqual(RRttestlistts1ts2tptn((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyttest_commonprefix!s@         cCszttjdƒ}z:|jdƒ|jƒ|j|jjtjƒdƒWd|jse|jƒntj    tjƒXdS(Ntwbtfooi(
topenRtTESTFNtwritetcloseR&RRtclosedtunlink(Rtf((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt test_getsizeKs 
#     cCsêttjdƒ}zª|jdƒ|jƒttjdƒ}|jdƒ|jƒttjdƒ}|jƒ}|jƒ|j|dƒ|j|jj    tjƒ|jj
tjƒƒWd|j sÕ|jƒntj tjƒXdS(NR1R2R#tbartrbtfoobar( R3RR4R5R6treadR&tassertLessEqualRR
R R7R8(RR9td((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt    test_timeVs" 
 
 
     cCsÍ|j|jjtjƒtƒttjdƒ}zk|jdƒ|jƒ|j|jjtjƒt    ƒ|jt
ks›|j|jj tjƒt    ƒnWd|jƒs¸|jƒntj tjƒXdS(NR1R2( tassertIsRR RR4tFalseR3R5R6tTruet genericpathtlexistsR8(RR9((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt test_existsls 
  cCsø|j|jjtjƒtƒttjdƒ}z‰|jdƒ|jƒ|j|jjtjƒtƒt    j
tjƒt    j tjƒ|j|jjtjƒt ƒt    j tjƒWd|jƒsÖ|jƒntjtjƒttjƒXdS(NR1R2(RBRR RR4RCR3R5R6RtremovetmkdirRDRR8R(RR9((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt
test_isdir{s 
  cCsø|j|jjtjƒtƒttjdƒ}z‰|jdƒ|jƒ|j|jjtjƒt    ƒt
j tjƒt
j tjƒ|j|jjtjƒtƒt
j tjƒWd|jƒsÖ|jƒntjtjƒttjƒXdS(NR1R2(RBRRRR4RCR3R5R6RDRRHRIRR8R(RR9((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt test_isfileŒs 
  ( Rt
__module__RERRRRR0R:RARGRJRK(((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyRs         *                t
CommonTestcBsÉeZd"Zejdddddddddd    d
d d d dddddddddd dgZd„Zd„Zd„Zd„Z    d„Z
d„Z d„Z e jejdkd ƒd!„ƒZRS(#tcurdirtpardirtextseptseptpathseptdefpathtaltseptdevnulltnormcaset
splitdrivet
expandvarstnormpathtabspathtjointsplittsplitexttisabstbasenameRRFtislinktismountt
expandusertrealpathcCs8d}|jj|ƒ}|j||jj|ƒƒdS(Ns    FoO/./BaR(RRVR&(RR.((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt test_normcase®scCsR|jj}|j|dƒdƒ|j|dƒdƒ|j|dƒdƒdS(Ns/foo/barRsfoo:bars:foo:bar(Rs/foo/bar(Rsfoo:bar(Rs:foo:bar(RRWR&(RRW((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyttest_splitdrive´s cCsw|jjdkr"|jdƒn|jj}tjƒ7}|jƒd|d<d|d<d|d<|j|dƒdƒ|j|d    ƒd
ƒ|j|d ƒd ƒ|j|d ƒd ƒ|j|dƒdƒ|j|dƒdƒ|j|d ƒd ƒ|j|dƒdƒ|j|dƒdƒ|j|dƒdƒ|j|dƒd ƒ|j|dƒdƒWdQXdS(Ntmacpathsmacpath.expandvars is a stubR;R2tbaz1s{footbaz2s{foo}s$foo barsbar bars    ${foo}bartbarbars    $[foo]bars$bar bars$?bars$foo}barsbar}bars${foos${{foo}}sbaz1}s$foo$foos$bar$bar(RRtskipTestRXRtEnvironmentVarGuardtclearR&(RRXtenv((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyttest_expandvars»s( 
 
 
 
cCsM|jd|jjdƒƒx*dD]"}|j|jj|ƒtƒq#WdS(NR2Rsfòòs/foosC:\(Rsfoosfòòs/foosC:\(tassertInRRZtassertIsInstancetstr(Rtpath((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt test_abspathÑs cCs |jd|jjdƒƒdS(NR2(RoRRc(R((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt test_realpathØscCs1x*dD]"}|j|jj|ƒtƒqWdS(Nuu.u/u\u///foo/.//bar//(uu.u/u\u///foo/.//bar//(RpRRYtunicode(RRr((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyttest_normpath_issue5827Ûs c
Cs´|jj}x$dD]}|j||ƒtƒqWd}y tjpHd}|j|ƒWnttfk
rrn>Xtj    |ƒ,x$d    D]}|j||ƒtƒqŠWWdQXdS(
Nuufuuufùùu/fuuuU:\uçwðtascii(uufuuufùùu/fuuuU:\(uufuuufùùu/fuuuU:\(
RRZRpRuRtTESTFN_ENCODINGtencodetAttributeErrortUnicodeEncodeErrorttemp_cwd(RRZRrtunicwdt
fsencoding((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyttest_abspath_issue3426às   tdarwinsEMac OS X denies the creation of a directory with an invalid utf8 namecCs$tjdƒ|jƒWdQXdS(Nsçwð(RR|Rs(R((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyttest_nonascii_abspathósN(RRLtNoneRRRRdReRnRsRtRvRtunittesttskipIftsystplatformR(((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyRM¡s                               cCstjtƒdS(N(Rt run_unittestR(((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt    test_mainûst__main__( t__doc__RƒttestRRRER…RtTestCaseRRMRˆR(((s]/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/test/test_genericpath.pyt<module>s        ŽZ