ó o®¸Qc@sËddlZddlZddlTddlZeejƒZdefd„ƒYZdefd„ƒYZ dej fd„ƒYZ d e fd „ƒYZ d e fd „ƒYZ ed krÇejƒndS(iÿÿÿÿN(t*tXcBs/eZdefdefgZdZd„ZRS(tatbicOstjd7_d|_dS(Nii*(Rt init_calledtx(tselftargstkw((s//sys/lib/python2.7/ctypes/test/test_pickling.pyt__init__ s(t__name__t __module__tc_inttc_doublet_fields_RR (((s//sys/lib/python2.7/ctypes/test/test_pickling.pyRstYcBseZdefgZRS(tstr(R R tc_char_pR(((s//sys/lib/python2.7/ctypes/test/test_pickling.pyRst PickleTestcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs tj|ƒS(N(tpickletdumps(Rtitem((s//sys/lib/python2.7/ctypes/test/test_pickling.pyRscCs tj|ƒS(N(Rtloads(RR((s//sys/lib/python2.7/ctypes/test/test_pickling.pyRscCs}xvtdƒtdƒgD]\}|j|j|ƒƒ}|j|j|jƒ|jt|ƒjƒt|ƒjƒƒqWdS(Ni*g…ëQ¸ @(R R RRt assertEqualt__dict__t memoryviewttobytes(Rtsrctdst((s//sys/lib/python2.7/ctypes/test/test_pickling.pyt test_simples cCs›dt_tƒ}d|_|jtjdƒ|j|j|ƒƒ}|jtjdƒ|j|j|jƒ|jt|ƒjƒt|ƒjƒƒdS(Nii*i( RRRRRRRRR(RRty((s//sys/lib/python2.7/ctypes/test/test_pickling.pyt test_struct"s   cs‰ˆjt‡fd†ƒttƒ}x]tƒtƒtƒttdƒƒtj |d„ƒgD]"‰ˆjt‡‡fd†ƒq_WdS(NcsˆjtƒƒS(N(RR((R(s//sys/lib/python2.7/ctypes/test/test_pickling.pyt7si*cSsdS(Ni*((((s//sys/lib/python2.7/ctypes/test/test_pickling.pyR Ascs ˆjˆƒS(N(R((RR(s//sys/lib/python2.7/ctypes/test/test_pickling.pyR Cs( t assertRaisest ValueErrort CFUNCTYPER Rt c_wchar_ptc_void_ptpointertdllt _testfunc_p_p(Rt prototype((RRs//sys/lib/python2.7/ctypes/test/test_pickling.pyttest_unpickable4s cCs*tjtdƒƒtjtdƒƒdS(NRux(RRtc_chartc_wchar(R((s//sys/lib/python2.7/ctypes/test/test_pickling.pyt test_wcharEs(R R RRRRR*R-(((s//sys/lib/python2.7/ctypes/test/test_pickling.pyRs     t PickleTest_1cBseZd„ZRS(cCstj|dƒS(Ni(RR(RR((s//sys/lib/python2.7/ctypes/test/test_pickling.pyRKs(R R R(((s//sys/lib/python2.7/ctypes/test/test_pickling.pyR.Jst PickleTest_2cBseZd„ZRS(cCstj|dƒS(Ni(RR(RR((s//sys/lib/python2.7/ctypes/test/test_pickling.pyROs(R R R(((s//sys/lib/python2.7/ctypes/test/test_pickling.pyR/Nst__main__(tunittestRtctypest _ctypes_testtCDLLt__file__R't StructureRRtTestCaseRR.R/R tmain(((s//sys/lib/python2.7/ctypes/test/test_pickling.pyts    9