+
    Biv                     @   R t ^ RIt^ RIt^ RIt^ RIt^ RIHtHtHtH	t	H
t
HtHt ^ RIt^ RIHt ]]]]	3t]
]3t]],           t ! R R]P&                  4      t ! R R]P&                  4      t ! R R	]P&                  4      tR
 t]R8X  d   ]P2                  ! 4        R# R# )zUnit tests for the copy module.N)leltgegteqne
attrgetter)supportc                     a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR t R t!R t"R  t#]$PJ                  ! 4       ]$PL                  ! 4       R! 4       4       t'R" t(R# t)R$ t*]$PJ                  ! 4       ]$PL                  ! 4       R% 4       4       t+R& t,]$PJ                  ! 4       ]$PL                  ! 4       R' 4       4       t-R( t.R) t/R* t0R+ t1R, t2R- t3R. t4R/ t5R0 t6R1 t7R2 t8R3 t9R4 t:R5 t;R6 t<R7 t=R8 t>R9 t?R: t@R; tAR< tBR= tCR> tDR? tER@ tFRA tGRB tHRC tIRD tJRE tKRF tLRG tMRH tNRI tORJ tPRK tQRL tRRM tSRN tTROtUV tVRP# )QTestCopyc                    V P                  \        P                  \        P                  4       V P	                  \        P                  \
        4       R # N)assertIscopyErrorerrorassertIsSubclass	Exceptionselfs   &%/usr/lib/python3.14/test/test_copy.pytest_exceptionsTestCopy.test_exceptions   s,    djj$**-djj)4    c                X    ^*p\         P                   ! V4      pV P                  W4       R# *   N)r   assertEqualr   xys   &  r   test_copy_basicTestCopy.test_copy_basic   s"    IIaLr   c                   a  ! V3R  lR\         4      oS! ^*4      p\        P                  ! V4      pV P                  VP                  VP                  4       V P                  VP                  VP                  4       R# )c                   4   <a  ] tR t^ t o R tV3R ltRtV tR# )"TestCopy.test_copy_copy.<locals>.Cc                    Wn         R # r   foor   r(   s   &&r   __init__+TestCopy.test_copy_copy.<locals>.C.__init__!       r   c                (   < S! V P                   4      # r   r'   r   Cs   &r   __copy__+TestCopy.test_copy_copy.<locals>.C.__copy__#       {"r   r'   N)__name__
__module____qualname____firstlineno__r*   r0   __static_attributes____classdictcell____classdict__r/   s   @r   r/   r%       s     # #r   r/   N)objectr   r   	__class__r(   r   r   r    r/   s   &  @r   test_copy_copyTestCopy.test_copy_copy   sW    	# 	#
 bEIIaLakk2&r   c                  a  ! R  R\         4      oV3R lpS! ^*4      pV P                  \        \        P                  V4       \        P
                  ! SVS4       \        P                  ! V4      pV P                  W#4       V P                  \        V4      S4       V P                  VP                  VP                  4       R# )c                   &   a  ] tR t^+t o R tRtV tR# )&TestCopy.test_copy_registry.<locals>.Cc                <    \         P                  V 4      pWn        V# r   r;   __new__r(   clsr(   objs   && r   rE   .TestCopy.test_copy_registry.<locals>.C.__new__,       nnS)
r    Nr3   r4   r5   r6   rE   r7   r8   r:   s   @r   r/   rB   +         r   r/   c                 "   < SV P                   33# r   r'   rH   r/   s   &r   pickle_C-TestCopy.test_copy_registry.<locals>.pickle_C0       z?"r   N)
r;   assertRaises	TypeErrorr   copyregpickleassertIsNotr   typer(   r   rQ   r   r    r/   s   &   @r   test_copy_registryTestCopy.test_copy_registry*   s    	 	
	#bE)TYY2q(A&IIaLa!$&r   c                   a  ! V3R  lR\         4      p. oV! 4       p\        P                  ! V4      pV P                  W24       V P                  S^.4       R# )c                   4   <a  ] tR t^;t o V3R ltR tRtV tR# )'TestCopy.test_copy_reduce_ex.<locals>.Cc                *   < SP                  ^4       R#     appendr   protocs   &&r   __reduce_ex__5TestCopy.test_copy_reduce_ex.<locals>.C.__reduce_ex__<       r   c                (    V P                  R 4       R# zshouldn't call thisNfailr   s   &r   
__reduce__2TestCopy.test_copy_reduce_ex.<locals>.C.__reduce__?       		/0r   rK   Nr3   r4   r5   r6   ri   rp   r7   r8   r:   rh   s   @r   r/   r_   ;        1 1r   r/   Nr;   r   r   r   r   r/   r   r    rh   s   &   @r   test_copy_reduce_exTestCopy.test_copy_reduce_ex:   sH    	1 	1 CIIaLaQC r   c                   a  ! V3R  lR\         4      p. oV! 4       p\        P                  ! V4      pV P                  W24       V P                  S^.4       R# )c                   .   <a  ] tR t^Ht o V3R ltRtV tR# )$TestCopy.test_copy_reduce.<locals>.Cc                *   < SP                  ^4       R# ra   rd   r   rh   s   &r   rp   /TestCopy.test_copy_reduce.<locals>.C.__reduce__I   rk   r   rK   Nr3   r4   r5   r6   rp   r7   r8   rt   s   @r   r/   r|   H         r   r/   Nrv   rw   s   &   @r   test_copy_reduceTestCopy.test_copy_reduceG   sH    	 	 CIIaLaQC r   c                     ! R  R\         4      pV! 4       pV P                  \        P                  \        P                  V4       R# )c                   &   a  ] tR t^St o R tRtV tR# )"TestCopy.test_copy_cant.<locals>.Cc                p    VP                  R 4      '       d   \        V4      h\        P                  W4      # __reduce
startswithAttributeErrorr;   __getattribute__r   names   &&r   r   3TestCopy.test_copy_cant.<locals>.C.__getattribute__T   -    ??:..(....t::r   rK   Nr3   r4   r5   r6   r   r7   r8   rM   s   @r   r/   r   S        ; ;r   r/   N)r;   rT   r   r   r   r/   r   s   &  r   test_copy_cantTestCopy.test_copy_cantR   s1    	; 	;
 C$**dii3r   c                l    ! R  R4      pR p ! R R\         P                  R7      pRR\        ^*^^d,          RR	R
RRRVP                  R\	        \        R4      4      \        ^
4      \        ^^
^4      V\        V\        4       .pV F)  pV P                  \        P                  ! V4      V4       K+  	  R# )c                       ] tR t^^tRtR# )+TestCopy.test_copy_atomic.<locals>.NewStylerK   Nr3   r4   r5   r6   r7   rK   r   r   NewStyler   ^       r   r   c                      R # r   rK   rK   r   r   f$TestCopy.test_copy_atomic.<locals>.f`       r   c                       ] tR t^btRtR# )0TestCopy.test_copy_atomic.<locals>.WithMetaclassrK   Nr   rK   r   r   WithMetaclassr   b   r   r   r   	metaclassN.Q	@TF              ?hello   helloሴs   world   )abcABCMetaNotImplemented__code__bytesrangeslicemaxpropertyr   r   )r   r   r   r   testsr   s   &     r   test_copy_atomicTestCopy.test_copy_atomic]   s    	 			ckk 	sNQVT4-5s,eBiq"a3xz	;
 AMM$))A,* r   c                    . ROp\         P                   ! V4      pV P                  W!4       V P                  W!4       . p\         P                   ! V4      pV P                  W!4       V P                  W!4       R# )rb   Nrb         r   r   rX   r   s   &  r   test_copy_listTestCopy.test_copy_listl   s^    IIaLIIaLr   c                    RpV P                  \        P                  ! V4      V4       RpV P                  \        P                  ! V4      V4       ^^^. 3pV P                  \        P                  ! V4      V4       R# )rb   Nr   rK   )r   r   r   r   s   & r   test_copy_tupleTestCopy.test_copy_tuplev   s[    diilA&diilA&1bMdiilA&r   c                    R ^R^/p\         P                   ! V4      pV P                  W!4       V P                  W!4       / p\         P                   ! V4      pV P                  W!4       V P                  W!4       R# r(   barNr   r   s   &  r   test_copy_dictTestCopy.test_copy_dict~   sg    Aua IIaLIIaLr   c                   0 Rmp\         P                   ! V4      pV P                  W!4       V P                  W!4       \        4       p\         P                   ! V4      pV P                  W!4       V P                  W!4       R# rb   N>   rb   r   r   )r   r   rX   setr   s   &  r   test_copy_setTestCopy.test_copy_set   s`    IIaLEIIaLr   c                    \        0 Rm4      pV P                  \        P                  ! V4      V4       \        4       pV P                  \        P                  ! V4      V4       R# r   )	frozensetr   r   r   s   & r   test_copy_frozensetTestCopy.test_copy_frozenset   s?    i diilA&KdiilA&r   c                   \        R 4      p\        P                  ! V4      pV P                  W!4       V P                  W!4       \        4       p\        P                  ! V4      pV P                  W!4       V P                  W!4       R# )s   abcN)	bytearrayr   r   rX   r   s   &  r   test_copy_bytearrayTestCopy.test_copy_bytearray   se    fIIaLKIIaLr   c                v     ! R  R4      pV! ^*4      pV P                  \        P                  ! V4      V4       R# )c                   ,   a  ] tR t^t o R tR tRtV tR# )*TestCopy.test_copy_inst_vanilla.<locals>.Cc                    Wn         R # r   r'   r)   s   &&r   r*   3TestCopy.test_copy_inst_vanilla.<locals>.C.__init__   r,   r   c                4    V P                   VP                   8H  # r   r'   r   others   &&r   __eq__1TestCopy.test_copy_inst_vanilla.<locals>.C.__eq__       xx599,,r   r'   Nr3   r4   r5   r6   r*   r   r7   r8   rM   s   @r   r/   r           - -r   r/   Nr   r   r   s   &  r   test_copy_inst_vanillaTestCopy.test_copy_inst_vanilla   s/    	- 	-
 bE1q)r   c                ~   a  ! V3R  lR4      oS! ^*4      pV P                  \        P                  ! V4      V4       R# )c                   :   <a  ] tR t^t o R tV3R ltR tRtV tR# )'TestCopy.test_copy_inst_copy.<locals>.Cc                    Wn         R # r   r'   r)   s   &&r   r*   0TestCopy.test_copy_inst_copy.<locals>.C.__init__   r,   r   c                (   < S! V P                   4      # r   r'   r.   s   &r   r0   0TestCopy.test_copy_inst_copy.<locals>.C.__copy__   r2   r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   .TestCopy.test_copy_inst_copy.<locals>.C.__eq__   r   r   r'   N)	r3   r4   r5   r6   r*   r0   r   r7   r8   r9   s   @r   r/   r      s     #- -r   r/   Nr   r   r   r/   s   & @r   test_copy_inst_copyTestCopy.test_copy_inst_copy   s0    	- 	- bE1q)r   c                v     ! R  R4      pV! ^*4      pV P                  \        P                  ! V4      V4       R# )c                   2   a  ] tR t^t o R tR tR tRtV tR# ).TestCopy.test_copy_inst_getinitargs.<locals>.Cc                    Wn         R # r   r'   r)   s   &&r   r*   7TestCopy.test_copy_inst_getinitargs.<locals>.C.__init__   r,   r   c                    V P                   3# r   r'   r   s   &r   __getinitargs__>TestCopy.test_copy_inst_getinitargs.<locals>.C.__getinitargs__       {"r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   5TestCopy.test_copy_inst_getinitargs.<locals>.C.__eq__   r   r   r'   N	r3   r4   r5   r6   r*   r   r   r7   r8   rM   s   @r   r/   r           #- -r   r/   Nr   r   s   &  r   test_copy_inst_getinitargs#TestCopy.test_copy_inst_getinitargs   /    	- 	- bE1q)r   c                    ! R  R\         4      pV! ^*4      p\        P                  ! V4      pV P                  W14       V P                  W24       V P	                  W24       V P                  VP
                  VP
                  4       R# )c                   2   a  ] tR t^t o R tR tR tRtV tR# )-TestCopy.test_copy_inst_getnewargs.<locals>.Cc                <    \         P                  V 4      pWn        V# r   intrE   r(   rG   r(   r   s   && r   rE   5TestCopy.test_copy_inst_getnewargs.<locals>.C.__new__       {{3'r   c                    V P                   3# r   r'   r   s   &r   __getnewargs__<TestCopy.test_copy_inst_getnewargs.<locals>.C.__getnewargs__       xxy r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   4TestCopy.test_copy_inst_getnewargs.<locals>.C.__eq__   r   r   r'   N	r3   r4   r5   r6   rE   r
  r   r7   r8   rM   s   @r   r/   r          !- -r   r/   Nr  r   assertIsInstancer   rX   r(   r   r/   r   r    s   &   r   test_copy_inst_getnewargs"TestCopy.test_copy_inst_getnewargs   sh    	- 	- bEIIaLa#&r   c                    ! R  R\         4      pV! ^*R7      p\        P                  ! V4      pV P                  W14       V P                  W24       V P	                  W24       V P                  VP
                  VP
                  4       R# )c                   2   a  ] tR t^t o R tR tR tRtV tR# )0TestCopy.test_copy_inst_getnewargs_ex.<locals>.Cc               <    \         P                  V 4      pWn        V# r   r  r  s   &$ r   rE   8TestCopy.test_copy_inst_getnewargs_ex.<locals>.C.__new__   r  r   c                "    RR V P                   /3# r(   rK   r'   r   s   &r   __getnewargs_ex__BTestCopy.test_copy_inst_getnewargs_ex.<locals>.C.__getnewargs_ex__       E488,,,r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   7TestCopy.test_copy_inst_getnewargs_ex.<locals>.C.__eq__   r   r   r'   N	r3   r4   r5   r6   rE   r  r   r7   r8   rM   s   @r   r/   r          -- -r   r/   r'   Nr  r  s   &   r   test_copy_inst_getnewargs_ex%TestCopy.test_copy_inst_getnewargs_ex   sh    	- 	- "IIIaLa#&r   c                v     ! R  R4      pV! ^*4      pV P                  \        P                  ! V4      V4       R# )c                   2   a  ] tR t^t o R tR tR tRtV tR# )+TestCopy.test_copy_inst_getstate.<locals>.Cc                    Wn         R # r   r'   r)   s   &&r   r*   4TestCopy.test_copy_inst_getstate.<locals>.C.__init__   r,   r   c                    R V P                   /# r'   r'   r   s   &r   __getstate__8TestCopy.test_copy_inst_getstate.<locals>.C.__getstate__       txx((r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   2TestCopy.test_copy_inst_getstate.<locals>.C.__eq__   r   r   r'   N	r3   r4   r5   r6   r*   r,  r   r7   r8   rM   s   @r   r/   r(          )- -r   r/   Nr   r   s   &  r   test_copy_inst_getstate TestCopy.test_copy_inst_getstate   r   r   c                v     ! R  R4      pV! ^*4      pV P                  \        P                  ! V4      V4       R# )c                   2   a  ] tR t^t o R tR tR tRtV tR# )+TestCopy.test_copy_inst_setstate.<locals>.Cc                    Wn         R # r   r'   r)   s   &&r   r*   4TestCopy.test_copy_inst_setstate.<locals>.C.__init__   r,   r   c                "    VR ,          V n         R# r(   Nr'   r   states   &&r   __setstate__8TestCopy.test_copy_inst_setstate.<locals>.C.__setstate__        <r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   2TestCopy.test_copy_inst_setstate.<locals>.C.__eq__   r   r   r'   N	r3   r4   r5   r6   r*   r>  r   r7   r8   rM   s   @r   r/   r7          (- -r   r/   Nr   r   s   &  r   test_copy_inst_setstate TestCopy.test_copy_inst_setstate   r   r   c                     ! R  R4      pV! ^*4      pV P                  \        P                  ! V4      V4       V! R4      pV P                  \        P                  ! V4      V4       R# )c                   8   a  ] tR t^t o R tR tR tR tRtV t	R# )4TestCopy.test_copy_inst_getstate_setstate.<locals>.Cc                    Wn         R # r   r'   r)   s   &&r   r*   =TestCopy.test_copy_inst_getstate_setstate.<locals>.C.__init__   r,   r   c                    V P                   # r   r'   r   s   &r   r,  ATestCopy.test_copy_inst_getstate_setstate.<locals>.C.__getstate__       xxr   c                    Wn         R # r   r'   r<  s   &&r   r>  ATestCopy.test_copy_inst_getstate_setstate.<locals>.C.__setstate__        r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   ;TestCopy.test_copy_inst_getstate_setstate.<locals>.C.__eq__  r   r   r'   N
r3   r4   r5   r6   r*   r,  r>  r   r7   r8   rM   s   @r   r/   rI           !- -r   r/   g        Nr   r   s   &  r    test_copy_inst_getstate_setstate)TestCopy.test_copy_inst_getstate_setstate   sP    	- 	- bE1q)cF1q)r   c                X    ^*p\         P                  ! V4      pV P                  W!4       R# r   )r   deepcopyr   r   s   &  r   test_deepcopy_basicTestCopy.test_deepcopy_basic  s#    MM!r   c                    . pW.p\         P                  ! V4      pV P                  W!4       V P                  W!4       V P                  V^ ,          V^ ,          4       V P	                  V^ ,          V^,          4       R#     N)r   rY  r   rX   r   r   s   &  r   test_deepcopy_memoTestCopy.test_deepcopy_memo  sh     FMM!1qt$adAaD!r   c                     ! R  R\         4      p ! R RVR7      pV P                  \        P                  ! V4      V4       R# )c                       ] tR tRtRtR# )/TestCopy.test_deepcopy_issubclass.<locals>.Metai   rK   Nr   rK   r   r   Metarc     r   r   rd  c                       ] tR tRtRtR# ),TestCopy.test_deepcopy_issubclass.<locals>.Ci"  rK   Nr   rK   r   r   r/   rf  "  r   r   r/   r   N)rY   r   r   rY  )r   rd  r/   s   &  r   test_deepcopy_issubclass!TestCopy.test_deepcopy_issubclass  s3    
	4 		$ 	q)1-r   c                   a  ! V3R  lR\         4      oS! ^*4      p\        P                  ! V4      pV P                  VP                  VP                  4       V P                  VP
                  VP
                  4       R# )c                   8   <a  ] tR tRt o R tRV3R lltRtV tR# )*TestCopy.test_deepcopy_deepcopy.<locals>.Ci'  c                    Wn         R # r   r'   r)   s   &&r   r*   3TestCopy.test_deepcopy_deepcopy.<locals>.C.__init__(  r,   r   Nc                (   < S! V P                   4      # r   r'   r   memor/   s   &&r   __deepcopy__7TestCopy.test_deepcopy_deepcopy.<locals>.C.__deepcopy__*  r2   r   r'   r   )r3   r4   r5   r6   r*   rq  r7   r8   r9   s   @r   r/   rk  '  s     # #r   r/   N)r;   r   rY  r   r<   r(   r=   s   &  @r   test_deepcopy_deepcopyTestCopy.test_deepcopy_deepcopy&  sX    	# 	#
 bEMM!akk2&r   c                  a  ! R  R\         4      oV3R lpS! ^*4      pV P                  \        \        P                  V4       \
        P                  ! SVS4       \        P                  ! V4      pV P                  W#4       V P                  \        V4      S4       V P                  VP                  VP                  4       R# )c                   &   a  ] tR tRt o R tRtV tR# )*TestCopy.test_deepcopy_registry.<locals>.Ci2  c                <    \         P                  V 4      pWn        V# r   rD   rF   s   && r   rE   2TestCopy.test_deepcopy_registry.<locals>.C.__new__3  rJ   r   rK   NrL   rM   s   @r   r/   rw  2  rN   r   r/   c                 "   < SV P                   33# r   r'   rP   s   &r   rQ   1TestCopy.test_deepcopy_registry.<locals>.pickle_C7  rS   r   N)r;   rT   rU   r   rY  rV   rW   rX   r   rY   r(   rZ   s   &   @r   test_deepcopy_registryTestCopy.test_deepcopy_registry1  s    	 	
	#bE)T]]A6q(A&MM!a!$&r   c                   a  ! V3R  lR\         4      p. oV! 4       p\        P                  ! V4      pV P                  W24       V P	                  S^.4       R# )c                   4   <a  ] tR tRt o V3R ltR tRtV tR# )+TestCopy.test_deepcopy_reduce_ex.<locals>.CiB  c                *   < SP                  ^4       R# ra   rd   rf   s   &&r   ri   9TestCopy.test_deepcopy_reduce_ex.<locals>.C.__reduce_ex__C  rk   r   c                (    V P                  R 4       R# rm   rn   r   s   &r   rp   6TestCopy.test_deepcopy_reduce_ex.<locals>.C.__reduce__F  rr   r   rK   Nrs   rt   s   @r   r/   r  B  ru   r   r/   Nr;   r   rY  r   r   rw   s   &   @r   test_deepcopy_reduce_ex TestCopy.test_deepcopy_reduce_exA  sI    	1 	1 CMM!aQC r   c                   a  ! V3R  lR\         4      p. oV! 4       p\        P                  ! V4      pV P                  W24       V P	                  S^.4       R# )c                   .   <a  ] tR tRt o V3R ltRtV tR# )(TestCopy.test_deepcopy_reduce.<locals>.CiO  c                *   < SP                  ^4       R# ra   rd   r~   s   &r   rp   3TestCopy.test_deepcopy_reduce.<locals>.C.__reduce__P  rk   r   rK   Nr   rt   s   @r   r/   r  O  r   r   r/   Nr  rw   s   &   @r   test_deepcopy_reduceTestCopy.test_deepcopy_reduceN  sI    	 	 CMM!aQC r   c                     ! R  R\         4      pV! 4       pV P                  \        P                  \        P                  V4       R# )c                   &   a  ] tR tRt o R tRtV tR# )&TestCopy.test_deepcopy_cant.<locals>.CiZ  c                p    VP                  R 4      '       d   \        V4      h\        P                  W4      # r   r   r   s   &&r   r   7TestCopy.test_deepcopy_cant.<locals>.C.__getattribute__[  r   r   rK   Nr   rM   s   @r   r/   r  Z  r   r   r/   N)r;   rT   r   r   rY  r   s   &  r   test_deepcopy_cantTestCopy.test_deepcopy_cantY  s1    	; 	;
 C$**dmmQ7r   c                     ! R  R4      pR pRR\         ^*^^d,          RRRRR	R
