+
    Bi8                         ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt  ! R R]P                  4      t
]R8X  d   ]P                  ! 4        R# R# )    N)script_helperc                      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V tR# )StructSeqTestc                   \         P                  ! 4       pV P                  V\        4       \        V4      pV P	                  \        V4      \        V4      4       V P	                  W4       \        \        V4      ) \        V4      4       FU  pV P	                  WR  W#R  4       \        \        V4      ) \        V4      4       F  pV P	                  WV W#V 4       K  	  KW  	  \        \        V4      ) \        V4      4       F  pV P	                  VR V VR V 4       K  	  V P                  \        VP                  \        V4      ) ^,
          4       V P                  \        VP                  \        V4      4       \        \        V4      ) \        V4      ^,
          4       F!  pV P	                  W,          W#,          4       K#  	  R # N)
timegmtimeassertIsInstancetupleassertEquallenrangeassertRaises
IndexError__getitem__)selftastupleijs   &    */usr/lib/python3.14/test/test_structseq.py
test_tupleStructSeqTest.test_tuple   s\   KKMa'(QW.$ AwA'AQrUGBK0CF7CF+  Q16 , (
 AwA'AQrUGBQK0 ( 	*ammc!fWQY?*ammSV<AwAq)AQT7:. *    c                   \         P                  ! 4       pV P                  \        V4      4       \         P                  ! ^ 4      pV P	                  \        V4      R4       \
        P                  ! \        4      p\        V4      pV P                  VR4       V P                  RV4       V P                  RV4       V P                  RV4       R# )r   zttime.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0)zos.stat_resultzst_mode=zst_ino=zst_dev=N)
r   r	   
assertTruereprr   osstat__file__assertStartsWithassertIn)r   r   streps   &   r   	test_reprStructSeqTest.test_repr#   s    KKMQ KKNaD	E WWX2hc#34j#&i%i%r   c           	         \         P                  ! 4       pV\        V4      ,           p\        \	        V4      4       F1  pV P                  W#,          W#\	        V4      ,           ,          4       K3  	  R # r   )r   r	   r   r   r   r   r   t1t2r   s   &   r   test_concatStructSeqTest.test_concat2   sH    [[]%)^s2wARUBRyM2  r   c           
     >   \         P                  ! 4       p^V,          p\        \        V4      4       Ff  pV P	                  W#,          W#\        V4      ,           ,          4       V P	                  W#,          W#^\        V4      ,          ,           ,          4       Kh  	  R# )   N)r   r	   r   r   r   r(   s   &   r   test_repeatStructSeqTest.test_repeat8   sd    [[]Vs2wARUBRyM2RUB3r7{O4  r   c                    \         P                  ! 4       pV F  pV P                  W!4       K  	  V P                  RV4       R# )*   Ni)r   r	   r"   assertNotIn)r   r)   items   &  r   test_containsStructSeqTest.test_contains?   s3    [[]DMM$# b!r   c                    \         P                  ! 4       pV P                  \        V4      \        \	        V4      4      4       R # r   )r   r	   r   hashr   )r   r)   s   & r   	test_hashStructSeqTest.test_hashE   s)    [[]b4b	?3r   c                8   \         P                  ! 4       p\        V4      ! V4      pV P                  W4       V P	                  W8  * 4       V P	                  W8*  4       V P	                  W8  * 4       V P	                  W8  4       V P	                  W8w  * 4       R # r   )r   r	   typer   r   )r   r)   r*   s   &  r   test_cmpStructSeqTest.test_cmpI   sn    [[]"Xb\ R&!R&!R'r   c                   \         P                  ! 4       pV P                  \        V4      VP                  4       V P                  VP
                  ^ 4       V P                  VP                  \         P                  4       R# r   N)r   r	   r   r   n_sequence_fieldsn_unnamed_fieldsn_fields_STRUCT_TM_ITEMSr   r   s   & r   test_fieldsStructSeqTest.test_fieldsS   sW    KKMQ!4!45++Q/T%:%:;r   c                   \         P                  pV P                  \        V4       V P                  \        VR 4       V P                  \        VR4       V P                  \        VR/ R7       V P                  \        VRR R7       V P                  \        VR/ R7       V P	                  V! R4      \        R4      4       V P	                  V! R/ 4      \        R4      4       V P	                  V! R/ R7      \        R4      4       V P	                  V! R/ R7      \        R4      4       V P	                  V! R4      \        R4      4       V P	                  V! R4      P                  R4       V P	                  V! RRR	/4      \        R4      4       V P	                  V! RRR	/4      P                  R	4       RpV P	                  R
