+
    Bic                     $   ^ RI Ht ^ RIHtHtHtHt ^ RIHt ^ RI	t	^ RI
t
^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt ^ RIt ! R R4      tR t ! R R	]P*                  ]4      t ! R
 R]P*                  ]4      t ! R R]P*                  ]4      t ! R R]P*                  4      t ! R R]P*                  4      t ! R R]P*                  ]4      t ! R R]P*                  ]4      t ! R R]P*                  4      tR+t]P>                  R8  d   ^M^t  ! R R4      t!]PD                  ! ]]P>                  8  R4       ! R R]P*                  4      4       t#R t$ ! R R ]P*                  ]4      t% ! R! R"]P*                  4      t& ! R# R$]P*                  ]4      t' ! R% R&]P*                  ]4      t(]PR                  ]PT                  ! ]R'4       ! R( R)]P*                  ]4      4       4       t+],R*8X  d   ]PZ                  ! 4        R# R#   ] d    Rt ELi ; i),    )support)is_apple_mobile	os_helperrequires_debug_rangesis_emscripten)assert_python_okNc                   &   a  ] tR t^t o R tRtV tR# )HelperMixinc                   \         P                  ! \         P                  ! V.VO5!  4      pV P                  W4        \	        \
        P                  R 4      ;_uu_ 4       p\         P                  ! W.VO5!   RRR4       \	        \
        P                  R4      ;_uu_ 4       p\         P                  ! V4      pRRR4       V P                  W4       \
        P                  ! \
        P                  4       R#   + '       g   i     L; i  + '       g   i     LZ; i  \
        P                  ! \
        P                  4       i ; i)wbNrb)
marshalloadsdumpsassertEqualopenr   TESTFNdumploadunlink)selfsampleextranewfs   &&*  (/usr/lib/python3.14/test/test_marshal.pyhelperHelperMixin.helper   s    mmGMM&959:%	/i&&--V// .i&&--ll1o .V)Y--. .--- Y--.s;   "D  !C::*D  $D;D  :D
	D  D	D   &E N)__name__
__module____qualname____firstlineno__r   __static_attributes____classdictcell____classdict__s   @r   r
   r
      s     
/ 
/    r
   c                (    V \        ^ R4      ,          # )zreturn data[:-1])slice)datas   &r   omit_last_byter-      s    
 ar(   c                   2   a  ] tR t^&t o R tR tR tRtV tR# )IntTestCasec                    \         P                  ^,          pV'       d)   V) V3 F  pV P                  V4       K  	  V^,	          pK0  R#    N)sysmaxsizer   )r   nexpecteds   &  r   	test_intsIntTestCase.test_ints'   s=    KK1RGH% $QA r(   c           	     R   RpV) ^,
          pWV) V^,	          ) 3 Fh  pV'       g   K  R\         P                  V^RRR7      ,           p\        P                  ! V4      pV P	                  W54       VR8X  d   ^ pK\  V^,          pKg  	  \        P                  ! R4      pV P	                  VR4       \        P                  ! R4      pV P	                  VR4       \        P                  ! R4      pV P	                  VR	4       \        P                  ! R
4      pV P	                  VR4       R# )      IlittleT)signeds	   IܺvT2l   \u1Q s	   I#Egs	   I*;L]nl   Tv0ur{ s	   IĳNl    r*   l\u1Q l	Tv0ur{ )intto_bytesr   r   r   )r   maxint64minint64basesgots   &     r   
test_int64IntTestCase.test_int64/   s     9Q;	X]3CCD$3<<a$<GGmmA&  +2:DQJD D mm@A01mm@A12mm@A01mm@A12r(   c                :    R F  pV P                  V4       K  	  R# )TN)TFr   )r   bs   & r   	test_boolIntTestCase.test_boolF   s    AKKN r(   r   N)	r    r!   r"   r#   r7   rE   rJ   r$   r%   r&   s   @r   r/   r/   &   s     3. r(   r/   c                   &   a  ] tR t^Jt o R tRtV tR# )FloatTestCasec                f   R p\         P                  R,          pW!8  d2   V) V3 F  pV P                  \        V4      4       K  	  VR,          pK7  Rp\        P
                  ! V^4      p\        P                  ! V4      pV P                  WF4       \        P
                  ! V^4      p\        P                  ! V4      pV P                  WF4       \         P                  R,          pW!8  dF   V) V3 F1  p\        V4      pV P                  V4       V P                  V^4       K3  	  VR,          pKK  R# )g}:g6ҫsgS:^@g        gZ1%N)r3   r4   r   floatr   r   r   r   )r   smallr5   r6   r   rC   rD   s   &      r   test_floatsFloatTestCase.test_floatsK   s    KK'!iRGE(O, $MAMM!QmmA MM!QmmA KK("iRG(OAAq! $ MA r(   r   N)r    r!   r"   r#   rQ   r$   r%   r&   s   @r   rM   rM   J   s      r(   rM   c                   2   a  ] tR t^et o R tR tR tRtV tR# )StringTestCasec                    R RRRR,          3 F<  pV P                  \        P                  ! \        P                  ! V4      4      4       K>  	  R#     Andrè Previnabc '  N)r   r   r   r   r   rC   s   & r   test_unicodeStringTestCase.test_unicodef   s8    'E	:AKKgmmA&678 ;r(   c                P    R RRRR,          3 F  pV P                  V4       K  	  R# rV   rH   r\   s   & r   test_stringStringTestCase.test_stringj   s%    'E	:AKKN ;r(   c                P    R RRRR,          3 F  pV P                  V4       K  	  R# )r(   s   Andr Previn   abc    r[   NrH   r\   s   & r   
