ó {G_Tc@sèddlZddlmZddlmZddlmZmZmZm Z m Z deefd„ƒYZ defd„ƒYZ d efd „ƒYZ d e fd „ƒYZd e fd„ƒYZd„ZedkräeƒndS(iÿÿÿÿN(tStringIO(t test_support(tAbstractPickleTeststAbstractPickleModuleTeststAbstractPersistentPicklerTestst#AbstractPicklerUnpicklerObjectTeststBigmemPickleTestst PickleTestscBs,eZddd„Zd„ZeZeZRS(icCstj||ƒS(N(tpickletdumps(tselftargtprototfast((s,/usr/local/lib/python2.7/test/test_pickle.pyR scCs tj|ƒS(N(Rtloads(R tbuf((s,/usr/local/lib/python2.7/test/test_pickle.pyRs(t__name__t __module__R RRtmoduletKeyErrorterror(((s,/usr/local/lib/python2.7/test/test_pickle.pyR s t PicklerTestscBs&eZeZddd„Zd„ZRS(icCsQtƒ}tj||ƒ}|r-||_n|j|ƒ|jdƒ|jƒS(Ni(RRtPicklerR tdumptseektread(R R R R tftp((s,/usr/local/lib/python2.7/test/test_pickle.pyR s    cCs%t|ƒ}tj|ƒ}|jƒS(N(RRt Unpicklertload(R RRtu((s,/usr/local/lib/python2.7/test/test_pickle.pyR&s (RRRRR R(((s,/usr/local/lib/python2.7/test/test_pickle.pyRs tPersPicklerTestscBs eZddd„Zd„ZRS(icsmdtjf‡fd†ƒY}tƒ}|||ƒ}|rI||_n|j|ƒ|jdƒ|jƒS(Nt PersPicklercseZ‡fd†ZRS(cs ˆj|ƒS(N(t persistent_id(tsubselftobj(R (s,/usr/local/lib/python2.7/test/test_pickle.pyR!/s(RRR!((R (s,/usr/local/lib/python2.7/test/test_pickle.pyR .si(RRRR RRR(R R R R R RR((R s,/usr/local/lib/python2.7/test/test_pickle.pyR -s    csAdtjf‡fd†ƒY}t|ƒ}||ƒ}|jƒS(Nt PersUnpicklercseZ‡fd†ZRS(cs ˆj|ƒS(N(tpersistent_load(R"R#(R (s,/usr/local/lib/python2.7/test/test_pickle.pyR%;s(RRR%((R (s,/usr/local/lib/python2.7/test/test_pickle.pyR$:s(RRRR(R RR$RR((R s,/usr/local/lib/python2.7/test/test_pickle.pyR9s  (RRR R(((s,/usr/local/lib/python2.7/test/test_pickle.pyR+s tPicklerUnpicklerObjectTestscBseZejZejZRS((RRRRt pickler_classRtunpickler_class(((s,/usr/local/lib/python2.7/test/test_pickle.pyR&As tPickleBigmemPickleTestscBs eZddd„Zd„ZRS(icCstj||ƒS(N(RR (R R R R ((s,/usr/local/lib/python2.7/test/test_pickle.pyR HscCs tj|ƒS(N(RR(R R((s,/usr/local/lib/python2.7/test/test_pickle.pyRLs(RRR R(((s,/usr/local/lib/python2.7/test/test_pickle.pyR)FscCs*tjtttttƒtjtƒdS(N( Rt run_unittestRRRR&R)t run_doctestR(((s,/usr/local/lib/python2.7/test/test_pickle.pyt test_mainQst__main__(Rt cStringIORttestRttest.pickletesterRRRRRRRRR&R)R,R(((s,/usr/local/lib/python2.7/test/test_pickle.pyts (