RVP                  V\        ^
4      \        \	        4       .pV F)  pV P                  \        P                  ! V4      V4       K+  	  R# )c                       ] tR tRtRtR# )/TestCopy.test_deepcopy_atomic.<locals>.NewStyleie  rK   Nr   rK   r   r   r   r  e  r   r   r   c                      R # r   rK   rK   r   r   r   (TestCopy.test_deepcopy_atomic.<locals>.fg  r   r   N.r   TFr   s   bytesr   r   )r   r   r   r   r   r   r   rY  )r   r   r   r   r   s   &    r   test_deepcopy_atomicTestCopy.test_deepcopy_atomicd  sn    	 		sNB3dE27M1::59c8:7 AMM$--*A. r   c                    ^^.^.p\         P                  ! V4      pV P                  W!4       V P                  W4       V P                  V^ ,          V^ ,          4       R# rb   Nr   rY  r   rX   r   s   &  r   test_deepcopy_listTestCopy.test_deepcopy_listo  Q    VQKMM!1qt$r   c                *   . pVP                  V4       \        P                  ! V4      p\         F  pV P	                  \
        W2V4       K  	  V P                  W!4       V P                  V^ ,          V4       V P                  \        V4      ^4       R# r]  )
re   r   rY  comparisonsrT   RecursionErrorrX   r   r   lenr   r   r    ops   &   r   test_deepcopy_reflexive_list%TestCopy.test_deepcopy_reflexive_listv  sr     	MM!BnbQ7 adAQ#r   c                X    Rp\         P                  ! V4      pV P                  W4       R # NrK   r   rY  r   r   s   &  r   test_deepcopy_empty_tuple"TestCopy.test_deepcopy_empty_tuple  s!    MM!ar   c                    ^^.^3p\         P                  ! V4      pV P                  W!4       V P                  W4       V P                  V^ ,          V^ ,          4       R# r  r  r   s   &  r   test_deepcopy_tupleTestCopy.test_deepcopy_tuple  r  r   c                X    Rp\         P                  ! V4      pV P                  W4       R# )rb   N)rb   r   r   r  r   s   &  r   !test_deepcopy_tuple_of_immutables*TestCopy.test_deepcopy_tuple_of_immutables  s!    MM!ar   c                R   . 3pV^ ,          P                  V4       \        P                  ! V4      p\         F  pV P	                  \
        W2V4       K  	  V P                  W!4       V P                  V^ ,          V^ ,          4       V P                  V^ ,          ^ ,          V4       R# r]  )re   r   rY  r  rT   r  rX   r   r  s   &   r   test_deepcopy_reflexive_tuple&TestCopy.test_deepcopy_reflexive_tuple  s     E	!AMM!BnbQ7 1qt$ad1gq!r   c                    R ^^.R^/p\         P                  ! V4      pV P                  W!4       V P                  W4       V P                  VR ,          VR ,          4       R# r   r  r   s   &  r   test_deepcopy_dictTestCopy.test_deepcopy_dict  sV    QFE1%MM!51U8,r   c                X   / pWR &   \         P                  ! V4      p\         F  pV P                  \        W2V4       K  	  \
         F  pV P                  \        W2V4       K  	  V P                  W!4       V P                  VR ,          V4       V P                  \        V4      ^4       R# r;  )r   rY  order_comparisonsrT   rU   equality_comparisonsr  rX   r   r   r  r  s   &   r   test_deepcopy_reflexive_dict%TestCopy.test_deepcopy_reflexive_dict  s     %MM!#Bi2 $&BnbQ7 'ah"Q#r   c                    / p. p\         P                  ! W!4      pV P                  V\        V4      ,          ^ ,          V4       R# r]  )r   rY  r   idr   rp  r   r    s   &   r   test_deepcopy_keepalive TestCopy.test_deepcopy_keepalive  s5    MM!"d2d8nQ'+r   c                $   / p. ROp\         P                  ! W!4      pV P                  W24       V P                  \        V4      ^4       / pR.p\         P                  ! W!4      pV P                  W24       V P                  \        V4      ^4       R# )rb   N)rb   r   r      r  )r   rY  r   r  r  s   &   r   !test_deepcopy_dont_memo_immutable*TestCopy.test_deepcopy_dont_memo_immutable  sx    MM!"TA&HMM!"TA&r   c                     ! R  R4      pV! ^*.4      p\         P                  ! V4      pV P                  W24       V P                  VP                  VP                  4       R# )c                   ,   a  ] tR tRt o R tR tRtV tR# ).TestCopy.test_deepcopy_inst_vanilla.<locals>.Ci  c                    Wn         R # r   r'   r)   s   &&r   r*   7TestCopy.test_deepcopy_inst_vanilla.<locals>.C.__init__  r,   r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   5TestCopy.test_deepcopy_inst_vanilla.<locals>.C.__eq__  r   r   r'   Nr   rM   s   @r   r/   r    r   r   r/   Nr   rY  r   rX   r(   r  s   &   r   test_deepcopy_inst_vanilla#TestCopy.test_deepcopy_inst_vanilla  sM    	- 	-
 rdGMM!&r   c                   a  ! V3R  lR4      oS! ^*.4      p\         P                  ! V4      pV P                  W!4       V P                  W!4       V P                  VP                  VP                  4       R# )c                   :   <a  ] tR tRt o R tV3R ltR tRtV tR# )/TestCopy.test_deepcopy_inst_deepcopy.<locals>.Ci  c                    Wn         R # r   r'   r)   s   &&r   r*   8TestCopy.test_deepcopy_inst_deepcopy.<locals>.C.__init__  r,   r   c                R   < S! \         P                  ! V P                  V4      4      # r   )r   rY  r(   ro  s   &&r   rq  <TestCopy.test_deepcopy_inst_deepcopy.<locals>.C.__deepcopy__  s    txx677r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   6TestCopy.test_deepcopy_inst_deepcopy.<locals>.C.__eq__  r   r   r'   N)	r3   r4   r5   r6   r*   rq  r   r7   r8   r9   s   @r   r/   r    s     8- -r   r/   Nr  r=   s   &  @r   test_deepcopy_inst_deepcopy$TestCopy.test_deepcopy_inst_deepcopy  s\    	- 	- rdGMM!&r   c                     ! R  R4      pV! ^*.4      p\         P                  ! V4      pV P                  W24       V P                  W24       V P                  VP                  VP                  4       R# )c                   2   a  ] tR tRt o R tR tR tRtV tR# )2TestCopy.test_deepcopy_inst_getinitargs.<locals>.Ci  c                    Wn         R # r   r'   r)   s   &&r   r*   ;TestCopy.test_deepcopy_inst_getinitargs.<locals>.C.__init__  r,   r   c                    V P                   3# r   r'   r   s   &r   r   BTestCopy.test_deepcopy_inst_getinitargs.<locals>.C.__getinitargs__  r   r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   9TestCopy.test_deepcopy_inst_getinitargs.<locals>.C.__eq__  r   r   r'   Nr   rM   s   @r   r/   r    r   r   r/   Nr  r  s   &   r   test_deepcopy_inst_getinitargs'TestCopy.test_deepcopy_inst_getinitargs  [    	- 	- rdGMM!&r   c                `    ! R  R\         4      pV! ^*.4      p\        P                  ! V4      pV P                  W14       V P	                  W24       V P                  W24       V P	                  VP                  VP                  4       V P                  VP                  VP                  4       R# )c                   2   a  ] tR tRt o R tR tR tRtV tR# )1TestCopy.test_deepcopy_inst_getnewargs.<locals>.Ci  c                <    \         P                  V 4      pWn        V# r   r  r  s   && r   rE   9TestCopy.test_deepcopy_inst_getnewargs.<locals>.C.__new__  r  r   c                    V P                   3# r   r'   r   s   &r   r
  @TestCopy.test_deepcopy_inst_getnewargs.<locals>.C.__getnewargs__  r  r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   8TestCopy.test_deepcopy_inst_getnewargs.<locals>.C.__eq__  r   r   r'   Nr  rM   s   @r   r/   r    r  r   r/   Nr  r   rY  r  r   rX   r(   r  s   &   r   test_deepcopy_inst_getnewargs&TestCopy.test_deepcopy_inst_getnewargs  s    	- 	- rdGMM!a#&&r   c                b    ! R  R\         4      pV! ^*.R7      p\        P                  ! V4      pV P                  W14       V P	                  W24       V P                  W24       V P	                  VP                  VP                  4       V P                  VP                  VP                  4       R# )c                   2   a  ] tR tRt o R tR tR tRtV tR# )4TestCopy.test_deepcopy_inst_getnewargs_ex.<locals>.Ci  c               <    \         P                  V 4      pWn        V# r   r  r  s   &$ r   rE   <TestCopy.test_deepcopy_inst_getnewargs_ex.<locals>.C.__new__  r  r   c                "    RR V P                   /3# r  r'   r   s   &r   r  FTestCopy.test_deepcopy_inst_getnewargs_ex.<locals>.C.__getnewargs_ex__  r  r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   ;TestCopy.test_deepcopy_inst_getnewargs_ex.<locals>.C.__eq__
  r   r   r'   Nr"  rM   s   @r   r/   r    r#  r   r/   r'   Nr  r  s   &   r    test_deepcopy_inst_getnewargs_ex)TestCopy.test_deepcopy_inst_getnewargs_ex  s    	- 	- 2$KMM!a#&&r   c                     ! R  R4      pV! ^*.4      p\         P                  ! V4      pV P                  W24       V P                  W24       V P                  VP                  VP                  4       R# )c                   2   a  ] tR tRt o R tR tR tRtV tR# )/TestCopy.test_deepcopy_inst_getstate.<locals>.Ci  c                    Wn         R # r   r'   r)   s   &&r   r*   8TestCopy.test_deepcopy_inst_getstate.<locals>.C.__init__  r,   r   c                    R V P                   /# r'   r'   r   s   &r   r,  <TestCopy.test_deepcopy_inst_getstate.<locals>.C.__getstate__  r.  r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   6TestCopy.test_deepcopy_inst_getstate.<locals>.C.__eq__  r   r   r'   Nr1  rM   s   @r   r/   r    r2  r   r/   Nr  r  s   &   r   test_deepcopy_inst_getstate$TestCopy.test_deepcopy_inst_getstate  r  r   c                     ! R  R4      pV! ^*.4      p\         P                  ! V4      pV P                  W24       V P                  W24       V P                  VP                  VP                  4       R# )c                   2   a  ] tR tRt o R tR tR tRtV tR# )/TestCopy.test_deepcopy_inst_setstate.<locals>.Ci#  c                    Wn         R # r   r'   r)   s   &&r   r*   8TestCopy.test_deepcopy_inst_setstate.<locals>.C.__init__$  r,   r   c                "    VR ,          V n         R# r;  r'   r<  s   &&r   r>  <TestCopy.test_deepcopy_inst_setstate.<locals>.C.__setstate__&  r@  r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   6TestCopy.test_deepcopy_inst_setstate.<locals>.C.__eq__(  r   r   r'   NrC  rM   s   @r   r/   r  #  rD  r   r/   Nr  r  s   &   r   test_deepcopy_inst_setstate$TestCopy.test_deepcopy_inst_setstate"  r  r   c                    ! R  R4      pV! ^*.4      p\         P                  ! V4      pV P                  W24       V P                  W24       V P                  VP                  VP                  4       V! . 4      p\         P                  ! V4      pV P                  W24       V P                  W24       V P                  VP                  VP                  4       R# )c                   8   a  ] tR tRt o R tR tR tR tRtV t	R# )8TestCopy.test_deepcopy_inst_getstate_setstate.<locals>.Ci1  c                    Wn         R # r   r'   r)   s   &&r   r*   ATestCopy.test_deepcopy_inst_getstate_setstate.<locals>.C.__init__2  r,   r   c                    V P                   # r   r'   r   s   &r   r,  ETestCopy.test_deepcopy_inst_getstate_setstate.<locals>.C.__getstate__4  rN  r   c                    Wn         R # r   r'   r<  s   &&r   r>  ETestCopy.test_deepcopy_inst_getstate_setstate.<locals>.C.__setstate__6  rQ  r   c                4    V P                   VP                   8H  # r   r'   r   s   &&r   r   ?TestCopy.test_deepcopy_inst_getstate_setstate.<locals>.C.__eq__8  r   r   r'   NrT  rM   s   @r   r/   r  1  rU  r   r/   Nr  r  s   &   r   $test_deepcopy_inst_getstate_setstate-TestCopy.test_deepcopy_inst_getstate_setstate0  s    	- 	- rdGMM!&bEMM!&r   c                     ! R  R4      pV! 4       pW"n         \        P                  ! V4      pV P                  W24       V P	                  VP                   V4       R# )c                       ] tR tRtRtR# )0TestCopy.test_deepcopy_reflexive_inst.<locals>.CiG  rK   Nr   rK   r   r   r/   r(  G  r   r   r/   N)r(   r   rY  rX   r   r  s   &   r   test_deepcopy_reflexive_inst%TestCopy.test_deepcopy_reflexive_instF  sF    	 	CMM!aeeQr   c                     ! R  R\         4      pV! 4       p\        P                  ! V4      pV P                  W24       \        P                  ! V4      pV P                  W24       R# )c                   &   a  ] tR tRt o R tRtV tR# )+TestCopy.test_reconstruct_string.<locals>.CiR  c                    R # )rc   rK   r   s   &r   rp   6TestCopy.test_reconstruct_string.<locals>.C.__reduce__S  s    r   rK   Nr   rM   s   @r   r/   r-  R  s      r   r/   N)r;   r   r   rY  r  s   &   r   test_reconstruct_string TestCopy.test_reconstruct_stringQ  sJ    	 	 CIIaLaMM!ar   c                8  a  ! V3R  lR\         4      oS! 4       p^*Vn        \        P                  ! V4      pV P                  VP                  VP                  4       \        P
                  ! V4      pV P                  VP                  VP                  4       R# )c                   .   <a  ] tR tRt o V3R ltRtV tR# ),TestCopy.test_reconstruct_nostate.<locals>.Ci\  c                   < SR3# r  rK   r.   s   &r   rp   7TestCopy.test_reconstruct_nostate.<locals>.C.__reduce__]  s    2wr   rK   Nr   r9   s   @r   r/   r4  \  s      r   r/   N)r;   r(   r   r   r<   rY  r=   s   &  @r   test_reconstruct_nostate!TestCopy.test_reconstruct_nostate[  sf    	 	 CIIaLakk1;;/MM!akk1;;/r   c                2  a  ! V3R  lR\         4      oS! 4       p^*.Vn        \        P                  ! V4      pV P                  W!4       \        P                  ! V4      pV P                  W!4       V P                  VP                  VP                  4       R# )c                   4   <a  ] tR tRt o V3R ltR tRtV tR# )*TestCopy.test_reconstruct_state.<locals>.Cig  c                "   < SRV P                   3# r  __dict__r.   s   &r   rp   5TestCopy.test_reconstruct_state.<locals>.C.__reduce__h      2t}}--r   c                4    V P                   VP                   8H  # r   r=  r   s   &&r   r   1TestCopy.test_reconstruct_state.<locals>.C.__eq__j      }}66r   rK   Nr3   r4   r5   r6   rp   r   r7   r8   r9   s   @r   r/   r;  g  s     .7 7r   r/   Nr;   r(   r   r   rY  rX   r=   s   &  @r   test_reconstruct_stateTestCopy.test_reconstruct_statef  sp    	7 	7
 CIIaLMM!&r   c                2  a  ! V3R  lR\         4      oS! 4       p^*.Vn        \        P                  ! V4      pV P                  W!4       \        P                  ! V4      pV P                  W!4       V P                  VP                  VP                  4       R# )c                   :   <a  ] tR tRt o V3R ltR tR tRtV tR# )3TestCopy.test_reconstruct_state_setstate.<locals>.Ciu  c                "   < SRV P                   3# r  r=  r.   s   &r   rp   >TestCopy.test_reconstruct_state_setstate.<locals>.C.__reduce__v  r@  r   c                <    V P                   P                  V4       R # r   )r>  updater<  s   &&r   r>  @TestCopy.test_reconstruct_state_setstate.<locals>.C.__setstate__x  s    $$U+r   c                4    V P                   VP                   8H  # r   r=  r   s   &&r   r   :TestCopy.test_reconstruct_state_setstate.<locals>.C.__eq__z  rC  r   rK   N)	r3   r4   r5   r6   rp   r>  r   r7   r8   r9   s   @r   r/   rJ  u  s     .,7 7r   r/   NrE  r=   s   &  @r   test_reconstruct_state_setstate(TestCopy.test_reconstruct_state_setstatet  sp    	7 	7 CIIaLMM!&r   c                     ! R  R\         4      pV! 4       pW"n        \        P                  ! V4      pV P	                  W24       V P                  VP                  V4       R# )c                       ] tR tRtRtR# ).TestCopy.test_reconstruct_reflexive.<locals>.Ci  rK   Nr   rK   r   r   r/   rV    r   r   r/   N)r;   r(   r   rY  rX   r   r  s   &   r   test_reconstruct_reflexive#TestCopy.test_reconstruct_reflexive  sH    	 	CMM!aeeQr   c                  a  ! V3R  lR\         4      oS! ^^.^.4      p\        P                  ! V4      pV P                  W4       V P                  W4       V P	                  V^ ,          V^ ,          4       \        P
                  ! V4      pV P                  W4       V P                  W4       V P                  V^ ,          V^ ,          4       R# )c                   4   <a  ] tR tRt o V3R ltR tRtV tR# )&TestCopy.test_reduce_4tuple.<locals>.Ci  c                6   < SRV P                   \        V 4      3# r  )r>  iterr.   s   &r   rp   1TestCopy.test_reduce_4tuple.<locals>.C.__reduce__  s    2t}}d4j99r   c                r    \        V 4      \        V4      8H  ;'       d    V P                  VP                  8H  # r   )listr>  r   s   &&r   r   -TestCopy.test_reduce_4tuple.<locals>.C.__eq__  1    T