test_bytesStringTestCase.test_bytesn   s%    )64:>AKKN ?r(   r   N)	r    r!   r"   r#   r]   r`   re   r$   r%   r&   s   @r   rT   rT   e   s     9 r(   rT   c                   &   a  ] tR t^rt o R tRtV tR# )ExceptionTestCasec                    \         P                  ! \         P                  ! \        4      4      pV P	                  \        V4       R # N)r   r   r   StopIterationr   )r   r   s   & r   test_exceptions!ExceptionTestCase.test_exceptionss   s)    mmGMM-89,r(   r   N)r    r!   r"   r#   rl   r$   r%   r&   s   @r   rh   rh   r   s     - -r(   rh   c                   v   a  ] tR t^wt o R tR tR tR t]! 4       R 4       t	]
P                  R 4       tRtV tR# )	CodeTestCasec                    \         P                  P                  p\        P                  ! \        P
                  ! V4      4      pV P                  W4       R # rj   )rh   rl   __code__r   r   r   r   )r   cor   s   &  r   	test_codeCodeTestCase.test_codex   s8    ..77mmGMM"-.!r(   c                    \         P                  P                  3R ,          p\        P                  ! \        P
                  ! V4      4       R# )r[   N)rh   rl   rq   r   r   r   )r   codess   & r   test_many_codeobjects"CodeTestCase.test_many_codeobjects}   s2     #22;;=FgmmE*+r(   c                   \        R RR4      p\        RRR4      p\        P                  ! \        P                  ! W34      4      w  rV P	                  VP
                  R4       V P	                  VP
                  R4       R# )xf1execyf2N)compiler   r   r   r   co_filename)r   co1co2s   &  r   test_different_filenames%CodeTestCase.test_different_filenames   sa    c4(c4(==z!:;$/$/r(   c                   R ^ 03./p\         P                  ! VRR7      pV P                  \         P                  ! VRR7      V4       \        P
                  ! 4       p\         P                  ! WRR7       VP                  ^ 4       V P                  \         P                  ! VRR7      V4       \        P                  P                  pR V^ 03./p\         P                  ! VRR7      pV P                  \         P                  ! VRR7      V4       V P                  \        4      ;_uu_ 4        \         P                  ! VRR7       RRR4       V P                  \        4      ;_uu_ 4        \         P                  ! VRR7       RRR4       \         P                  ! V\        P
                  ! 4       RR7       V P                  \         P                  ! \        P
                  ! V4      RR7      V4       V P                  \        4      ;_uu_ 4        \         P                  ! V\        P
                  ! 4       RR7       RRR4       V P                  \        4      ;_uu_ 4        \         P                  ! \        P
                  ! V4      RR7       RRR4       R#   + '       g   i     EL]; i  + '       g   i     EL3; i  + '       g   i     L; i  + '       g   i     R# ; i)aF)
allow_codeTN)r   r   r   r   ioBytesIOr   seekr   rh   rl   rq   assertRaises
ValueError)r   r,   r   r   rr   s   &    r   test_no_allow_codeCodeTestCase.test_no_allow_code   s   sfX}}Te4t>EJJLT/	q	aE:DA..77Awj\"}}Td3t=tDz**MM$51 +z**MM$51 + 	T2::<D9bjj&64H$Oz**LLrzz|> +z**LLD)e< +* +*****
 +****s0   -J+J.-K#-KJ+	.J?	K	K&	c                   \         P                  P                  p\        P                  ! R 4      p \        \        P                  R4      ;_uu_ 4       p\        P                  ! W4       RRR4       \        RRRV\        P                  4       \        P                  ! \        P                  4       R#   + '       g   i     LS; i  \        P                  ! \        P                  4       i ; i)a  
        import sys
        import marshal
        with open(sys.argv[1], 'rb') as f:
            co = marshal.load(f)
            positions = list(co.co_positions())
            assert positions[0][2] is None
            assert positions[0][3] is None
        r   Nz-Xno_debug_ranges-c)rh   rl   rq   textwrapdedentr   r   r   r   r   r   r   )r   rr   coder   s   &   r   +test_minimal_linetable_with_no_debug_ranges8CodeTestCase.test_minimal_linetable_with_no_debug_ranges   s     ..77   	/i&&--R# . T#4!4)9)9; Y--. .- Y--.s#   "C	 B6+%C	 6C	C	 	&C/c                .   R p\        VRR4      p\        P                  ! \        P                  ! V4      4      pVP                   FK  p\        V\        P                  4      '       g   K%  V P                  VP                  VP                  4       KM  	  R# )zdef f(): pass