P                  V! V4      4      V4       R # )N123dict	123456789)seqrK   )sequencerK   
12345678900tm_zone	some zone )r   struct_timer   	TypeErrorr   r   rQ   join)r   r   ss   &  r   test_constructorStructSeqTest.test_constructorY   s   )Q')Q-)Q.)QB7)Q$?)QKbA;{);<;+U;-?@;R0%2DEKb95;MN<%*<=<00#6;K(@A5CUV;K(@AII;W1*r   c                   \         P                  p\        P                  ! R 4      pV P	                  \
        V4      ;_uu_ 4        V! RRR/R7       RRR4       V P	                  \
        V4      ;_uu_ 4        V! RRRR^/R7       RRR4       V P	                  \
        V4      ;_uu_ 4        V! RR^ RR/R7       RRR4       V P	                  \
        V4      ;_uu_ 4        V! RR^ RRR^/R7       RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lo; i  + '       g   i     R# ; i))got duplicate or unexpected field name(s)rO   rQ   rR   rJ   Ntm_monerrorr   rT   reescapeassertRaisesRegexrU   r   r   error_messages   &  r   &test_constructor_with_duplicate_fields4StructSeqTest.test_constructor_with_duplicate_fieldsp   s    		"MN##I}==l)[!9: >##I}==l)[(A!FG >##I}==l'1i!EF >##I}==l'1ihPQ!RS >= >========s0   C=8D-D#"D6=D	D 	#D3	6E	c                   \         P                  P                  p\         P                  ! \        V4      R R/4      pV P	                  VP
                  R4       V P	                  V\        \        V4      4      4       \         P                  ! . \        V4      ORN54      pV P	                  VP
                  R4       V P	                  V\        \        V4      4      4       V P                  \        \        P                  ! R4      4      ;_uu_ 4        \         P                  ! . \        V4      ORN5R R/4       RRR4       R#   + '       g   i     R# ; i)st_atimer[   Ng      )r   stat_resultrA   r   r   rg   r   ra   rU   r_   r`   )r   n_visible_fieldsrs   &  r   .test_constructor_with_duplicate_unnamed_fields<StructSeqTest.test_constructor_with_duplicate_unnamed_fields}   s   >>;;NN5!12Z4FGT*E%(8"9:;NN;U#34;d;<T*E%(8"9:;##I$&II.Y$Z\ \NN;U#34;d;j$=OP\ \ \ \s   (EE	c                F   \         P                  p\        P                  ! R 4      pV P	                  \
        V4      ;_uu_ 4        V! RR^ /R7       RRR4       V P	                  \
        V4      ;_uu_ 4        V! RR^ R^/R7       RRR4       V P	                  \
        V4      ;_uu_ 4        V! RRRR^/R7       RRR4       V P	                  \
        V4      ;_uu_ 4        V! RRRR^ /R7       RRR4       V P	                  \
        V4      ;_uu_ 4        V! RR^ RRR^/R7       RRR4       V P	                  \
        V4      ;_uu_ 4        V! RR^ /R7       RRR4       V P	                  \
        V4      ;_uu_ 4        V! RRRR^ /R7       RRR4       R#   + '       g   i     ELQ; i  + '       g   i     EL0; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)	r[   rL   tm_yearrJ   Nr\   rQ   rR   r]   r^   rb   s   &  r   $test_constructor_with_unknown_fields2StructSeqTest.test_constructor_with_unknown_fields   s   		"MN##I}==kA/ >##I}==kAx ;< >##I}==kK1 EF >##I}==kK! DE >##I}==k!YXq QR >##I}==k!- >##I}==kK! DE >= >=================sT   F8F.-G"GG)G<HF+	.F?	G	G&	)G9	<H	H 	c                   a  ! R  R\         4      o ! V3R lR4      pV P                  S\        P                  V! 4       4       R# )c                       ] tR t^tRtR# ))StructSeqTest.test_eviltuple.<locals>.Exc N)__name__
