python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
test_copyreg.cpython-312.opt-2.pyc

͑et,ddlZddlZddlmZGddZdZGddeZGdd	eZGd
deZ	Gdd
eZ
GddeZGddeZGddeZ
GddejZedk(rej"yy)N)ExtensionSaverceZdZy)CN__name__
__module____qualname__E/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_copyreg.pyrrrrctdfS)Nr
)r)cs rpickle_Cr	sb5LrceZdZy)WithoutSlotsNrr
rrrr
r
rrceZdZdZy)WithWeakref)__weakref__Nrrr		__slots__r
rrrrs IrrceZdZdZy)WithPrivate__spamNrr
rrrrIrrceZdZdZy) _WithLeadingUnderscoreAndPrivaterNrr
rrrrrrrceZdZdZy)___rNrr
rrr r rrr ceZdZdZy)WithSingleStringspamNrr
rrr"r"sIrr"ceZdZdZy)
WithInherited)eggsNrr
rrr%r%sIrr%c0eZdZdZdZdZdZdZdZy)CopyRegTestCasec@tjtty)N)copyregpicklerrselfs r
test_classzCopyRegTestCase.test_class%sq(#rcX|jttjtdyNznot a callable)assertRaises	TypeErrorr*r+rr,s rtest_noncallable_reducez'CopyRegTestCase.test_noncallable_reduce(s)W^^-	/rcb|jttjtt
dyr0)r1r2r*r+rrr,s rtest_noncallable_constructorz,CopyRegTestCase.test_noncallable_constructor,s )W^^X'7	9rcNddl}|jd|jdy)NrT)copyassertEqual)r-r7s  r	test_boolzCopyRegTestCase.test_bool0styy/rcd\}}}t|}	|jttj|||tj
||||j
tj||f|k(|j
tj|||fk(|j|tjtj
||||jttj
|||dz|jttj|||dz|jttj
|dd|||jttj|dd|||jttj
||dd||jttj||dd||dztjvr0|jttj|dd|dd|dz|j|j||ftjdD]L}t|}	tj
|||tj||||jNdD])}|jttj
|||+y#|jwxYw#|jwxYw)N)zjunk1 z junk2iͫ)r;i)rl)rr1
ValueErrorr*remove_extension
add_extension
assertTrue_extension_registry_inverted_registryassertNotIn_extension_cacherestore)r-modfunccodees     rtest_extension_registryz'CopyRegTestCase.test_extension_registry4s4T44 !	j'*B*B!4
/!!#tT2OOG77T	BdJKOOG66t<dKLT7#;#;<!!#tT2j'*?*?!4
3j'*B*B!4
3
j'*?*?!!"gtT
4j'*B*B!!"gtT
4
j'*?*?!48T
3j'*B*B!48T
3axw999!!*g.F.F"%ab'48TAX?
IIK	
#tg&A&AB"	Dt$A
%%c46((dD9		
	&	/Dj'*?*?!4
/	/%
IIK		sHK	.K	KK0c|jtjtg|jtjtgdg}|jtjt
|dg}|jtjt||jtjtdg|jtjtdgddg}|jtjt}|j|j||y)N_WithPrivate__spam&_WithLeadingUnderscoreAndPrivate__spamrr#r&)r8r*
_slotnamesrrrrr r"sortr%)r-expectedresults   rtest_slotnameszCopyRegTestCase.test_slotnamesns++L92>++K8"=()++K8(C<=++,LM!	#++C08*=++,<=xHF#

##M2
*rN)	rrr	r.r3r5r9rJrRr
rrr(r(#s!$/908/t+rr(__main__)r*unittesttest.pickletesterrrrobjectrrrrr r"r%TestCaser(rmainr
rr<module>rYs,			6	!&!&v&v$Y+h''Y+xzHMMOr