tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Z\¬Qc @s&ddlZddlTddlZddlZejdkrLdZdZn dZdZd„Zdejfd„ƒYZ    d    e
fd
„ƒYZ d e
fd „ƒYZ d e
fd„ƒYZ defdefge _de
fd„ƒYZdefd„ƒYZde
fd„ƒYZde
fd„ƒYZeeƒZdefge_eddefeddefeddefeddefeddefeddefed defed!defed"defe d#de fe!d$de!feeƒd%deeƒfeeeƒƒd&deeeƒƒfed'd(d=efed'd)d*d+d>efeeƒd*d,d?eeƒfeeƒd*d)d-d@eeƒfeed*ƒd.deeƒfe d/de fe d0de fe d/de fed1defed0defed0defeeƒd2deeƒfed3defeeƒd2deeƒfe"dƒd4de"dƒfgZ#d5e$fd6„ƒYZ%d7e&fd8„ƒYZ'e%d9de%fe'd/de'fee%ƒd:dee%ƒfee'ƒd;dee'ƒfgZ(e)d<kr"ej*ƒndS(AiÿÿÿÿN(t*tlittlet<t>cCs5|dkrdS|jttƒ}tjdd|ƒS(Nts\s(tNonetreplacet OTHER_ENDIANt THIS_ENDIANtretsub(tformat((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyt    normalize s tTestcBseZd„Zd„ZRS(c    Cs\xUtD]M\}}}}|ƒ}t|ƒ}y|jt|jƒt|ƒƒ|dk    ry|jt|ƒ|dƒn&|jt|ƒt|ƒt|ƒƒ|j|jt|ƒƒ|j|j    |ƒ|j|j
dƒ|j |j ƒ|j    rAd}x|j    D]}||}qW|j||jt|j ƒƒƒnWq|GH‚qXqWdS(Nii(t native_typest
memoryviewt assertEqualR R Rtlentsizeoftitemsizetshapetstridest assertFalsetreadonlyttobytes(    tselfttptfmtRtitemtptobtvtntdim((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyttest_native_typess(      &    *c    CsCx<tD]4\}}}}|ƒ}t|ƒ}yû|j|j|ƒ|dk    rm|jt|ƒ|dƒn&|jt|ƒt|ƒt|ƒƒ|j|jt|ƒƒ|j|j|ƒ|j|j    dƒ|j
|j ƒ|jr(d}x|jD]}||}qûW|j|t|ƒƒnWq|GH‚qXqWdS(Nii( t endian_typesRRR RRRRRRRR(    RRRRRRRRR ((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyttest_endian_types1s(      &    (t__name__t
__module__R!R#(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyR s    tPointcBs eZdefdefgZRS(txty(R$R%tc_longt_fields_(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyR&Nst PackedPointcBs&eZdZdefdefgZRS(iR'R((R$R%t_pack_R)R*(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyR+QstPoint2cBseZRS((R$R%(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyR-UsR'R(t EmptyStructcBseZgZRS((R$R%R*(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyR.YstaUnioncBseZdefgZRS(ta(R$R%tc_intR*(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyR/\st
IncompletecBseZRS((R$R%(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyR2_stCompletecBseZRS((R$R%(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyR3bsR0s<cs<bs<Bs<hs<Hs<ls<Ls<fs<ds<?s<Os&<bs&&<lis(4)<diis    (2,3,4)<fs(2)&<hs(3,2)&<hs&(2)<hs T{<l:x:<l:y:}tBsT{}s&BsT{<l:a:}sX{}tBEPointcBs eZdefdefgZRS(R'R((R$R%R)R*(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyR5±stLEPointcBs eZdefdefgZRS(R'R((R$R%R)R*(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyR6´ss T{>l:x:>l:y:}s&T{>l:x:>l:y:}s&T{<l:x:<l:y:}t__main__(i(iii(i(ii(+tunittesttctypesR    tsyst    byteorderRRR tTestCaseR t    StructureR&R+R-R)R*R.tUnionR/R2R3tPOINTERt    PCompletetc_charRtc_bytetc_ubytetc_shorttc_ushorttc_ulongtc_floattc_doubletc_boolt    py_objectt    CFUNCTYPERtBigEndianStructureR5tLittleEndianStructureR6R"R$tmain(((s`/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_pep3118.pyt<module>sn 
        :  '#!    !