d5k1 8 879r   rK   NrD  r9   s   @r   r/   r[    s     :9 9r   r/   N)r`  r   r   rX   r   rY  r=   s   &  @r   test_reduce_4tupleTestCopy.test_reduce_4tuple  s    	9 	9 1vqkNIIaLadAaD!MM!1qt$r   c                  a  ! V3R  lR\         4      oS! R^^.3R.4      p\        P                  ! V4      pV P                  W4       V P                  W4       V P	                  VR,          VR,          4       \        P
                  ! V4      pV P                  W4       V P                  W4       V P                  VR,          VR,          4       R# )c                   4   <a  ] tR tRt o V3R ltR tRtV tR# )&TestCopy.test_reduce_5tuple.<locals>.Ci  c                B   < SRV P                   R V P                  4       3# r  )r>  itemsr.   s   &r   rp   1TestCopy.test_reduce_5tuple.<locals>.C.__reduce__  s    2t}}dDJJLAAr   c                r    \        V 4      \        V4      8H  ;'       d    V P                  VP                  8H  # r   )dictr>  r   s   &&r   r   -TestCopy.test_reduce_5tuple.<locals>.C.__eq__  rb  r   rK   NrD  r9   s   @r   r/   rg    s     B9 9r   r/   r(   N)r   r   )rl  r   r   rX   r   rY  r=   s   &  @r   test_reduce_5tupleTestCopy.test_reduce_5tuple  s    	9 	9 1v
+,IIaLah%)MM!51U8,r   c                  a aa V 3R  lo ! VV3R lR4      oS! 4       pS P                  \        4      ;_uu_ 4        \        P                  ! V4       RRR4       S P                  \        4      ;_uu_ 4        \        P                  ! V4       RRR4       R#   + '       g   i     LN; i  + '       g   i     R# ; i)c                  *   < SP                  R 4       R# rm   rn   )argskwargsr   s   *,r   state_setter1TestCopy.test_reduce_6tuple.<locals>.state_setter  s    II+,r   c                   0   <a  ] tR tRt o VV3R ltRtV tR# )&TestCopy.test_reduce_6tuple.<locals>.Ci  c                (   < SRV P                   R R S3# r  r=  )r   r/   rt  s   &r   rp   1TestCopy.test_reduce_6tuple.<locals>.C.__reduce__  s    "dmmT4EEr   rK   Nr   )r:   r/   rt  s   @r   r/   rw    s     F Fr   r/   NrT   rU   r   rY  )r   r   r/   rt  s   f @@r   test_reduce_6tupleTestCopy.test_reduce_6tuple  sv    	-	F 	F Cy))IIaL *y))MM! *) *))))s   B8B,B)	,B=	c                n  a  ! V3R  lR4      oS! 4       pV P                  \        4      ;_uu_ 4        \        P                  ! V4       RRR4       V P                  \        4      ;_uu_ 4        \        P                  ! V4       RRR4       R#   + '       g   i     LN; i  + '       g   i     R# ; i)c                   .   <a  ] tR tRt o V3R ltRtV tR# )+TestCopy.test_reduce_6tuple_none.<locals>.Ci  c                (   < SRV P                   R R R 3# r  r=  r.   s   &r   rp   6TestCopy.test_reduce_6tuple_none.<locals>.C.__reduce__  s    "dmmT4==r   rK   Nr   r9   s   @r   r/   r    s     > >r   r/   Nrz  r   s   & @r   test_reduce_6tuple_none TestCopy.test_reduce_6tuple_none  so    	> 	> Cy))IIaL *y))MM! *) *))))s   B/B#B 	#B4	c                     ! R  R\         4      pV! 4       p^*.Vn        \        P                  ! V4      pV P                  VP                  VP                  4       R# )c                       ] tR tRtR.tRtR# )#TestCopy.test_copy_slots.<locals>.Ci  r(   rK   Nr3   r4   r5   r6   	__slots__r7   rK   r   r   r/   r    	    Ir   r/   N)r;   r(   r   r   r  s   &   r   test_copy_slotsTestCopy.test_copy_slots  sA    	  	 CIIaLaeeQUU#r   c                    ! R  R\         4      pV! 4       p^*.Vn        \        P                  ! V4      pV P	                  VP                  VP                  4       V P                  VP                  VP                  4       R# )c                       ] tR tRtR.tRtR# )'TestCopy.test_deepcopy_slots.<locals>.Ci  r(   rK   Nr  rK   r   r   r/   r    r  r   r/   N)r;   r(   r   rY  r   rX   r  s   &   r   test_deepcopy_slotsTestCopy.test_deepcopy_slots  s\    	  	 CMM!&&r   c                n    ! R  R\         4      pV! R^ /R7      p\        P                  ! V4      pV P                  W#4       V P                  VP                  VP                  4       V P                  W#4       ^VR&   V P                  W#4       V P                  VP                  VP                  4       R# )c                   B   a a ] tR tRt oRV 3R lltV 3R ltRtVtV ;t# )/TestCopy.test_deepcopy_dict_subclass.<locals>.Ci  c                v   < V'       g   / p\        VP                  4       4      V n        \        SV `  V4       R # r   )r`  keys_keyssuperr*   )r   dr<   s   &&r   r*   8TestCopy.test_deepcopy_dict_subclass.<locals>.C.__init__  s)    A!!&&(^
 #r   c                   < \         SV `  W4       WP                  9  d   V P                  P                  V4       R # R # r   )r  __setitem__r  re   )r   keyitemr<   s   &&&r   r  ;TestCopy.test_deepcopy_dict_subclass.<locals>.C.__setitem__  s1    #C.jj(JJ%%c* )r   )r  r   )	r3   r4   r5   r6   r*   r  r7   r8   __classcell__)r<   r:   s   @@r   r/   r    s     $