__module____qualname____firstlineno____static_attributes__rt   r   r   Excrs      s    r   rz   c                   4   <a  ] tR t^t o V3R ltR tRtV tR# )'StructSeqTest.test_eviltuple.<locals>.Cc                   < Shr   rt   )r   r   rz   s   &&r   r   3StructSeqTest.test_eviltuple.<locals>.C.__getitem__   s    	r   c                    ^	# )	   rt   r   s   &r   __len__/StructSeqTest.test_eviltuple.<locals>.C.__len__   s    r   rt   N)ru   rv   rw   rx   r   r   ry   __classdictcell__)__classdict__rz   s   @r   Cr|      s      r   r   N)	Exceptionr   r   rT   )r   r   rz   s   & @r   test_eviltupleStructSeqTest.test_eviltuple   s5    	) 		 	 	#t//5r   c                   \         P                  ! 4       p\        \        P                  ^,           4       F  p\        P
                  ! W4      p\        P                  ! V4      pV P                  VP                  VP                  4       V P                  WA4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       K  	  R# )   N)r   r	   r   pickleHIGHEST_PROTOCOLdumpsloadsr   	__class__rn   rQ   )r   r   protopr*   s   &    r   test_picklingStructSeqTest.test_pickling   s    KKM622Q67EQ&AaBR\\1;;7R#RZZ3RZZ3 8r   c                v   \         P                  ! \        \         P                  P                  4      R RRR/4      p\        \        P
                  ^,           4       F  p\        P                  ! W4      p\        P                  ! V4      pV P                  VP                  VP                  4       V P                  WA4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       K  	  R# rg   g      ?st_atime_nsg       @N)r   rh   r   rA   r   r   r   r   r   r   st_moderg   r   )r   rj   r   r   r2s   &    r   !test_pickling_with_unnamed_fields/StructSeqTest.test_pickling_with_unnamed_fields   s     NN5!A!AB&]C@B622Q67EQ&AaBR\\1;;7R#RZZ3R[[!**5R^^Q]]; 8r   c                   \         P                  P                  p\         P                  ! \        V4       Uu. uF  q".NK  	  up4      p\        P                  ! V4      pV P                  VP                  VP                  4       V P                  WC4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       V P                  V^ ,          V^ ,          4       V P                  VP                  VP                  4       \        P                  ! V4      pV P                  VP                  VP                  4       V P                  WS4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       V P                  V^ ,          V^ ,          4       V P                  VP                  VP                  4       R# u upi r@   )r   rT   rC   r   copyr   r   rn   rQ   assertIsdeepcopyassertIsNot)r   rC   r   r   r*   t3s   &     r   test_copyingStructSeqTest.test_copying   s^   ##,,5?;?ac?;<YYq\q{{3QYY/QYY/beQqT"bjj!)),]]1q{{3QYY/QYY/A!%QYY/! <s   H
c                   \         P                  P                  p\         P                  ! \        V4       Uu. uF  q".NK  	  upR R.RR./4      p\        P                  ! V4      pV P                  VP                  VP                  4       V P                  WC4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       V P                  V^ ,          V^ ,          4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       \        P                  ! V4      pV P                  VP                  VP                  4       V P                  WS4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       V P                  V^ ,          V^ ,          4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       R# u upi r   )r   rh   rA   r   r   r   r   r   rg   r   r   r   r   )r   rA   r   rj   r   r3s   &     r    test_copying_with_unnamed_fields.StructSeqTest.test_copying_with_unnamed_fields   s    NN<<NN/@)AB)AAC)AB&}seDF YYq\q{{3QYY/ajj17beQqT"bjj!)),bkk1::.bnnamm4]]1q{{3QYY/ajj17A!%QYY/ajj17/ Cs   K5c                    \         P                  ! 4       p\        V4      pRpV FG  pV F>  pVR,           F.  pV P                  \        WWV1,          4      W$WV1,          4       K0  	  K@  	  KI  	  R# )r   Nr   NN)
r   Nr   r.      i,  ii)r   r	   listr   )r   r   Lindicesstartstopsteps   &      r   test_extended_getslice$StructSeqTest.test_extended_getslice   se    KKMG=E#BKKD$$T!$O*<%=%&T%79 (   r   c                ^    RpV P                  \        P                  P                  V4       R# )rn   N)	rn   r\   tm_mdaytm_hourtm_mintm_sectm_wdaytm_ydaytm_isdst)r   r   rT   __match_args__r   expected_argss   & r   test_match_argsStructSeqTest.test_match_args  s&    E))88-Hr   c                    RpV P                  \        P                  P                  ^4       V P                  \        P                  P                  V4       R# )r   N)r   st_inost_devst_nlinkst_uidst_gidst_size)r   r   rh   rB   r   r   s   & r   #test_match_args_with_unnamed_fields1StructSeqTest.test_match_args_with_unnamed_fields  s=    .88!<66Fr   c                v   \         P                  ! 4       pV P                  \        P                  ! V4      V4       V P                  \        P                  ! V4      \         P                  4       V P                  \        P                  ! VR R7      R .VR,          O54       V P                  \        P                  ! VRR7      V^ ,          R.VR,          O54       V P                  \        P                  ! VR RR7      R R.VR,          O54       V P                  \        R4      ;_uu_ 4        \        P                  ! VRR7       R	R	R	4       V P                  \        R4      ;_uu_ 4        \        P                  ! V^RR
7       R	R	R	4       R	#   + '       g   i     LR; i  + '       g   i     R	# ; i)g      ?)userr   g      @)system:   NN)r   r   unexpected field namer]   N)r   r]   r   )	r   timesr   r   replacer
   times_resultra   rU   rE   s   & r   $test_copy_replace_all_fields_visible2StructSeqTest.test_copy_replace_all_fields_visible  s-    HHJ 	a!,dll1or?ac2SM1R5MBa4qtS6I1R56IJac#>c@RAbE@RS ##I/FGGLL"% H##I/FGGLL"- HG HGGGGs   1F0F'F$	'F8	c                n   \         P                  ! ^ 4      p\        P                  ! V4      pV P	                  VR4       V P                  V\         P                  4       \        P                  ! VRR7      pV P	                  VR4       V P	                  VP                  R4       \        P                  ! V^R7      pV P	                  VR4       V P	                  VP                  ^4       \        P                  ! VR^R7      pV P	                  VR4       V P	                  VP                  R4       V P	                  VP                  ^4       V P                  VR4       V P                  \        R4      ;_uu_ 4        RVn        RRR4       V P	                  VP                  VP                  4       V P	                  VP                  VP                  4       V P	                  VP                  VP                  4       \        P                  ! VRR	7      pV P	                  W4       V P	                  VP                  R4       \        P                  ! VRRR
