ó {G_Tc@sõddlZddlZddlmZddlmZddd„ƒYZdefd„ƒYZdefd „ƒYZ d efd „ƒYZ d efd „ƒYZ de fd„ƒYZ dej fd„ƒYZd„ZedkrñeƒndS(iÿÿÿÿN(t test_support(tExtensionSavertCcBseZRS((t__name__t __module__(((s./usr/local/lib/python2.7/test/test_copy_reg.pyRst WithoutSlotscBseZRS((RR(((s./usr/local/lib/python2.7/test/test_copy_reg.pyR st WithWeakrefcBseZdZRS(t __weakref__(s __weakref__(RRt __slots__(((s./usr/local/lib/python2.7/test/test_copy_reg.pyRst WithPrivatecBseZdZRS(t__spam(R (RRR(((s./usr/local/lib/python2.7/test/test_copy_reg.pyR stWithSingleStringcBseZdZRS(tspam(RRR(((s./usr/local/lib/python2.7/test/test_copy_reg.pyR st WithInheritedcBseZdZRS(teggs(R(RRR(((s./usr/local/lib/python2.7/test/test_copy_reg.pyR stCopyRegTestCasecBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs |jttjtddƒdS(N(t assertRaisest TypeErrortcopy_regtpickleRtNone(tself((s./usr/local/lib/python2.7/test/test_copy_reg.pyt test_classscCs#|jttjtdƒdƒdS(Nisnot a callable(RRRRttype(R((s./usr/local/lib/python2.7/test/test_copy_reg.pyttest_noncallable_reduce!scCs&|jttjtdƒtdƒdS(Nisnot a callable(RRRRRtint(R((s./usr/local/lib/python2.7/test/test_copy_reg.pyttest_noncallable_constructor%scCs)ddl}|jt|jtƒƒdS(Niÿÿÿÿ(tcopyt assertEqualtTrue(RR((s./usr/local/lib/python2.7/test/test_copy_reg.pyt test_bool)s cCs_d \}}}t|ƒ}z—|jttj|||ƒtj|||ƒ|jtj||f|kƒ|jtj|||fkƒ|j |tj ƒtj|||ƒ|jttj|||dƒ|jttj|||dƒ|jttj|d||ƒ|jttj|d||ƒ|jttj||d|ƒ|jttj||d|ƒ|dtjkr±|jttj|d|d|dƒnWd|j ƒX|j ||ftjƒxRd D]J}t|ƒ}z*tj|||ƒtj|||ƒWd|j ƒXqàWx*d D]"}|jttj|||ƒq5WdS( Nsjunk1 s junk2iÍ«iiÿÿÿiÿÿÿÿil(sjunk1 s junk2iÍ«(iiÿÿÿ(iÿÿÿÿil( RRt ValueErrorRtremove_extensiont add_extensiont assertTruet_extension_registryt_inverted_registryt assertNotInt_extension_cachetrestore(Rtmodtfunctcodete((s./usr/local/lib/python2.7/test/test_copy_reg.pyttest_extension_registry-sH         cCs³|jtjtƒgƒ|jtjtƒgƒdg}|jtjtƒ|ƒ|jtjtƒdgƒddg}|jƒtjtƒ}|jƒ|j||ƒdS(Nt_WithPrivate__spamR R( RRt _slotnamesRRR R tsortR (Rtexpectedtresult((s./usr/local/lib/python2.7/test/test_copy_reg.pyttest_slotnamesgs    (RRRRRRR,R2(((s./usr/local/lib/python2.7/test/test_copy_reg.pyRs      :cCstjtƒdS(N(Rt run_unittestR(((s./usr/local/lib/python2.7/test/test_copy_reg.pyt test_maintst__main__((RtunittestttestRttest.pickletesterRRtobjectRRR R R tTestCaseRR4R(((s./usr/local/lib/python2.7/test/test_copy_reg.pyts  Y