+ +r   r/   r(   )r  r   N)rl  r   rY  r   r  rX   assertNotEqualr  s   &   r   test_deepcopy_dict_subclass$TestCopy.test_deepcopy_dict_subclass  s    		+ 		+ q	NMM!!''*%A!AGGQWW-r   c                    ! R  R\         4      pV! ^^.^.4      p^^.Vn        \        P                  ! V4      pV P                  \        V4      \        V4      4       V P                  VP                  VP                  4       V P	                  V^ ,          V^ ,          4       V P	                  VP                  VP                  4       R# )c                       ] tR tRtRtR# )+TestCopy.test_copy_list_subclass.<locals>.Ci  rK   Nr   rK   r   r   r/   r    r   r   r/   N)r`  r(   r   r   r   r  s   &   r   test_copy_list_subclass TestCopy.test_copy_list_subclass  s    	 	1vqkNAIIaLa$q'*&adAaD!aeeQUU#r   c                    ! R  R\         4      pV! ^^.^.4      p^^.Vn        \        P                  ! V4      pV P	                  \        V4      \        V4      4       V P	                  VP                  VP                  4       V P                  V^ ,          V^ ,          4       V P                  VP                  VP                  4       R# )c                       ] tR tRtRtR# )/TestCopy.test_deepcopy_list_subclass.<locals>.Ci  rK   Nr   rK   r   r   r/   r    r   r   r/   N)r`  r(   r   rY  r   rX   r  s   &   r   test_deepcopy_list_subclass$TestCopy.test_deepcopy_list_subclass  s    	 	1vqkNAMM!a$q'*&1qt$&r   c                     ! R  R\         4      pV! . RO4      pV P                  \        V4      R4       \        P                  ! V4      pV P                  \        V4      R4       R# )c                       ] tR tRtRtR# ),TestCopy.test_copy_tuple_subclass.<locals>.Ci  rK   Nr   rK   r   r   r/   r    r   r   r/   Nr   )tupler   r   r  s   &   r   test_copy_tuple_subclass!TestCopy.test_copy_tuple_subclass  sL    	 	iLq9-IIaLq9-r   c                F    ! R  R\         4      pV! ^^.^.4      pV P                  \        V4      ^^.^34       \        P                  ! V4      pV P                  \        V4      ^^.^34       V P	                  W#4       V P	                  V^ ,          V^ ,          4       R# )c                       ] tR tRtRtR# )0TestCopy.test_deepcopy_tuple_subclass.<locals>.Ci  rK   Nr   rK   r   r   r/   r    r   r   r/   N)r  r   r   rY  rX   r  s   &   r   test_deepcopy_tuple_subclass%TestCopy.test_deepcopy_tuple_subclass
  s    	 	1vqkNqQFA;/MM!qQFA;/1qt$r   c                x     ! R  R\         4      pV P                  \        \        P                  V! 4       4       R# )c                   &   a  ] tR tRt o R tRtV tR# )-TestCopy.test_getstate_exc.<locals>.EvilStatei  c                    \        R 4      h)zain't got no stickin' state)