7      pV P	                  VR4       V P	                  VP                  R4       V P	                  VP                  R4       V P                  \        R4      ;_uu_ 4        \        P                  ! V^R7       RRR4       V P                  \        R4      ;_uu_ 4        \        P                  ! VR^R7       RRR4       V P                  \        R4      ;_uu_ 4        \        P                  ! VR^R7       RRR4       R#   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     Ly; i  + '       g   i     R# ; i)r     )rn   )r\   )rn   r\   rQ   zreadonly attributezsome other zoneN)rQ   )rn   rQ   r   r   )rn   r]   )rQ   r]   )	  r   r   r   r   r   r.   r   r   )	r   r   r   r   r   r   r.   r   r   )	r   r   r   r   r   r   r.   r   r   )	r   r   r   r   r   r   r.   r   r   )r   r	   r   r   r   r
   rT   rn   r\   assertHasAttrra   AttributeErrorrQ   rU   )r   r   r*   r   t4t5t6t7s   &       r   'test_copy_replace_with_invisible_fields5StructSeqTest.test_copy_replace_with_invisible_fields   s    KKN \\!_;<b$"2"23\\!T*;<T*\\!A&;<A&\\!T!4;<T*A& 	1i(##N4HII)AI JQYY/QYY/QYY/\\!%67%67\\!T3DE;<T*%67 ##I/FGGLL!$ H##I/FGGLLD2 H##I/FGGLL$5Q? HG% JII HGGGGGGs0   >M)M=NN#)M:	=N	N 	#N4	c                0   \         P                  ! \        \         P                  P                  4      4      p\        P
                  ! R 4      pV P                  \        V4      ;_uu_ 4        \        P                  ! V4       RRR4       V P                  \        V4      ;_uu_ 4        \        P                  ! V^R7       RRR4       V P                  \        V4      ;_uu_ 4        \        P                  ! V^R7       RRR4       V P                  \        V4      ;_uu_ 4        \        P                  ! V^^R7       RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lx; i  + '       g   i     R# ; i)z__replace__() is not supportedN)r   r   )r   r]   )
r   rh   r   rA   r_   r`   ra   rU   r   r   )r   rj   rc   s   &  r   %test_copy_replace_with_unnamed_fields3StructSeqTest.test_copy_replace_with_unnamed_fieldsL  s     NN5!A!ABC		"BC##I}==LLO >##I}==LLA& >##I}==LL!$ >##I}==LLAQ/ >= >========s0   ,E)E(E1'FE	E.	1F	F	c                \    \         P                  ! R \        P                  ! R4      4       R# )z-cz_
            import time
            t = time.gmtime()
            type(t).refcyle = t
        N)r   assert_python_oktextwrapdedentr   s   &r   test_reference_cycle"StructSeqTest.test_reference_cycle[  s$    
 	&&tX__ > . 	r   rt   N)ru   rv   rw   rx   r   r%   r+   r/   r5   r9   r=   rF   rX   rd   rk   ro   r   r   r   r   r   r   r   r   r   r   r   r   ry   r   )r   s   @r   r   r      s     /,&35"4(<+.TQ F&64<0(8:
9I
G.&*@X0	 	r   r   __main__)r   r   r   r_   r   r   unittesttest.supportr   TestCaser   ru   mainrt   r   r   <module>r      sJ     	  	    &YH%% Yx
 zMMO r   