def g(): passmyfiler|   N)
r   r   r   r   	co_consts
isinstancetypesCodeTypeassertIsr   )r   rC   rr   objs   &   r   test_same_filename_used$CodeTestCase.test_same_filename_used   sa    .Q&)]]7==,-<<C#u~~..bnncoo>  r(   r   N)r    r!   r"   r#   rs   rw   r   r   r   r   r   cpython_onlyr   r$   r%   r&   s   @r   ro   ro   w   sJ     "
,0=4 / /. ? ?r(   ro   c                   ^   a  ] tR t^t o RRRRRRR^RR.R	RR
RRR/tR tR tR tR tRt	V t
R# )ContainerTestCaseastringzfoo@bar.baz.spamafloatgHzns@anint
ashortlongalist.zyx.41atupleabooleanFaunicoderX   c                <    V P                  V P                  4       R # rj   )r   dr   s   &r   	test_dictContainerTestCase.test_dict   s    DFFr(   c                j    V P                  \        V P                  P                  4       4      4       R # rj   )r   listr   itemsr   s   &r   	test_listContainerTestCase.test_list   s    D()r(   c                j    V P                  \        V P                  P                  4       4      4       R # rj   )r   tupler   keysr   s   &r   
test_tupleContainerTestCase.test_tuple   s    E$&&++-()r(   c                    \         \        3 F2  pV P                  V! V P                  P	                  4       4      4       K4  	  R # rj   )set	frozensetr   r   r   )r   constructors   & r   	test_setsContainerTestCase.test_sets   s,    +KKKDFFKKM23 ,r(   r   N   )
r   r   r   r   r   r   r   r   r   r   )r    r!   r"   r#   r   r   r   r   r   r$   r%   r&   s   @r   r   r      sQ     	&	7	%	q	9+	?	U	&	A**4 4r(   r   c                   2   a  ] tR t^t o R tR tR tRtV tR# )BufferTestCasec                    \        R 4      pV P                  V4       \        P                  ! \        P                  ! V4      4      pV P                  \        V4      \        4       R# rc   N)	bytearrayr   r   r   r   r   typebytesr   rI   r   s   &  r   test_bytearrayBufferTestCase.test_bytearray   sB    fAmmGMM!,-cE*r(   c                    \        R 4      pV P                  V4       \        P                  ! \        P                  ! V4      4      pV P                  \        V4      \        4       R# r   )
memoryviewr   r   r   r   r   r   r   r   s   &  r   test_memoryviewBufferTestCase.test_memoryview   sB    vAmmGMM!,-cE*r(   c                    \         P                   ! R R4      p\        P                  ! \        P                  ! V4      4      pV P	                  VR4       R# )Brc   N)arrayr   r   r   r   )r   r   r   s   &  r   
test_arrayBufferTestCase.test_array   s9    KKV$mmGMM!,-f%r(   r   N)	r    r!   r"   r#   r   r   r   r$   r%   r&   s   @r   r   r      s     ++& &r(   r   c                   t   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V tR# )BugsTestCasec                B    \         P                  ! ^.R,          4       R# )     N)r   r   r   s   &r   test_bug_5888452BugsTestCase.test_bug_5888452   s    sedl#r(   c           
     ,   V P                  \        \        P                  R 4       V P                  \        \        P                  R4       V P                  \        \        P                  \	        \        P
                  ! ^^A,          4      4      4       R# )   0   fN)r   	Exceptionr   r   r-   r   r   s   &r   test_patch_873224BugsTestCase.test_patch_873224   sZ    )W]]D9)W]]D9)W]](q"u)=>	@r(   c                    V P                  \        P                  ! \        P                  ! ^^ 4      4      ^4       V P                  \        P                  ! \        P                  ! ^^4      4      ^4       R# )   N)r   r   r   r   r   s   &r   test_version_argument"BugsTestCase.test_version_argument   sJ    w}}Q':;Q?w}}Q':;Q?r(   c                    \        R 4       F&  p\        V.4      p \        P                  ! V4       K(  	  R#   \         d     K:  i ; i)   N)ranger   r   r   r   )r   ics   &  r   	test_fuzzBugsTestCase.test_fuzz  sB     sAqc
Aa    s   8AAc                Z   a  R  pV! ^d\         P                  4       V 3R lpV! RV4       R# )c                     V! R V ,          R,           4       V! RV ,          R,           4       V! RV ,          R,           4       V! RV ,          R,           RV ,          ,           4       V! RV ,          R,           4       R# )s   )   Ns   (   s   [   s   {Nr   s   >   Nr   )Nchecks   &&r   	run_tests4BugsTestCase.test_loads_recursion.<locals>.run_tests  sf    (Q,%&&*T12&*T12%!)d"TAX-.&*T12r(   c                 R   < SP                  \        \        P                  V 4       R # rj   r   r   r   r   )rC   r   s   &r   r   0BugsTestCase.test_loads_recursion.<locals>.check  s    j'--;r(   Nr   )r   r   )r   r   r   s   f  r   test_loads_recursion!BugsTestCase.test_loads_recursion  s'    		3 	#w}}%	<%r(   c                   . ;r\         P                  R 8X  d   RpM2\        P                  R8X  g   \        '       g   \
        '       d   RpMRp\        V^,
          4       F  pVP                  ^ .4       VR,          pK   	  \        P                  ! V4      p\        P                  ! V4      pV P                  \        V4      \        V4      4       V P                  \        V^ ,          4      \        V^ ,          4      4       V P                  \        VR,          4      \        VR,          4      4       VP                  ^ .4       V P                  \        \        P                  V4       R# )ntr   wasii  i  Nr*   )osnamer3   platformr   r   r   appendr   r   r   r   lenr   r   )r   headlastMAX_MARSHAL_STACK_DEPTHr   r,   new_heads   &      r   test_recursion_limit!BugsTestCase.test_recursion_limit  s   
 77d?&*#\\V#}}&*#&*#.23AKK8D 4
 }}T"==&XD	2Xa[)3tAw<8Xb\*CRM:QC*gmmT:r(   c                    \         \        \        \        \        \
        \        \        3 F;  p\        R V3/ 4      pV P                  \        \        P                  V! 4       4       K=  	  R# )subtypN)r>   rO   complexr   r   dictr   r   r   r   r   r   r   )r   typr	  s   &  r   test_exact_type_match"BugsTestCase.test_exact_type_match;  sJ    
 dCKC (SFB/Fj'--B	 Lr(   c                Z    \        R 4      pRV,          p\        P                  ! V4       R# )g    .ArY   N)r>   r   r   )r   size
testStrings   &  r   test_large_marshalBugsTestCase.test_large_marshalH  s     3xT\
j!r(   c                T    R pV P                  \        \        P                  V4       R# )s	   l       Nr   )r   invalid_strings   & r   test_invalid_longsBugsTestCase.test_invalid_longsM  s    =*gmm^Dr(   c           
        ^RRR^RRR.33pR
 EF\  p\        V4      p. p \        \        P                  R4      ;_uu_ 4       pV FQ  p\        P
                  ! We4       V'       d   VP                  V4       VP                  VP                  4       4       KS  	  RRR4       \        \        P                  R	4      ;_uu_ 4       p\        V4       Fj  w  rvV P                  V\        P                  ! V4      4       V'       d   VP                  V4       V P                  WG,          VP                  4       4       Kl  	  RRR4       \        P                  ! \        P                  4       EK_  	  R#   + '       g   i     L; i  + '       g   i     LN; i  \        P                  ! \        P                  4       i ; i)r:   rY   s   def      ?r   rI      cr   Nr   )r(   s   0123)r  r   r   r   r   r   writer   tell	enumerater   r   readr   )r   r,   interleavedilen	positionsr   r   r   s   &       r   test_multiple_dumps_and_loads*BugsTestCase.test_multiple_dumps_and_loadsR  s9    5&#3d'<=)K{#DI3)**D11Q!Q*GGK0!((2	 " 2 )**D11Q )$((GLLO<FF4L((qvvx@	 !0 2   !1!12# * 21 21   !1!12s=   "FAE2*FA:F?F2F=FFF&F>c                T    R pV P                  \        \        P                  V4       R# )TN)r   	TypeErrorr   r   )r   unicode_strings   & r   !test_loads_reject_unicode_strings.BugsTestCase.test_loads_reject_unicode_stringsj  s    )W]]NCr(   c           
          ! R  R\         P                  4      pR FB  pV P                  \        \        P
                  V! \        P                  ! V4      4      4       KD  	  R# )c                   2   a a ] tR tRt oV 3R ltRtVtV ;t# )/BugsTestCase.test_bad_reader.<locals>.BadReaderip  c                N   < \         SV `  V4      pVe   V^8  d
   VR,          pV# )Ni@B )superreadinto)r   bufr5   	__class__s   && r   r/  8BugsTestCase.test_bad_reader.<locals>.BadReader.readintoq  s+    G$S)=QUJAr(   r   )r    r!   r"   r#   r/  r$   r%   __classcell__)r1  r'   s   @@r   	BadReaderr,  p  s      r(   r4  N)r  y              ?s
   0123456789
0123456789)r   r   r   r   r   r   r   )r   r4  values   &  r   test_bad_readerBugsTestCase.test_bad_readero  sE    	

 	 <Ej',,'e(<=? <r(   c                    \         P                  ! R4      p\        \        V4      4       F+  pV P	                  \
        \         P                  V^ V 4       K-  	  R# )helloN)r:  dollyN)r   r   r   r  r   EOFErrorr   )r   r,   r   s   &  r   test_eofBugsTestCase.test_eofz  s@    }}56s4y!AhtAqzB "r(   c           	        R F  pR F  pV RV R2pV P                  V4      ;_uu_ 4        \        P                  P                  R9   d6   RRV R2.p\	        VRR/ w  rVp\	        VRR/ w  rWpV P                  Wg4       RR	V R
2.p\	        VRR/ w  rXp\	        VRR/ w  rYpV P                  W4       RRR4       K  	  K  	  R#   + '       g   i     K  ; i)r   z([z])r   zprint()PYTHONHASHSEED01z$import marshal; print(marshal.dumps(z))N)r   r   )z-float('nan'), b'a', b'b', b'c', 'x', 'y', 'z'zL('Spam', 0), ('Spam', 1), ('Spam', 2), ('Spam', 3), ('Spam', 4), ('Spam', 5)>   fnv	siphash24)subTestr3   	hash_info	algorithmr   assertNotEqualr   )
r   kindelementsrC   args_repr_0repr_1dump_0dump_1s
   &         r   test_deterministic_sets$BugsTestCase.test_deterministic_sets  s     )D
 fBxj+\\!__ }}..2FF $qcm4'7'Rc'R1'7'Rc'R1++F; $H2"NOD#3T#N##NLAq#3T#N##NLAq$$V4 %_ ) %__s   B