ValueErrorr   s   &r   r,  :TestCopy.test_getstate_exc.<locals>.EvilState.__getstate__  s     !>??r   rK   N)r3   r4   r5   r6   r,  r7   r8   rM   s   @r   	EvilStater    s     @ @r   r  N)r;   rT   r  r   )r   r  s   & r   test_getstate_excTestCopy.test_getstate_exc  s*    	@ 	@ 	*dii=r   c                   V P                  \        P                  ! \        4      \        4       R  pV P                  \        P                  ! V4      V4       R pV P                  \        P                  ! V4      V4       R# )c                     W,           # r   rK   r   r    s   &&r   r(   (TestCopy.test_copy_function.<locals>.foo      aczr   c                      R # r   rK   rK   r   r   <lambda>-TestCopy.test_copy_function.<locals>.<lambda>      dr   N)r   r   
global_foor   r(   r   s   &  r   test_copy_functionTestCopy.test_copy_function  sS    :.
;!3-3-r   c                   V P                  \        P                  ! \        4      \        4       R  pV P                  \        P                  ! V4      V4       R pV P                  \        P                  ! V4      V4       R# )c                     W,           # r   rK   r  s   &&r   r(   ,TestCopy.test_deepcopy_function.<locals>.foo#  r  r   c                      R # r   rK   rK   r   r   r  1TestCopy.test_deepcopy_function.<locals>.<lambda>%  r  r   N)r   r   rY  r  r  s   &  r   test_deepcopy_functionTestCopy.test_deepcopy_function!  sU    z2J?!s+S1s+S1r   c                     ! R  R\         4      pV! 4       p\        P                  ! V4      pV! V4      pV P                  WT4       ?V! V4      pV P                  WT4       R# )c                       ] tR tRtRtR# )"TestCopy._check_weakref.<locals>.Ci)  rK   Nr   rK   r   r   r/   r  )  r   r   r/   N)r;   weakrefrefr   )r   _copyr/   rH   r   r    s   &&    r   _check_weakrefTestCopy._check_weakref(  sP    	 	cKK!Ha!Har   c                D    V P                  \        P                  4       R # r   )r  r   r   s   &r   test_copy_weakrefTestCopy.test_copy_weakref3  s    DII&r   c                D    V P                  \        P                  4       R # r   )r  r   rY  r   s   &r   test_deepcopy_weakrefTestCopy.test_deepcopy_weakref6  s    DMM*r   c                >    ! R  R\         4      p\        ^4       Uu. uF	  q2! 4       NK  	  upw  rErgV! 4       pWXV&   WxV&   \        P                  ! V4      p	V P                  W4       V P	                  W4       V P	                  W,          V4       V P	                  W,          V4       V P	                  \        V	4      ^4       ??\        P                  ! 4        V P	                  \        V	4      ^4       V! 4       V! 4       rWV
&   V P                  W4       R# u upi )c                       ] tR tRtRtR# )(TestCopy._check_copy_weakdict.<locals>.Ci:  rK   Nr   rK   r   r   r/   r  :  r   r   r/   N)	r;   r   r   rX   r   r  r	   
gc_collectassertNotIn)r   	_dicttyper/   iabrh   r  uvr   r    s   &&          r   _check_copy_weakdictTestCopy._check_copy_weakdict9  s    	 	#(8,8aac8,
aK!!IIaLq!q!Q#qQ#sAC1!! -s   Dc                D    V P                  \        P                  4       R # r   )r  r  WeakKeyDictionaryr   s   &r   test_copy_weakkeydictTestCopy.test_copy_weakkeydictN  s    !!'";";<r   c                D    V P                  \        P                  4       R # r   )r  r  WeakValueDictionaryr   s   &r   test_copy_weakvaluedict TestCopy.test_copy_weakvaluedictQ  s    !!'"="=>r   c                    ! R  R\         4      p\        ^4       Uu. uF
  q!! V4      NK  	  upw  r4rV\        P                  ! 4       pWGV&   WgV&   \        P
                  ! V4      pV P                  W4       V P                  \        V4      ^4       V P                  W,          V4       V P                  W,          V4       V P                  W,          P                  VP                  4       V P                  W,          P                  VP                  4       ?\        P                  ! 4        V P                  \        V4      ^4       R# u upi )c                   &   a  ] tR tRt o R tRtV tR# )-TestCopy.test_deepcopy_weakkeydict.<locals>.CiU  c                    Wn         R # r   r  r   r  s   &&r   r*   6TestCopy.test_deepcopy_weakkeydict.<locals>.C.__init__V      r   r  Nr3   r4   r5   r6   r*   r7   r8   rM   s   @r   r/   r  U        r   r/   N)r;   r   r  r  r   rY  r  r   r  rX   r  r	   r  )	r   r/   r  r  r  rh   r  r  r  s	   &        r   test_deepcopy_weakkeydict"TestCopy.test_deepcopy_weakkeydictT  s    	 	 %*!H-HqadH-
