@f$r.SSKrSSKrSSKrSSKrSSKJrJrJrJrJ r J r J r SSK r SSK Jr \\\\4r\ \ 4r\\-r"SS\ R$5r"SS\ R$5r"SS \ R$5rS r\S :Xa\ R0"5 gg) N)leltgegteqne attrgetter)supportc\rSrSrSrSrSrSrSrSr Sr S r S r S r S rS rSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSrSr Sr!S r"S!r#S"r$S#r%S$r&S%r'S&r(S'r)S(r*S)r+S*r,S+r-S,r.S-r/S.r0S/r1S0r2S1r3S2r4S3r5S4r6S5r7S6r8S7r9S8r:S9r;S:rS=r?S>r@S?rAS@rBSArCSBrDSCrESDrFSErGSFrHSGrISHrJSIrKSJrLSKrMSLrNSMrOSNrPSOrQSPrRgQ)RTestCopycUR[R[R5 UR [ [R[ 55 gN)assertIscopyErrorerror assertTrue issubclass Exceptionselfs 5/opt/alt/python313/lib64/python3.13/test/test_copy.pytest_exceptionsTestCopy.test_exceptionss/ djj$**-  4::y9:cVSn[R"U5nURX5 gN*)r assertEqualrxys rtest_copy_basicTestCopy.test_copy_basics"  IIaL rc^"U4SjS[5mT"S5n[R"U5nURURUR5 URURUR5 g)Nc(>\rSrSrSrU4SjrSrg)"TestCopy.test_copy_copy..C cXlgrfoorr,s r__init__+TestCopy.test_copy_copy..C.__init__!rc(>T"UR5$rr+rCs r__copy__+TestCopy.test_copy_copy..C.__copy__#{"rr+N)__name__ __module__ __qualname____firstlineno__r.r4__static_attributes__r3srr3r( s  # #rr3r)objectrr __class__r,rr"r#r3s @rtest_copy_copyTestCopy.test_copy_copysW # # bE IIaL akk2 &rc^"SS[5mU4SjnT"S5nUR[[RU5 [R "TUT5 [R"U5nUR X#5 UR[U5T5 URURUR5 g)Nc\rSrSrSrSrg)&TestCopy.test_copy_registry..C+c<[RU5nXlU$rr=__new__r,clsr,objs rrH.TestCopy.test_copy_registry..C.__new__,nnS) rNr7r8r9r:rHr;rNrrr3rD+ rr3c">TUR44$rr+rKr3s rpickle_C-TestCopy.test_copy_registry..pickle_C0z? "rr) r= assertRaises TypeErrorrcopyregpickle assertIsNotr typer,rrSr"r#r3s @rtest_copy_registryTestCopy.test_copy_registry*s    # bE )TYY2q(A& IIaL  a!$ &rc^"U4SjS[5n/mU"5n[R"U5nURX25 URTS/5 g)Nc(>\rSrSrU4SjrSrSrg)'TestCopy.test_copy_reduce_ex..C;c(>TRS5 gNappendrprotocs r __reduce_ex__5TestCopy.test_copy_reduce_ex..C.__reduce_ex__< rc&URS5 gNzshouldn't call thisfailrs r __reduce__2TestCopy.test_copy_reduce_ex..C.__reduce__? /0rrNNr7r8r9r:rlrsr;rksrr3ra;   1rr3rer=rrr rr3r"r#rks @rtest_copy_reduce_exTestCopy.test_copy_reduce_ex:sH 1 1  C IIaL a QC rc^"U4SjS[5n/mU"5n[R"U5nURX25 URTS/5 g)Nc">\rSrSrU4SjrSrg)$TestCopy.test_copy_reduce..CHc(>TRS5 grdrgrrks rrs/TestCopy.test_copy_reduce..C.__reduce__IrnrrNNr7r8r9r:rsr;rwsrr3rH   rr3reryrzs @rtest_copy_reduceTestCopy.test_copy_reduceGsH    C IIaL a QC rc"SS[5nU"5nUR[R[RU5 g)Nc\rSrSrSrSrg)"TestCopy.test_copy_cant..CScnURS5(a [U5e[RX5$N__reduce startswithAttributeErrorr=__getattribute__rnames rr3TestCopy.test_copy_cant..C.__getattribute__T-??:..(....t::rrNNr7r8r9r:rr;rNrrr3rS ;rr3)r=rVrrrr3r"s rtest_copy_cantTestCopy.test_copy_cantRs1 ; ; C $**dii3rc\"SS5nSn"SS[RS9nSS[SS S -S S S SSSURS[ [ S55[ S5[ SSS 5U[U[5/nUH)nUR[R"U5U5 M+ g)Nc\rSrSrSrg)+TestCopy.test_copy_atomic..NewStyle^rNNr7r8r9r:r;rNrrNewStyler^ rrcgrrNrNrrf$TestCopy.test_copy_atomic..f` rc\rSrSrSrg)0TestCopy.test_copy_atomic..WithMetaclassbrNNrrNrr WithMetaclassrbrrr metaclass.rdQ @TF?hellohelloሴsworld re) abcABCMetaNotImplemented__code__bytesrangeslicemaxpropertyrr)rrrrtestsr"s rtest_copy_atomicTestCopy.test_copy_atomic]s    ckk sNQVT4-5s,eBiq"a3 xz ; A MM$))A, *rc/SQn[R"U5nURX!5 URX!5 /n[R"U5nURX!5 URX!5 g)Nrerrr rZr!s rtest_copy_listTestCopy.test_copy_listls^  IIaL    IIaL  rcSnUR[R"U5U5 SnUR[R"U5U5 SSS/4nUR[R"U5U5 g)NrrNrerr)rrrr"s rtest_copy_tupleTestCopy.test_copy_tuplevs[  diilA&  diilA& 1bM diilA&rcSSS.n[R"U5nURX!5 URX!5 0n[R"U5nURX!5 URX!5 g)Nrerr,barrr!s rtest_copy_dictTestCopy.test_copy_dict~sca  IIaL    IIaL  rc1Skn[R"U5nURX!5 URX!5 [5n[R"U5nURX!5 URX!5 gN>rerr)rr rZsetr!s r test_copy_setTestCopy.test_copy_sets`  IIaL   E IIaL  rc[1Sk5nUR[R"U5U5 [5nUR[R"U5U5 gr) frozensetrrrs rtest_copy_frozensetTestCopy.test_copy_frozensets? i  diilA& K diilA&rc[S5n[R"U5nURX!5 URX!5 [5n[R"U5nURX!5 URX!5 g)Nsabc) bytearrayrr rZr!s rtest_copy_bytearrayTestCopy.test_copy_bytearrayse f  IIaL   K IIaL  rct"SS5nU"S5nUR[R"U5U5 g)Nc \rSrSrSrSrSrg)*TestCopy.test_copy_inst_vanilla..CcXlgrr+r-s rr.3TestCopy.test_copy_inst_vanilla..C.__init__r0rc4URUR:H$rr+rothers r__eq__1TestCopy.test_copy_inst_vanilla..C.__eq__xx599,,rr+Nr7r8r9r:r.rr;rNrrr3r   -rr3rr rrs rtest_copy_inst_vanillaTestCopy.test_copy_inst_vanillas/ - - bE 1q)rc|^"U4SjS5mT"S5nUR[R"U5U5 g)Nc.>\rSrSrSrU4SjrSrSrg)'TestCopy.test_copy_inst_copy..CcXlgrr+r-s rr.0TestCopy.test_copy_inst_copy..C.__init__r0rc(>T"UR5$rr+r2s rr40TestCopy.test_copy_inst_copy..C.__copy__r6rc4URUR:H$rr+rs rr.TestCopy.test_copy_inst_copy..C.__eq__rrr+N)r7r8r9r:r.r4rr;r<srr3rs  # -rr3rrrr"r3s @rtest_copy_inst_copyTestCopy.test_copy_inst_copys0 - - bE 1q)rct"SS5nU"S5nUR[R"U5U5 g)Nc&\rSrSrSrSrSrSrg).TestCopy.test_copy_inst_getinitargs..CcXlgrr+r-s rr.7TestCopy.test_copy_inst_getinitargs..C.__init__r0rcUR4$rr+rs r__getinitargs__>TestCopy.test_copy_inst_getinitargs..C.__getinitargs__{"rc4URUR:H$rr+rs rr5TestCopy.test_copy_inst_getinitargs..C.__eq__rrr+Nr7r8r9r:r.rrr;rNrrr3r  # -rr3rrrs rtest_copy_inst_getinitargs#TestCopy.test_copy_inst_getinitargs/ - - bE 1q)rc"SS[5nU"S5n[R"U5nURX15 URX25 UR X25 URUR UR 5 g)Nc&\rSrSrSrSrSrSrg)-TestCopy.test_copy_inst_getnewargs..Cc<[RU5nXlU$rintrHr,rJr,rs rrH5TestCopy.test_copy_inst_getnewargs..C.__new__{{3' rcUR4$rr+rs r__getnewargs__.C.__getnewargs__xxy rc4URUR:H$rr+rs rr4TestCopy.test_copy_inst_getnewargs..C.__eq__rrr+Nr7r8r9r:rHrrr;rNrrr3r  ! -rr3rrrassertIsInstancer rZr,rr3r"r#s rtest_copy_inst_getnewargs"TestCopy.test_copy_inst_getnewargssh - - bE IIaL a#   &rc "SS[5nU"SS9n[R"U5nURX15 URX25 UR X25 URUR UR 5 g)Nc&\rSrSrSrSrSrSrg)0TestCopy.test_copy_inst_getnewargs_ex..Cc<[RU5nXlU$rrrs rrH8TestCopy.test_copy_inst_getnewargs_ex..C.__new__rrc"SSUR04$NrNr,r+rs r__getnewargs_ex__BTestCopy.test_copy_inst_getnewargs_ex..C.__getnewargs_ex__E488,,,rc4URUR:H$rr+rs rr7TestCopy.test_copy_inst_getnewargs_ex..C.__eq__rrr+Nr7r8r9r:rHr+rr;rNrrr3r%  - -rr3rr+rr s rtest_copy_inst_getnewargs_ex%TestCopy.test_copy_inst_getnewargs_exsh - - "I IIaL a#   &rct"SS5nU"S5nUR[R"U5U5 g)Nc&\rSrSrSrSrSrSrg)+TestCopy.test_copy_inst_getstate..CcXlgrr+r-s rr.4TestCopy.test_copy_inst_getstate..C.__init__r0rcSUR0$Nr,r+rs r __getstate__8TestCopy.test_copy_inst_getstate..C.__getstate__txx((rc4URUR:H$rr+rs rr2TestCopy.test_copy_inst_getstate..C.__eq__rrr+Nr7r8r9r:r.r<rr;rNrrr3r6  ) -rr3rrrs rtest_copy_inst_getstate TestCopy.test_copy_inst_getstater rct"SS5nU"S5nUR[R"U5U5 g)Nc&\rSrSrSrSrSrSrg)+TestCopy.test_copy_inst_setstate..CcXlgrr+r-s rr.4TestCopy.test_copy_inst_setstate..C.__init__r0rcUSUlgr;r+rstates r __setstate__8TestCopy.test_copy_inst_setstate..C.__setstate__  <rc4URUR:H$rr+rs rr2TestCopy.test_copy_inst_setstate..C.__eq__rrr+Nr7r8r9r:r.rNrr;rNrrr3rG  ( -rr3rrrs rtest_copy_inst_setstate TestCopy.test_copy_inst_setstater rc"SS5nU"S5nUR[R"U5U5 U"S5nUR[R"U5U5 g)Nc,\rSrSrSrSrSrSrSrg)4TestCopy.test_copy_inst_getstate_setstate..CcXlgrr+r-s rr.=TestCopy.test_copy_inst_getstate_setstate..C.__init__r0rcUR$rr+rs rr<ATestCopy.test_copy_inst_getstate_setstate..C.__getstate__ xxrcXlgrr+rLs rrNATestCopy.test_copy_inst_getstate_setstate..C.__setstate__ rc4URUR:H$rr+rs rr;TestCopy.test_copy_inst_getstate_setstate..C.__eq__rrr+N r7r8r9r:r.r<rNrr;rNrrr3rY   ! -rr3rgrrs r test_copy_inst_getstate_setstate)TestCopy.test_copy_inst_getstate_setstatesP - - bE 1q) cF 1q)rcVSn[R"U5nURX!5 gr)rdeepcopyr r!s rtest_deepcopy_basicTestCopy.test_deepcopy_basic s#  MM!  rc/nX/n[R"U5nURX!5 URX!5 URUSUS5 UR USUS5 gNrre)rrjr rZrr!s rtest_deepcopy_memoTestCopy.test_deepcopy_memosh  F MM!    1qt$ adAaD!rc"SS[5n"SSUS9nUR[R"U5U5 g)Nc\rSrSrSrg)/TestCopy.test_deepcopy_issubclass..Metai rNNrrNrrMetars rrrtc\rSrSrSrg),TestCopy.test_deepcopy_issubclass..Ci"rNNrrNrrr3rv"rrr3r)r[r rrj)rrtr3s rtest_deepcopy_issubclass!TestCopy.test_deepcopy_issubclasss3  4  $  q)1-rc^"U4SjS[5mT"S5n[R"U5nURURUR5 URUR UR 5 g)Nc,>\rSrSrSrSU4SjjrSrg)*TestCopy.test_deepcopy_deepcopy..Ci'cXlgrr+r-s rr.3TestCopy.test_deepcopy_deepcopy..C.__init__(r0rNc(>T"UR5$rr+rmemor3s r __deepcopy__7TestCopy.test_deepcopy_deepcopy..C.__deepcopy__*r6rr+r)r7r8r9r:r.rr;r<srr3r{'s  # #rr3r)r=rrjr r>r,r?s @rtest_deepcopy_deepcopyTestCopy.test_deepcopy_deepcopy&sX # # bE MM!  akk2 &rc^"SS[5mU4SjnT"S5nUR[[RU5 [ R "TUT5 [R"U5nURX#5 UR[U5T5 URURUR5 g)Nc\rSrSrSrSrg)*TestCopy.test_deepcopy_registry..Ci2c<[RU5nXlU$rrGrIs rrH2TestCopy.test_deepcopy_registry..C.__new__3rMrrNNrOrNrrr3r2rPrr3c">TUR44$rr+rRs rrS1TestCopy.test_deepcopy_registry..pickle_C7rUrr) r=rVrWrrjrXrYrZr r[r,r\s @rtest_deepcopy_registryTestCopy.test_deepcopy_registry1s    # bE )T]]A6q(A& MM!   a!$ &rc^"U4SjS[5n/mU"5n[R"U5nURX25 UR TS/5 g)Nc(>\rSrSrU4SjrSrSrg)+TestCopy.test_deepcopy_reduce_ex..CiBc(>TRS5 grdrgris rrl9TestCopy.test_deepcopy_reduce_ex..C.__reduce_ex__Crnrc&URS5 grprqrs rrs6TestCopy.test_deepcopy_reduce_ex..C.__reduce__FrurrNNrvrwsrr3rBrxrr3rer=rrjrr rzs @rtest_deepcopy_reduce_ex TestCopy.test_deepcopy_reduce_exAsI 1 1  C MM!  a QC rc^"U4SjS[5n/mU"5n[R"U5nURX25 UR TS/5 g)Nc">\rSrSrU4SjrSrg)(TestCopy.test_deepcopy_reduce..CiOc(>TRS5 grdrgrs rrs3TestCopy.test_deepcopy_reduce..C.__reduce__PrnrrNNrrwsrr3rOrrr3rerrzs @rtest_deepcopy_reduceTestCopy.test_deepcopy_reduceNsI    C MM!  a QC rc"SS[5nU"5nUR[R[RU5 g)Nc\rSrSrSrSrg)&TestCopy.test_deepcopy_cant..CiZcnURS5(a [U5e[RX5$rrrs rr7TestCopy.test_deepcopy_cant..C.__getattribute__[rrrNNrrNrrr3rZrrr3)r=rVrrrjrs rtest_deepcopy_cantTestCopy.test_deepcopy_cantYs1 ; ; C $**dmmQ7rc"SS5nSnSS[SSS-SS S S S S SURU[S5[[ 5/nUH)nUR [ R"U5U5 M+ g)Nc\rSrSrSrg)/TestCopy.test_deepcopy_atomic..NewStyleierNNrrNrrrrerrrcgrrNrNrrr(TestCopy.test_deepcopy_atomic..fgrr.rrrrTFrsbytesrrr)rrrrrrrrj)rrrrr"s rtest_deepcopy_atomicTestCopy.test_deepcopy_atomicdsn   sNB3dE27M1::59c8:7A MM$--*A .rcSS/S/n[R"U5nURX!5 URX5 URUSUS5 gNrerrrrrjr rZr!s rtest_deepcopy_listTestCopy.test_deepcopy_listoQVQK MM!    1qt$rc /nURU5 [R"U5n[HnUR [ X2U5 M UR X!5 URUSU5 UR[U5S5 grn) rhrrj comparisonsrVRecursionErrorrZrr lenrr"r#ops rtest_deepcopy_reflexive_list%TestCopy.test_deepcopy_reflexive_listvsp   MM! B   nbQ 7  adA Q#rcVSn[R"U5nURX5 gNrNrrjrr!s rtest_deepcopy_empty_tuple"TestCopy.test_deepcopy_empty_tuples!  MM!  arcSS/S4n[R"U5nURX!5 URX5 URUSUS5 grrr!s rtest_deepcopy_tupleTestCopy.test_deepcopy_tuplerrcVSn[R"U5nURX5 g)N)rerrrr!s r!test_deepcopy_tuple_of_immutables*TestCopy.test_deepcopy_tuple_of_immutabless!  MM!  arc(/4nUSRU5 [R"U5n[HnUR [ X2U5 M UR X!5 UR USUS5 URUSSU5 gNr)rhrrjrrVrrZrrs rtest_deepcopy_reflexive_tuple&TestCopy.test_deepcopy_reflexive_tuples~ E ! A MM! B   nbQ 7  1qt$ ad1gq!rcSS/SS.n[R"U5nURX!5 URX5 URUSUS5 g)Nrerrrr,rr!s rtest_deepcopy_dictTestCopy.test_deepcopy_dictsRF1 % MM!    51U8,rcN0nXS'[R"U5n[HnUR[X2U5 M [ HnUR[ X2U5 M URX!5 URUSU5 UR[U5S5 g)Nr,re) rrjorder_comparisonsrVrWequality_comparisonsrrZrr rrs rtest_deepcopy_reflexive_dict%TestCopy.test_deepcopy_reflexive_dicts % MM! #B   i 2$&B   nbQ 7'  ah" Q#rcz0n/n[R"X!5nURU[U5SU5 gr)rrjridrrr"r#s rtest_deepcopy_keepalive TestCopy.test_deepcopy_keepalives5  MM! " d2d8nQ'+rc"0n/SQn[R"X!5nURX25 UR[U5S5 0nS/n[R"X!5nURX25 UR[U5S5 g)N)rerrrr)rrjr rrs r!test_deepcopy_dont_memo_immutable*TestCopy.test_deepcopy_dont_memo_immutablesx  MM! "  TA& H MM! "  TA&rc"SS5nU"S/5n[R"U5nURX25 URURUR5 g)Nc \rSrSrSrSrSrg).TestCopy.test_deepcopy_inst_vanilla..CicXlgrr+r-s rr.7TestCopy.test_deepcopy_inst_vanilla..C.__init__r0rc4URUR:H$rr+rs rr5TestCopy.test_deepcopy_inst_vanilla..C.__eq__rrr+NrrNrrr3rrrr3rrrjr rZr,r s rtest_deepcopy_inst_vanilla#TestCopy.test_deepcopy_inst_vanillasM - - rdG MM!   &rc^"U4SjS5mT"S/5n[R"U5nURX!5 URX!5 URURUR5 g)Nc.>\rSrSrSrU4SjrSrSrg)/TestCopy.test_deepcopy_inst_deepcopy..CicXlgrr+r-s rr.8TestCopy.test_deepcopy_inst_deepcopy..C.__init__r0rcR>T"[R"URU55$r)rrjr,rs rr.C.__deepcopy__stxx677rc4URUR:H$rr+rs rr6TestCopy.test_deepcopy_inst_deepcopy..C.__eq__rrr+N)r7r8r9r:r.rrr;r<srr3rs  8 -rr3rrr?s @rtest_deepcopy_inst_deepcopy$TestCopy.test_deepcopy_inst_deepcopys\ - - rdG MM!    &rc"SS5nU"S/5n[R"U5nURX25 URX25 URURUR5 g)Nc&\rSrSrSrSrSrSrg)2TestCopy.test_deepcopy_inst_getinitargs..CicXlgrr+r-s rr.;TestCopy.test_deepcopy_inst_getinitargs..C.__init__r0rcUR4$rr+rs rrBTestCopy.test_deepcopy_inst_getinitargs..C.__getinitargs__rrc4URUR:H$rr+rs rr9TestCopy.test_deepcopy_inst_getinitargs..C.__eq__rrr+NrrNrrr3rrrr3rrr s rtest_deepcopy_inst_getinitargs'TestCopy.test_deepcopy_inst_getinitargs[ - - rdG MM!    &rc^"SS[5nU"S/5n[R"U5nURX15 UR X25 UR X25 UR UR UR 5 UR UR UR 5 g)Nc&\rSrSrSrSrSrSrg)1TestCopy.test_deepcopy_inst_getnewargs..Cic<[RU5nXlU$rrrs rrH9TestCopy.test_deepcopy_inst_getnewargs..C.__new__rrcUR4$rr+rs rr@TestCopy.test_deepcopy_inst_getnewargs..C.__getnewargs__rrc4URUR:H$rr+rs rr8TestCopy.test_deepcopy_inst_getnewargs..C.__eq__rrr+NrrNrrr3rrrr3rrrrjrr rZr,r s rtest_deepcopy_inst_getnewargs&TestCopy.test_deepcopy_inst_getnewargss - - rdG MM!  a#   & &rcZ"SS[5nU"S/S9n[R"U5nURX15 UR X25 UR X25 UR UR UR 5 UR UR UR 5 g)Nc&\rSrSrSrSrSrSrg)4TestCopy.test_deepcopy_inst_getnewargs_ex..Cic<[RU5nXlU$rrrs rrH.C.__new__rrc"SSUR04$r*r+rs rr+FTestCopy.test_deepcopy_inst_getnewargs_ex..C.__getnewargs_ex__r-rc4URUR:H$rr+rs rr;TestCopy.test_deepcopy_inst_getnewargs_ex..C.__eq__rrr+Nr0rNrrr3r r1rr3rr+rr s r test_deepcopy_inst_getnewargs_ex)TestCopy.test_deepcopy_inst_getnewargs_exs - - 2$K MM!  a#   & &rc"SS5nU"S/5n[R"U5nURX25 URX25 URURUR5 g)Nc&\rSrSrSrSrSrSrg)/TestCopy.test_deepcopy_inst_getstate..CicXlgrr+r-s rr.8TestCopy.test_deepcopy_inst_getstate..C.__init__r0rcSUR0$r;r+rs rr<.C.__getstate__r>rc4URUR:H$rr+rs rr6TestCopy.test_deepcopy_inst_getstate..C.__eq__rrr+NrArNrrr3rrBrr3rrr s rtest_deepcopy_inst_getstate$TestCopy.test_deepcopy_inst_getstaterrc"SS5nU"S/5n[R"U5nURX25 URX25 URURUR5 g)Nc&\rSrSrSrSrSrSrg)/TestCopy.test_deepcopy_inst_setstate..CicXlgrr+r-s rr.8TestCopy.test_deepcopy_inst_setstate..C.__init__r0rcUSUlgr;r+rLs rrN.C.__setstate__ rPrc4URUR:H$rr+rs rr6TestCopy.test_deepcopy_inst_setstate..C.__eq__"rrr+NrSrNrrr3r!rTrr3rrr s rtest_deepcopy_inst_setstate$TestCopy.test_deepcopy_inst_setstaterrc"SS5nU"S/5n[R"U5nURX25 URX25 URURUR5 U"/5n[R"U5nURX25 URX25 URURUR5 g)Nc,\rSrSrSrSrSrSrSrg)8TestCopy.test_deepcopy_inst_getstate_setstate..Ci+cXlgrr+r-s rr.ATestCopy.test_deepcopy_inst_getstate_setstate..C.__init__,r0rcUR$rr+rs rr<ETestCopy.test_deepcopy_inst_getstate_setstate..C.__getstate__.r_rcXlgrr+rLs rrNETestCopy.test_deepcopy_inst_getstate_setstate..C.__setstate__0rbrc4URUR:H$rr+rs rr?TestCopy.test_deepcopy_inst_getstate_setstate..C.__eq__2rrr+NrerNrrr3r,+rfrr3rrr s r$test_deepcopy_inst_getstate_setstate-TestCopy.test_deepcopy_inst_getstate_setstate*s - - rdG MM!    & bE MM!    &rc"SS5nU"5nX"l[R"U5nURX25 UR URU5 g)Nc\rSrSrSrg)0TestCopy.test_deepcopy_reflexive_inst..CiArNNrrNrrr3r9Arrr3)r,rrjrZrr s rtest_deepcopy_reflexive_inst%TestCopy.test_deepcopy_reflexive_inst@sF   C MM!   aeeQrc"SS[5nU"5n[R"U5nURX25 [R"U5nURX25 g)Nc\rSrSrSrSrg)+TestCopy.test_reconstruct_string..CiLcg)NrfrNrs rrs6TestCopy.test_reconstruct_string..C.__reduce__MsrrNNrrNrrr3r>Ls rr3)r=rrrjr s rtest_reconstruct_string TestCopy.test_reconstruct_stringKsJ   C IIaL a MM!  arc6^"U4SjS[5mT"5nSUl[R"U5nURURUR5 [R "U5nURURUR5 g)Nc">\rSrSrU4SjrSrg),TestCopy.test_reconstruct_nostate..CiVc >TS4$rrNr2s rrs7TestCopy.test_reconstruct_nostate..C.__reduce__Ws 2wrrNNrr<srr3rEVs   rr3r)r=r,rrr>rjr?s @rtest_reconstruct_nostate!TestCopy.test_reconstruct_nostateUsf   C IIaL akk1;;/ MM!  akk1;;/rc0^"U4SjS[5mT"5nS/Ul[R"U5nURX!5 [R"U5nURX!5 UR URUR5 g)Nc(>\rSrSrU4SjrSrSrg)*TestCopy.test_reconstruct_state..Ciac">TSUR4$r__dict__r2s rrs5TestCopy.test_reconstruct_state..C.__reduce__b2t}}--rc4URUR:H$rrNrs rr1TestCopy.test_reconstruct_state..C.__eq__d}}66rrNNr7r8r9r:rsrr;r<srr3rLas  . 7rr3rr=r,rr rjrZr?s @rtest_reconstruct_stateTestCopy.test_reconstruct_state`sp 7 7 C IIaL  MM!   &rc0^"U4SjS[5mT"5nS/Ul[R"U5nURX!5 [R"U5nURX!5 UR URUR5 g)Nc.>\rSrSrU4SjrSrSrSrg)3TestCopy.test_reconstruct_state_setstate..Cioc">TSUR4$rrNr2s rrs>TestCopy.test_reconstruct_state_setstate..C.__reduce__prQrc:URRU5 gr)rOupdaterLs rrN@TestCopy.test_reconstruct_state_setstate..C.__setstate__rs $$U+rc4URUR:H$rrNrs rr:TestCopy.test_reconstruct_state_setstate..C.__eq__trTrrNN)r7r8r9r:rsrNrr;r<srr3r[os . , 7rr3rrVr?s @rtest_reconstruct_state_setstate(TestCopy.test_reconstruct_state_setstatensp 7 7 C IIaL  MM!   &rc"SS[5nU"5nX"l[R"U5nUR X25 UR URU5 g)Nc\rSrSrSrg).TestCopy.test_reconstruct_reflexive..CirNNrrNrrr3rgrrr3)r=r,rrjrZrr s rtest_reconstruct_reflexive#TestCopy.test_reconstruct_reflexive~sH   C MM!   aeeQrc^"U4SjS[5mT"SS/S/5n[R"U5nURX5 URX5 UR USUS5 [R "U5nURX5 URX5 URUSUS5 g)Nc(>\rSrSrU4SjrSrSrg)&TestCopy.test_reduce_4tuple..Cic6>TSUR[U54$r)rOiterr2s rrs1TestCopy.test_reduce_4tuple..C.__reduce__s2t}}d4j99rcp[U5[U5:H=(a URUR:H$r)listrOrs rr-TestCopy.test_reduce_4tuple..C.__eq__,T d5k18 79rrNNrUr<srr3rls  : 9rr3rerrr)rqrr rZrrjr?s @rtest_reduce_4tupleTestCopy.test_reduce_4tuples 9 9 1vqkN IIaL   adAaD! MM!    1qt$rc^"U4SjS[5mT"SSS/4S/5n[R"U5nURX5 URX5 UR USUS5 [R "U5nURX5 URX5 URUSUS5 g)Nc(>\rSrSrU4SjrSrSrg)&TestCopy.test_reduce_5tuple..CicB>TSURSUR54$r)rOitemsr2s rrs1TestCopy.test_reduce_5tuple..C.__reduce__s2t}}dDJJLAArcp[U5[U5:H=(a URUR:H$r)dictrOrs rr-TestCopy.test_reduce_5tuple..C.__eq__rsrrNNrUr<srr3rxs B 9rr3r,rer)rr)r}rr rZrrjr?s @rtest_reduce_5tupleTestCopy.test_reduce_5tuples 9 9 1v + , IIaL   ah%) MM!    51U8,rcT^^^U4Sjm"UU4SjS5mT"5nTR[5 [R"U5 SSS5 TR[5 [R"U5 SSS5 g!,(df  NC=f!,(df  g=f)Nc(>TRS5 grprq)argskwargsrs r state_setter1TestCopy.test_reduce_6tuple..state_setters II+ ,rc$>\rSrSrUU4SjrSrg)&TestCopy.test_reduce_6tuple..Cic(>TSURSST4$rrN)rr3rs rrs1TestCopy.test_reduce_6tuple..C.__reduce__s"dmmT4EErrNNr)r3rsrr3rs F Frr3rVrWrrj)rr"r3rs` @@rtest_reduce_6tupleTestCopy.test_reduce_6tuplesm - F F C   y ) IIaL*   y ) MM! * )* ) ) )sB(B B B'cB^"U4SjS5mT"5nUR[5 [R"U5 SSS5 UR[5 [R"U5 SSS5 g!,(df  NC=f!,(df  g=f)Nc">\rSrSrU4SjrSrg)+TestCopy.test_reduce_6tuple_none..Cic(>TSURSSS4$rrNr2s rrs6TestCopy.test_reduce_6tuple_none..C.__reduce__s"dmmT4==rrNNrr<srr3rs  > >rr3rrs @rtest_reduce_6tuple_none TestCopy.test_reduce_6tuple_nonesf > > C   y ) IIaL*   y ) MM! * )* ) ) )sA?B? B  Bc"SS[5nU"5nS/Ul[R"U5nURURUR5 g)Nc\rSrSrS/rSrg)#TestCopy.test_copy_slots..Cir,rNNr7r8r9r: __slots__r;rNrrr3r Irr3r)r=r,rrr s rtest_copy_slotsTestCopy.test_copy_slotssA  C IIaL aeeQUU#rc"SS[5nU"5nS/Ul[R"U5nUR URUR5 UR URUR5 g)Nc\rSrSrS/rSrg)'TestCopy.test_deepcopy_slots..Cir,rNNrrNrrr3rrrr3r)r=r,rrjr rZr s rtest_deepcopy_slotsTestCopy.test_deepcopy_slotss\  C MM!  & &rcf"SS[5nU"SS0S9n[R"U5nURX#5 URURUR5 UR X#5 SUS'UR X#5 UR URUR5 g)Nc8^\rSrSrSU4SjjrU4SjrSrU=r$)/TestCopy.test_deepcopy_dict_subclass..Cicr>U(d0n[UR55Ul[TU]U5 gr)rqkeys_keyssuperr.)rdr>s rr.8TestCopy.test_deepcopy_dict_subclass..C.__init__s)A!!&&(^  #rcz>[TU]X5 XR;aURRU5 ggr)r __setitem__rrh)rkeyitemr>s rr;TestCopy.test_deepcopy_dict_subclass..C.__setitem__s1#C.jj(JJ%%c*)r)rr)r7r8r9r:r.rr; __classcell__)r>s@rr3rs $  + +rr3r,r)rrer)r}rrjr rrZassertNotEqualr s rtest_deepcopy_dict_subclass$TestCopy.test_deepcopy_dict_subclasss + + q N MM!   !''* % A! AGGQWW-rc"SS[5nU"SS/S/5nSS/Ul[R"U5nUR[U5[U55 URURUR5 UR USUS5 UR URUR5 g) Nc\rSrSrSrg)+TestCopy.test_copy_list_subclass..CirNNrrNrrr3rrrr3rerrrr)rqr,rr rr s rtest_copy_list_subclass TestCopy.test_copy_list_subclasss   1vqkNA IIaL a$q'* & adAaD! aeeQUU#rc"SS[5nU"SS/S/5nSS/Ul[R"U5nUR [U5[U55 UR URUR5 UR USUS5 UR URUR5 g) Nc\rSrSrSrg)/TestCopy.test_deepcopy_list_subclass..CirNNrrNrrr3rrrr3rerrrrr)rqr,rrjr rZr s rtest_deepcopy_list_subclass$TestCopy.test_deepcopy_list_subclasss   1vqkNA MM!  a$q'* & 1qt$ &rc"SS[5nU"/SQ5nUR[U5S5 [R"U5nUR[U5S5 g)Nc\rSrSrSrg),TestCopy.test_copy_tuple_subclass..CirNNrrNrrr3rrrr3r)tupler rr s rtest_copy_tuple_subclass!TestCopy.test_copy_tuple_subclasssL   iL q9- IIaL q9-rc4"SS[5nU"SS/S/5nUR[U5SS/S45 [R"U5nUR[U5SS/S45 UR X#5 UR USUS5 g)Nc\rSrSrSrg)0TestCopy.test_deepcopy_tuple_subclass..CirNNrrNrrr3rrrr3rerrr)rr rrjrZr s rtest_deepcopy_tuple_subclass%TestCopy.test_deepcopy_tuple_subclasss   1vqkN qQFA;/ MM!  qQFA;/  1qt$rcv"SS[5nUR[[RU"55 g)Nc\rSrSrSrSrg)-TestCopy.test_getstate_exc..EvilStateic[S5e)Nzain't got no stickin' state) ValueErrorrs rr<:TestCopy.test_getstate_exc..EvilState.__getstate__s !>??rrNN)r7r8r9r:r<r;rNrr EvilStaters @rr)r=rVrr)rrs rtest_getstate_excTestCopy.test_getstate_excs* @ @ *dii=rcUR[R"[5[5 SnUR[R"U5U5 SnUR[R"U5U5 g)Nc X-$rrNr"r#s rr,(TestCopy.test_copy_function..fooaczrcgrrNrNrr-TestCopy.test_copy_function..dr)r r global_foorr,rs rtest_copy_functionTestCopy.test_copy_functionsS :. ;! 3- 3-rcUR[R"[5[5 SnUR[R"U5U5 SnUR[R"U5U5 g)Nc X-$rrNrs rr,,TestCopy.test_deepcopy_function..foorrcgrrNrNrrr1TestCopy.test_deepcopy_function..rr)r rrjrrs rtest_deepcopy_functionTestCopy.test_deepcopy_functionsU z2J?! s+S1 s+S1rc"SS[5nU"5n[R"U5nU"U5nURXT5 AU"U5nURXT5 g)Nc\rSrSrSrg)"TestCopy._check_weakref..Ci#rNNrrNrrr3r#rrr3)r=weakrefrefr)r_copyr3rKr"r#s r_check_weakrefTestCopy._check_weakref"sP  c KK  !H a  !H arcBUR[R5 gr)rrrs rtest_copy_weakrefTestCopy.test_copy_weakref-s DII&rcBUR[R5 gr)rrrjrs rtest_deepcopy_weakrefTestCopy.test_deepcopy_weakref0s DMM*rc."SS[5n[S5Vs/sH o2"5PM snupEpgU"5nXXU'XxU'[R"U5n URX5 UR X5 UR XU5 UR XU5 UR [ U 5S5 AA[ R"5 UR [ U 5S5 U"5U"5pXU 'URX5 gs snf)Nc\rSrSrSrg)(TestCopy._check_copy_weakdict..Ci4rNNrrNrrr3r4rrr3rrre) r=rrrZr rr gc_collect assertNotIn) r _dicttyper3iabrkruvr"r#s r_check_copy_weakdictTestCopy._check_copy_weakdict3s  #(8,8aac8, a K!! IIaL   q! q! Q# q Q#sAC1! !-sDcBUR[R5 gr)rrWeakKeyDictionaryrs rtest_copy_weakkeydictTestCopy.test_copy_weakkeydictHs !!'";";.CiOcXlgrrrrs rr.6TestCopy.test_deepcopy_weakkeydict..C.__init__PrrNr7r8r9r:r.r;rNrrr3r O rr3rrre) r=rrrrrjrr rrZrr r) rr3rrrrkrrrs rtest_deepcopy_weakkeydict"TestCopy.test_deepcopy_weakkeydictNs  %*!H-HqadH- a  % % '!! MM!  A! Q# q! q! % %  Q#.sD=c"SS[5n[S5Vs/sH o!"U5PM snup4pV[R"5nXGU'XgU'[R "U5nUR X5 UR[U5S5 [UR5SS9uupupURX5 URU RUR5 URX5 URX5 URU RUR5 URX5 A A A A A[R"5 UR[U5S5 gs snf)Nc\rSrSrSrSrg)/TestCopy.test_deepcopy_weakvaluedict..CiccXlgrrrs rr.8TestCopy.test_deepcopy_weakvaluedict..C.__init__drrrNrrNrrr3rcrrr3rrc USR$rr)pairs rr6TestCopy.test_deepcopy_weakvaluedict..ns DGIIr)rre)r=rrrrrjrr rsortedrzrZrrr r) rr3rrrrkrrrr"r#zts rtest_deepcopy_weakvaluedict$TestCopy.test_deepcopy_weakvaluedictbs,  %*!H-HqadH- a  ' ' )!! MM!  A! Q# /EF  acc" a  acc" a q!Q  Q#%.sE9c6"SS[5nU"5nURUl[R"U5nUR URUR5 UR URRU5 UR5 g)Nc\rSrSrSrSrg)0TestCopy.test_deepcopy_bound_method..Fooi{cgrrNrs rm2TestCopy.test_deepcopy_bound_method..Foo.m|srrNN)r7r8r9r:r'r;rNrrFoor%{s rr))r=r'rrrjr r__self__)rr)rgs rtest_deepcopy_bound_method#TestCopy.test_deepcopy_bound_methodzsg &  Ecc MM!  acc" accllA& rrNN)Sr7r8r9r:rr$r@r]r{rrrrrrrrrrrr r!r2rCrUrgrkrorwrrrrrrrrrrrrrrrrrrrrrrr(r5r:rArHrWrcrhrtrrrrrrrrrrrrrrrrrrrrr!r,r;rNrrr r s;  '' ! !4 +'' * * *'"'" * **$ " . '' ! !8 /%$ % "- $, ' ' ' ''$'$ ' '',  0 ''  %"-" $'.( $ '.%> .2 '+*=?$($0 rr c,\rSrSrSrSrSrSrSrg) TestReplaceicUR[[RS5 UR[[R/5 UR[[R05 SnUR[[RU5 "SS5nUR[[RU5 UR[[RU"55 g)NrecgrrNrNrrr'TestReplace.test_unsupported..fsrc\rSrSrSrg)'TestReplace.test_unsupported..AirNNrrNrrAr4srr5)rVrWrreplace)rrr5s rtest_unsupportedTestReplace.test_unsupporteds )T\\15 )T\\26 )T\\26 )T\\15  )T\\15 )T\\137rc "SS5n[SSS5nU"SS5nURU"[R"U55S5 URU"[R"US S 95S 5 URU"[R"US S 95S5 URU"[R"US S S95S5 g)Nc*\rSrSrSSjrSrSrSrg)*TestReplace.test_replace_method..AicH[RU5nXlX#lU$r)r=rHr"r#)rJr"r#rs rrH2TestReplace.test_replace_method..A.__new__s~~c* rc@URUR-Ulgrr"r#r)rrrs rr.3TestReplace.test_replace_method..A.__init__s$&&rcURSUR5nURSUR5n[U5"X#5$)Nr"r#)getr"r#r[)rchangesr"r#s r __replace__6TestReplace.test_replace_method..A.__replace__s9KKTVV,KKTVV,Dz!''rr?Nr)r7r8r9r:rHr.rDr;rNrrr5r;s   ) (rr5r"r#r )rGrH!rer")rerHrr#)rGr rr)r r rr6)rr5attrsrs rtest_replace_methodTestReplace.test_replace_methods ( (3S) b"I t||A/> t||A34kB t||A34kB t||Aa899Erc SSKJn SSKJn U"SSSS9n"SS U5n"S S U5nX4U4GH'nUR US 9 U"S S5nUR Xv5 UR [R"U5S5 UR [R"U5U5 UR [R"USS9S5 UR [R"USS9S5 UR [R"USSS9S5 UR[S5 [R"USSS9 SSS5 SSS5 GM* g!,(df  N=f!,(df  GMN=f)Nr) namedtuple) NamedTuplePointzx yrF)defaultsc\rSrSrSrg)9TestReplace.test_namedtuple..PointFromInheritanceirNNrrNrrPointFromInheritancerWrrrXc.\rSrSr%\\S'Sr\\S'Srg)3TestReplace.test_namedtuple..PointFromClassir"rr#rNNr7r8r9r:r__annotations__r#r;rNrrPointFromClassrZsFAsJrr])rTrGrHrGrHrerJrerHrrLrGrrrzunexpected field namer"r) collectionsrRtypingrSsubTestrr rr6assertRaisesRegexrW)rrRrS PointFromCallrXr]rTps rtest_namedtupleTestReplace.test_namedtuples,*%"7EDA  =  Z $>JEE*"bM%%a/  a(;%%dll1ou=  a1!5w?  a1!5w?  a1!:FC++I7NOLLaq1P+*KPO+*s%C-E-/EE- E* &E-- E= c @SSKJn U"SS55n[SS5nU"SS5nURU"[R "U55S 5 URU"[R "US S 95S 5 URU"[R "US S95S5 URU"[R "US S S95S5 UR [S5 [R "US S S9 SSS5 g!,(df  g=f)Nr) dataclassc.\rSrSr%\\S'Sr\\S'Srg)%TestReplace.test_dataclass..Cir"rr#rNNr[rNrrr3rmsFAsJrr3r"r#rGrHr^rerJr_rrLr`rrzunexpected keyword argumentra) dataclassesrkr r rr6rerW)rrkr3rNrks rtest_dataclassTestReplace.test_dataclasss)     3$ b"I t||A/: t||A34g> t||A34g> t||Aa896B  # #I/L M LLaq )N M Ms /D DrNN) r7r8r9r:r7rOrhror;rNrrr/r/s8F.2**rr/c\rSrSrSrSrg) MiscTestCaseic<[R"U[SS1S9 g)Ndispatch_tabler) not_exported)r check__all__rrs r test__all__MiscTestCase.test__all__sT47G6QRrrNN)r7r8r9r:rwr;rNrrrrrrsSrrrc X-$rrNrs rrrsQSjr__main__)rrXrroperatorrrrrrrr unittesttestr rrrTestCaser r/rrrr7mainrNrrrs  777BN2v"66 s x  s lF*(##F*RS8$$S! z MMOr