C	Cr   N)r    r!   r"   r#   r   r   r   r   r   r  r  r  r  r"  r(  r7  r=  rR  r$   r%   r&   s   @r   r   r      sV     $@@
 &;8	C"
E
30D
	?C
5 5r(   r   l    c                   &   a  ] tR tRt o R tRtV tR# )
NullWriteri  c                    R # rj   r   r\   s   &&r   r  NullWriter.write  s    r(   r   N)r    r!   r"   r#   r  r$   r%   r&   s   @r   rU  rU    s      r(   rU  z!test cannot run on 32-bit systemsc                   P  a  ] tR tRt o R t]P                  ! ]^RR7      R 4       t]P                  ! ]^RR7      R 4       t	]P                  ! ]]
^,           RR7      R 4       t]P                  ! ]]
^,           RR7      R 4       t]P                  ! ]]
^,          ]P                  ! ]^,
          4      ,           RR7      R	 4       t]P                  ! ]]
^,          ]P                  ! ]^,
          4      ,           RR7      R
 4       t]P                  ! ]^RR7      R 4       tRtV tR# )LargeValuesTestCasei  c                b    V P                  \        \        P                  V\	        4       4       R # rj   )r   r   r   r   rU  )r   r,   s   &&r   check_unmarshallable(LargeValuesTestCase.check_unmarshallable  s    *gllD*,Gr(   F)r  memusedry_runc                6    V P                  R V,          4       R# )   xNr[  r   r  s   &&r   re   LargeValuesTestCase.test_bytes  s    !!$+.r(   c                6    V P                  R V,          4       R# )rz   Nra  rb  s   &&r   test_strLargeValuesTestCase.test_str  s    !!#*-r(   c                6    V P                  RV,          4       R # )Nrj   ra  rb  s   &&r   r   LargeValuesTestCase.test_tuple  s    !!'D.1r(   c                8    V P                  R .V,          4       R # rj   ra  rb  s   &&r   r   LargeValuesTestCase.test_list  s    !!4&4-0r(   c                L    V P                  \        \        V4      4      4       R # rj   )r[  r   r   rb  s   &&r   test_setLargeValuesTestCase.test_set  s     	!!#eDk"23r(   c                L    V P                  \        \        V4      4      4       R # rj   )r[  r   r   rb  s   &&r   test_frozenset"LargeValuesTestCase.test_frozenset  s     	!!)E$K"89r(   c                :    V P                  \        V4      4       R # rj   )r[  r   rb  s   &&r   r   "LargeValuesTestCase.test_bytearray  s    !!)D/2r(   r   N)r    r!   r"   r#   r[  r   