a%%'!!MM!A!Q#q!q!%%Q# .s   Ec                    ! R  R\         4      p\        ^4       Uu. uF
  q!! V4      NK  	  upw  r4rV\        P                  ! 4       pWGV&   WgV&   \        P
                  ! V4      pV P                  W4       V P                  \        V4      ^4       \        VP                  4       R R7      w  w  rw  rV P                  W4       V P                  V	P                  VP                  4       V P                  W4       V P                  W4       V P                  VP                  VP                  4       V P                  W4       ?	?
???\        P                  ! 4        V P                  \        V4      ^4       R# u upi )c                   &   a  ] tR tRt o R tRtV tR# )/TestCopy.test_deepcopy_weakvaluedict.<locals>.Cii  c                    Wn         R # r   r  r  s   &&r   r*   8TestCopy.test_deepcopy_weakvaluedict.<locals>.C.__init__j  r  r   r  Nr   rM   s   @r   r/   r  i  r  r   r/   c                 (    V ^ ,          P                   # r^  r  )pairs   &r   r  6TestCopy.test_deepcopy_weakvaluedict.<locals>.<lambda>t  s    DGIIr   )r  N)r;   r   r  r  r   rY  r  r   r  sortedri  rX   r  r   r	   r  )r   r/   r  r  r  rh   r  r  r  r   r    zts   &            r   test_deepcopy_weakvaluedict$TestCopy.test_deepcopy_weakvaluedicth  s,   	 	 %*!H-HqadH-
a'')!!MM!A!Q#	/EFacc"aacc"aq!QQ#% .s   E<c                8    ! R  R\         4      pV! 4       pVP                  Vn        \        P                  ! V4      pV P                  VP                  VP                  4       V P                  VP                  P                  V4       VP                  4        R# )c                   &   a  ] tR tRt o R tRtV tR# )0TestCopy.test_deepcopy_bound_method.<locals>.Fooi  c                    R # r   rK   r   s   &r   m2TestCopy.test_deepcopy_bound_method.<locals>.Foo.m  s    r   rK   N)r3   r4   r5   r6   r  r7   r8   rM   s   @r   Foor    s      r   r  N)r;   r  r  r   rY  r   r   __self__)r   r  r   gs   &   r   test_deepcopy_bound_method#TestCopy.test_deepcopy_bound_method  sg    	& 	 EccMM!acc"accllA&	r   rK   N)Wr3   r4   r5   r6   r   r!   r>   r[   rx   r   r   r   r   r   r   r   r   r   r   r   r   r  r$  r3  rE  rV  rZ  r_  rg  rs  r|  r  r  r  r  r  r	   skip_emscripten_stack_overflowskip_wasi_stack_overflowr  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r$  r)  r0  r7  rF  rR  rW  rc  rn  r{  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r7   r8   rM   s   @r   r   r      s    5
	'' !	!4+''*	*	*'"'"	*	**$
	"	.	'' !	!8	/% ++-%%'$ ( .$
%
 ++-%%'" ( ."- ++-%%'
$ ( .
$,'	''''$'$''', 	0''  %"-"
$'.(	$	'.%>.2	'+*=?$($0	 	r   r   c                   8   a  ] tR tRt o R tR tR tR tRtV t	R# )TestReplacei  c                   V P                  \        \        P                  ^4       V P                  \        \        P                  . 4       V P                  \        \        P                  / 4       R pV P                  \        \        P                  V4        ! R R4      pV P                  \        \        P                  V4       V P                  \        \        P                  V! 4       4       R# )rb   c                      R # r   rK   rK   r   r   r   'TestReplace.test_unsupported.<locals>.f  s    r   c                       ] tR tRtRtR# )'TestReplace.test_unsupported.<locals>.Ai  rK   Nr   rK   r   r   Ar%    s    r   r&  N)rT   rU   r   replace)r   r   r&  s   &  r   test_unsupportedTestReplace.test_unsupported  s    )T\\15)T\\26)T\\26)T\\15)T\\15)T\\137r   c           
         ! R  R4      p\        RRR4      pV! ^^4      pV P                  V! \        P                  ! V4      4      R	4       V P                  V! \        P                  ! V^R7      4      R
4       V P                  V! \        P                  ! V^R7      4      R4       V P                  V! \        P                  ! V^^R7      4      R4       R# )c                   6   a  ] tR tRt o RR ltR tR tRtV tR# )*TestReplace.test_replace_method.<locals>.Ai  c                H    \         P                  V 4      pWn        W#n        V# r   )r;   rE   r   r    )rG   r   r    r   s   &&& r   rE   2TestReplace.test_replace_method.<locals>.A.__new__  s    ~~c*r   c                J    V P                   V P                  ,           V n        R # r   r   r    r  )r   rr  rs  s   &*,r   r*   3TestReplace.test_replace_method.<locals>.A.__init__  s    $&&r   c                    VP                  R V P                  4      pVP                  RV P                  4      p\        V 4      ! W#4      # r  )getr   r    rY   )r   changesr   r    s   &,  r   __replace__6TestReplace.test_replace_method.<locals>.A.__replace__  s9    KKTVV,KKTVV,Dz!''r   r0  Nr
  )	r3   r4   r5   r6   rE   r*   r5  r7   r8   rM   s   @r   r&  r,    s     )( (r   r&  r   r    r  r   r    r  N)      !   )rb   r:     )r9  r      r   )r   r   r   r'  )r   r&  attrsr  s   &   r   test_replace_methodTestReplace.test_replace_method  s    	( 	( 3S)b"It||A/>t||A34kBt||A34kBt||Aa899Er   c                N   ^ RI Hp ^ RIHp V! RRRR7      p ! R RV4      p ! R R	V4      pW4V3 EFF  pV P	                  VR