bigmemtest
LARGE_SIZEre   re  pointer_sizer   r   r3   	getsizeofrl  ro  r   r$   r%   r&   s   @r   rY  rY    sC    H Z5A/ B/ Z5A. B. Zq0@%P2 Q2 Zq0@%P1 Q1 Z?S]]:a<%@@44 Z?S]]:a<%@@:: Z5A3 B3r(   rY  c                p   \        V4      V 9   d   R# V P                  \        V4      4       \        V\        \        \
        \        34      '       d   V F  p\        W4       K  	  ME\        V\        4      '       d0   VP                  4        F  w  r4\        W4       \        W4       K  	  \        V 4      # )z&Collect object ids seen in a structureN)idaddr   r   r   r   r   CollectObjectIDsr  r   r  )idsr   ekvs   &&   r   rz  rz    s    	#w#~GGBsG#eS)455AS$ 	C		IIKDAS$S$   s8Or(   c                      a  ] tR tRt o ^{RRR]! ^{R04      3tRR l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V tR# )InstancingTestCasei  獗n?rY   c                z   W3p\        \        4       V4      p\        ^\        P                  ^,           4       FR  p\        P
                  ! WF4      p\        \        4       \        P                  ! V4      4      pV P                  W4       KT  	  V'       g   \        P
                  ! V^4      p	\        \        4       \        P                  ! V	4      4      p
V P                  W4       V'       g'   V P                  \        V	4      \        X4      4       R# V P                  \        V	4      \        X4      4       R# R#    N)rz  r   r   r   versionr   r   r   assertGreaterr  assertGreaterEqual)r   rsample	recursivesimpler   n0r~  s3n3s2n2s   &&&&       r   helper3InstancingTestCase.helper3  s    #ceV,q'//A-.Av)B!#%r):;B R$ / vq)B!#%r):;Br& ""3r7CG4''BR9 r(   c                R    R pV P                  V4       V P                  VRR7       R# )i T)r  Nr   r  )r   intobjs   & r   testIntInstancingTestCase.testInt  s#    FVD)r(   c                N    R pV P                  V4       V P                  V4       R# )r  Nr  )r   floatobjs   & r   	testFloatInstancingTestCase.testFloat  s    HXr(   c                N    RpV P                  V4       V P                  V4       R# )abcdeNabcdeabcdeabcder  )r   strobjs   & r   testStrInstancingTestCase.testStr  s    FVr(   c                N    RpV P                  V4       V P                  V4       R# )s   abcdeNs   abcdeabcdeabcder  )r   bytesobjs   & r   	testBytesInstancingTestCase.testBytes  s    HXr(   c                v    V P                    F(  pW.pV P                  V4       V P                  V4       K*  	  R # rj   r   r   r  )r   r   listobjs   &  r   testListInstancingTestCase.testList  s/    99CjGKK LL! r(   c                v    V P                    F(  pW3pV P                  V4       V P                  V4       K*  	  R # rj   r  )r   r   tupleobjs   &  r   	testTupleInstancingTestCase.testTuple  s/    99CzHKK!LL" r(   c                    V P                    F-  pV^3V^30pV P                  V4       V P                  V4       K/  	  R# r:   Nr  )r   r   setobjs   &  r   testSetInstancingTestCase.testSet  s:    99CAha)FKKLL  r(   c                    V P                    F6  p\        V^3V^304      pV P                  V4       V P                  V4       K8  	  R# r  )r   r   r   r  )r   r   frozensetobjs   &  r   testFrozenSet InstancingTestCase.testFrozenSet  s?    99C$sAha%9:LKK%LL& r(   c                ~    V P                    F,  pR VRWR /pV P                  V4       V P                  V4       K.  	  R# )r:  goodbyeNr  )r   r   dictobjs   &  r   testDictInstancingTestCase.testDict  s8    99CY'BGKK LL! r(   c                *   \        \        R 4      ;_uu_ 4       pVP                  4       pRRR4       \        P                  R4      '       d   \	        X\        R4      pV P                  X4       V P                  V4       R#   + '       g   i     L`; ir   Nz.pyr|   )r   __file__r  endswithr   r   r  )r   r   r   s   &  r   
testModuleInstancingTestCase.testModule$  sa    (D!!Q668D "U##462DDT "!s   BB	c                    R pRVRWR/pW"R&   V P                  VRR7       W.pVP                  V4       V P                  VRR7       R# )r  r:  r  r   T)r  N)r  r   )r   r   r   ls   &   r   testRecursion InstancingTestCase.testRecursion,  sP    c9c8&	Q$'J	Q$'r(   r   N){   rY   )FF)r    r!   r"   r#   r   r   r  r  r  r  r  r  r  r  r  r  r  r  r$   r%   r&   s   @r   r  r    s_     ie.EFD:4*



"#!'"( (r(   r  c                   >   a  ] tR tRt o R tR tR tR tR tRt	V t
R# )	CompatibilityTestCasei5  c                @   \        \        R 4      ;_uu_ 4       pVP                  4       pRRR4       \        P                  R4      '       d   \	        X\        R4      p\
        P                  ! XV4      p\
        P                  ! V4       R#   + '       g   i     Lk; ir  )r   r  r  r  r   r   r   r   )r   r  r   r   r,   s   &&   r   _testCompatibilityTestCase._test6  se    (D!!Q668D "U##462D}}T7+d "!s   BB	c                (    V P                  ^ 4       R# )r   Nr  r   s   &r   test0To3CompatibilityTestCase.test0To3>      

1r(   c                (    V P                  ^4       R# r  r  r   s   &r   test1To3CompatibilityTestCase.test1To3A  r  r(   c                (    V P                  ^4       R# r1   r  r   s   &r   test2To3CompatibilityTestCase.test2To3D  r  r(   c                (    V P                  ^4       R# r  r  r   s   &r   test3To3CompatibilityTestCase.test3To3G  r  r(   r   N)r    r!   r"   r#   r  r  r  r  r  r$   r%   r&   s   @r   r  r  5  s#      r(   r  c                   T   a  ] tR tRt o Rt]P                  ! ]4      tR tR tRt	V t
R# )InterningTestCaseiJ  zthis is an interned stringc                t   \         P                  ! \         P                  ! V P                  4      4      pV P	                  WP                  4       V P	                  \        V4      \        V P                  4      4       \        P                  ! V4      pV P	                  \        V4      \        V4      4       R # rj   )r   r   r   r  r   rx  r3   internr   rC   r  s   &  r   
testInternInterningTestCase.testInternN  sp    MM'--45KK(A4;;0ZZ]BA'r(   c                v   \         P                  ! \         P                  ! V P                  ^4      4      pV P	                  WP                  4       V P                  \        V4      \        V P                  4      4       \        P                  ! V4      pV P                  \        V4      \        V4      4       R# r1   )	r   r   r   r  r   rI  rx  r3   r  r  s   &  r   testNoInternInterningTestCase.testNoInternU  sr    MM'--Q78KK(BqE2dkk?3ZZ]BrFBqE*r(   r   N)r    r!   r"   r#   r  r3   r  r  r  r$   r%   r&   s   @r   r  r  J  s'     )FZZF(+ +r(   r  c                   &   a  ] tR tRt o R tRtV tR# )SliceTestCasei\  c                   \        R 4      \        ^4      \        ^^4      \        ^^^4      \        R0RRR/3V P                  P                  4      3 F  pV P                  \	        V4      R7      ;_uu_ 4        V P                  V4       \        ^4       F?  pV P                  \        4      ;_uu_ 4        \        P                  ! W4       R R R 4       KA  	  R R R 4       K  	  R #   + '       g   i     Kb  ; i  + '       g   i     K  ; i)Nr   r   withr  )r   )
r+   r   rq   rF  strr   r   r   r   r   )r   r   r  s   &  r   
test_sliceSliceTestCase.test_slice]  s    $Kq5A;aA5'Gff%58$++:N:NO
C #c(++C $QxG**:66c3 76  ( ,+	
 766	 ,++s$   9=C;6C'C;'C82	C;;Dr   N)r    r!   r"   r#   r  r$   r%   r&   s   @r   r  r  \  s     
4 
4r(   r  zrequires _testcapic                   D   a  ] tR tRt o R tR tR tR tR tR t	Rt
V tR	# )
CAPI_TestCaseii  c                   \        \        P                  ^,           4       F  p\        P                  ! R\
        P                  V4       \        \
        P                  R4      ;_uu_ 4       pVP                  4       pRRR4       \
        P                  ! \
        P                  4       V P                  XR4       K  	  R#   + '       g   i     LL; i)r:   xV4r   Ns   xV4)r   r   r  	_testcapipymarshal_write_long_to_filer   r   r   r  r   r   )r   r~  r   r,   s   &   r   test_write_long_to_file%CAPI_TestCase.test_write_long_to_filem  s    w*+A22:y?O?OQRSi&&--vvx .Y--.T#67 ,--s   ,CCc                   R R^{RRRR,          3p\        \        P                  ^,           4       F  p\        P                  ! V\
        P                  V4       \        \
        P                  R4      ;_uu_ 4       pVP                  4       pRRR4       \
        P                  ! \
        P                  4       V P                  \        P                  ! X4      V4       K  	  R#   + '       g   i     L`; i)   €rc   F@z
long line r   r   N      @       @)r   r   r  r  pymarshal_write_object_to_filer   r   r   r  r   r   r   )r   r   r~  r   r,   s   &    r   test_write_object_to_file'CAPI_TestCase.test_write_object_to_fileu  s    dD,t2CDw*+A44S):J:JANi&&--vvx .Y--.W]]40#6 ,--s   ;C$$C4c                "   \        \        P                  R 4      ;_uu_ 4       pVP                  R4       RRR4       \        P
                  ! \        P                  4      w  r#\        P                  ! \        P                  4       V P                  VR4       V P                  V^4       \        \        P                  R 4      ;_uu_ 4       pVP                  R4       RRR4       V P                  \        4      ;_uu_ 4        \        P
                  ! \        P                  4       RRR4       \        P                  ! \        P                  4       R#   + '       g   i     EL+; i  + '       g   i     L; i  + '       g   i     L]; i)r   s   4xxxxNi4     )
r   r   r   r  r  pymarshal_read_short_from_filer   r   r   r<  r   r   rps   &   r   test_read_short_from_file'CAPI_TestCase.test_read_short_from_file~  s    )""D))QGGO$ *77	8H8HI))*F#A)""D))QGGG *x((44Y5E5EF )))* *)) *)((#   EE+%E>E(	+E;	>F	c                "   \        \        P                  R 4      ;_uu_ 4       pVP                  R4       RRR4       \        P
                  ! \        P                  4      w  r#\        P                  ! \        P                  4       V P                  VR4       V P                  V^4       \        \        P                  R 4      ;_uu_ 4       pVP                  R4       RRR4       V P                  \        4      ;_uu_ 4        \        P
                  ! \        P                  4       RRR4       \        P                  ! \        P                  4       R#   + '       g   i     EL+; i  + '       g   i     L; i  + '       g   i     L]; i)r   s   xV4xxxxNr  s   V4)
r   r   r   r  r  pymarshal_read_long_from_filer   r   r   r<  r  s   &   r   test_read_long_from_file&CAPI_TestCase.test_read_long_from_file  s    )""D))QGG+, *66y7G7GH))*J'A)""D))QGGO$ *x((33I4D4DE )))* *)) *)((r  c                   Rp\        \        P                  ^,           4       EFk  p\        P                  ! W4      p\	        \
        P                  R4      ;_uu_ 4       pVP                  VR,           4       RRR4       \        P                  ! \
        P                  4      w  rV\
        P                  ! \
        P                  4       V P                  WQ4       \	        \
        P                  R4      ;_uu_ 4       pVP                  \        V4      4       RRR4       V P                  \        4      ;_uu_ 4        \        P                  ! \
        P                  4       RRR4       \
        P                  ! \
        P                  4       EKn  	  R#   + '       g   i     EL&; i  + '       g   i     L; i  + '       g   i     Lb; ir  r   s   xxxxN)r  rc   r  r  r  )r   r   r  r   r   r   r   r  r  $pymarshal_read_last_object_from_filer   r   r-   r   r<  r   r   r~  r,   r   r  r  s   &      r   test_read_last_object_from_file-CAPI_TestCase.test_read_last_object_from_file  s   1w*+A==(Di&&--w' .AA)BRBRSDAY--.Q$i&&--t,- .""8,,>>y?O?OP -Y--. ,--- .-,,s$   F=F)=%F<F&)F9<Gc                   Rp\        \        P                  ^,           4       EF  p\        P                  ! W4      p\	        \
        P                  R4      ;_uu_ 4       pVP                  VR,           4       RRR4       \        P                  ! \
        P                  4      w  rV\
        P                  ! \
        P                  4       V P                  WQ4       V P                  V\        V4      4       \	        \
        P                  R4      ;_uu_ 4       pVP                  \        V4      4       RRR4       V P                  \        4      ;_uu_ 4        \        P                  ! \
        P                  4       RRR4       \
        P                  ! \
        P                  4       EK  	  R#   + '       g   i     ELA; i  + '       g   i     L; i  + '       g   i     Lb; ir  )r   r   r  r   r   r   r   r  r  pymarshal_read_object_from_filer   r   r  r-   r   r<  r
  s   &      r   test_read_object_from_file(CAPI_TestCase.test_read_object_from_file  s(   1w*+A==(Di&&--w' .<<Y=M=MNDAY--.Q$QD	*i&&--t,- .""8,,99):J:JK -Y--. ,--- .-,,s$   F0G%G0GGG'r   N)r    r!   r"   r#   r  r  r   r  r  r  r$   r%   r&   s   @r   r  r  i  s(     87++/ / /r(   r  __main__l        ).testr   test.supportr   r   r   r   test.support.script_helperr   r   r   r   r3   unittestr   r   r   r  ImportErrorr
   r-   TestCaser/   rM   rT   rh   ro   r   r   r   rt  r4   ru  rU  skipIfrY  rz  r  r  r  r  r   
skipUnlessr  r    mainr   r(   r   <module>r     s    Y Y 7  	  
  	  / /"(##[ "HH%%{ 6X&& -)) -
L?8$$ L?\4)); 42&X&& &(g58$$ g5R 
KK*,q!  
ckk)+NO"3(++ "3 P"3H^(**K ^(@H-- *+)); +$4H%%{ 4 		Y 45N/H%%{ N/ 6 N/b zMMO [  Is   H 	HH