7      ;_uu_ 4        V! ^^4      pV P                  Wv4       V P                  \        P                  ! V4      R4       V P                  \        P                  ! V4      V4       V P                  \        P                  ! V^R7      R4       V P                  \        P                  ! V^R7      R4       V P                  \        P                  ! V^^R7      R4       V P                  \        R4      ;_uu_ 4        \        P                  ! V^^R7       RRR4       RRR4       EKI  	  R#   + '       g   i     L; i  + '       g   i     EKr  ; i)r^  )
namedtuple)
NamedTuplePointzx y)defaultsc                       ] tR tRtRtR# )9TestReplace.test_namedtuple.<locals>.PointFromInheritancei  rK   Nr   rK   r   r   PointFromInheritancerG    r   r   rH  c                   0   a  ] tR tRt o ^ tV 3R ltRtV tR# )3TestReplace.test_namedtuple.<locals>.PointFromClassi  c                2   < V ^8  d   Qh/ S[ ;R&   S[ ;R&   # r   r   r    r  )formatr:   s   "r   __annotate__@TestReplace.test_namedtuple.<locals>.PointFromClass.__annotate__  s     F J r   rK   Nr3   r4   r5   r6   r    __annotate_func__r7   r8   rM   s   @r   PointFromClassrJ    s     A  r   rS  )rD  r7  r8  r  zunexpected field namer   r   Nr
  r9  r:  rb   r:  r9  r   r  )collectionsrB  typingrC  subTestr  r   r   r'  assertRaisesRegexrU   )r   rB  rC  PointFromCallrH  rS  rD  ps   &       r   test_namedtupleTestReplace.test_namedtuple  s5   *%"7EDA	= 		Z 	 $>JEE**"bM%%a/  a(;%%dll1ou=  a1!5w?  a1!5w?  a1!:FC++I7NOOLLaq1 P +* K PO +**s%   C>FE?(F?F
FF$c           
     p   ^ RI Hp V ! R R4      4       p\        RR4      pV! ^^4      pV P                  V! \        P
                  ! V4      4      R4       V P                  V! \        P
                  ! V^R7      4      R4       V P                  V! \        P
                  ! V^R7      4      R4       V P                  V! \        P
                  ! V^^R7      4      R4       V P                  \        R	4      ;_uu_ 4        \        P
                  ! V^^R
7       RRR4       R#   + '       g   i     R# ; i)r^  )	dataclassc                   0   a  ] tR tRt o ^ tV 3R ltRtV tR# )%TestReplace.test_dataclass.<locals>.Ci  c                2   < V ^8  d   Qh/ S[ ;R&   S[ ;R&   # rL  rM  )rN  r:   s   "r   rO  2TestReplace.test_dataclass.<locals>.C.__annotate__  s     F  J r   rK   NrQ  rM   s   @r   r/   rc    s      A  r   r/   r   r    r7  r8  r  zunexpected keyword argumentrT  NrU  rV  rW  r  )dataclassesra  r   r   r   r'  r[  rU   )r   ra  r/   r>  rh   s   &    r   test_dataclassTestReplace.test_dataclass  s    )		 	 
	 3$b"It||A/:t||A34g>t||A34g>t||Aa896B##I/LMMLLaq) NMMMs    D$$D5	rK   N)
r3   r4   r5   r6   r(  r?  r^  rg  r7   r8   rM   s   @r   r   r     s     8F.2** *r   r   c                   &   a  ] tR tRt o R tRtV tR# )MiscTestCasei  c                D    \         P                  ! V \        R R0R7       R# )dispatch_tabler   )not_exportedN)r	   check__all__r   r   s   &r   test__all__MiscTestCase.test__all__  s    T47G6QRr   rK   N)r3   r4   r5   r6   ro  r7   r8   rM   s   @r   rj  rj    s     S Sr   rj  c                     W,           # r   rK   r  s   &&r   r  r    s    QSjr   __main__)__doc__r   rV   r  r   operatorr   r   r   r   r   r   r   unittesttestr	   r  r  r  TestCaser   r   rj  r  r3   mainrK   r   r   <module>ry     s    %    
 7 7 7  BN 2v "66yx   yxF*(## F*RS8$$ S ! zMMO r   