+
    Bi                        ^ RI 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It ^ RIt^ RIHtHt ]	P$                  ! R4      ;'       g    ^t^^],          ^,
          ,          ^,
          t]) ^,
          R,           tR%tR&tR%tR'tR't ! R R]P6                  4      tR(tR)t]P>                  ]P>                  3]P@                  ]P@                  3]PB                  ]PB                  3]PD                  ]PD                  33t# ! R	 R
]PH                  4      t% ! R R]PH                  4      t& ! R R4      t' ! R R4      t( ! R R4      t) ! R R]'])]PH                  4      t* ! R R](])]PH                  4      t+ ! R R]PH                  4      t,]PZ                  ! ]RJ R4      ]PZ                  ! ]RJ R4       ! R R4      4       4       t. ! R R].]PH                  4      t/ ! R R].]PH                  4      t0]Pb                  ! ]P                  R 8H  R!4       ! R" R#]PH                  4      4       t2]3R$8X  d   ]Ph                  ! 4        R# R#   ] d    Rt EL*i ; i  ] d    Rt EL5i ; i)*    )support)warnings_helperN)skip_if_buggy_ucrt_strfptimeSuppressCrashReport
SIZEOF_INTl  c                   &    ] tR t^"t^ t^t^t^tRtR# )_PyTime N)	__name__
__module____qualname____firstlineno__ROUND_FLOORROUND_CEILINGROUND_HALF_EVENROUND_UP__static_attributes__r       %/usr/lib/python3.14/test/test_time.pyr
   r
   "   s    KMOHr   r
   c                   H  a  ] tR t^:t o R tR tR tR t]P                  ! ]
! ]R4      R4      R 4       t]P                  ! ]
! ]R4      R4      ]P                  ! ]
! ]R4      R	4      R
 4       4       t]P                  ! ]
! ]R4      R4      ]P                  ! ]
! ]R4      R4      ]P                  ! ]P                   R4      R 4       4       4       t]P                  ! ]
! ]R4      R4      R 4       t]P                  ! ]
! ]R4      R4      R 4       tR tR tR tR tR tR tR tR tR tR tR t]R  4       t R! t!R" t"R# t#R$ t$R% t%R& t&]P                  ! ]
! ]R'4      R(4      R) 4       t'R* t(R+ t)R, t*R- t+R. t,]P                  ! ]-P\                  ! 4       ^ ,          R/8g  R04      R1 4       t/R2 t0R3 t1]P                  ! ]Pd                  R44      ]P                  ! ]P                   R54      R6 4       4       t3R7 t4]P                  ! ]
! ]R4      R84      R9 4       t5R: t6R; t7R<t8V t9R=# )>TimeTestCasec                :    \         P                   ! 4       V n        R # N)timetselfs   &r   setUpTimeTestCase.setUp<   s    r   c                    \         P                   \         P                   \         P                   \         P                   R # r   )r   altzonedaylighttimezonetznamer   s   &r   test_data_attributes!TimeTestCase.test_data_attributes?   s    r   c                    \         P                   ! 4        \         P                  ! R 4      pV P                  VP                  4       V P	                  VP
                  4       R# )r   N)r   get_clock_infoassertFalse	monotonic
assertTrue
adjustable)r   infos   & r   	test_timeTimeTestCase.test_timeE   s=    		""6*((r   c                  a  V 3R  lpV! \         P                   ! 4       \         P                  ! 4       4       V! \         P                  ! 4       \         P                  ! 4       4       V! \         P                  ! 4       \         P
                  ! 4       4       V! \         P                  ! 4       \         P                  ! 4       4       \        \         R4      '       d0   V! \         P                  ! 4       \         P                  ! 4       4       \        \         R4      '       dP   V! \         P                  ! \         P                  4      \         P                  ! \         P                  4      4       R# R# )c                    < SP                  V\        4       \        V R ,          4      pSP                  W!,
          RW34       R# )g    eANl   @F )assertIsInstanceint
assertLess)secnssec_nsr   s   && r   check_ns0TimeTestCase.test_time_ns_type.<locals>.check_nsL   s4    !!"c*s^FOOV[7SI>r   thread_timeclock_gettimeN)r   time_nsr+   monotonic_nsperf_counterperf_counter_nsprocess_timeprocess_time_nshasattrr;   thread_time_nsr<   CLOCK_REALTIMEclock_gettime_ns)r   r9   s   f r   test_time_ns_typeTimeTestCase.test_time_ns_typeK   s    	? 		!!""$	&""$%%'	)""$%%'	) 4''T%%'((*, 4))T''(;(;<**4+>+>?A *r   r<   zneed time.clock_gettime()c                z    \         P                  ! \         P                  4      pV P                  V\        4       R # r   )r   r<   rE   r3   floatr   r   s   & r   test_clock_realtime TimeTestCase.test_clock_realtimed   s*     t223a'r   CLOCK_MONOTONICzneed time.CLOCK_MONOTONICc                    \         P                  ! \         P                  4      p\         P                  ! \         P                  4      pV P                  W4       R # r   )r   r<   rN   assertLessEqual)r   abs   &  r   test_clock_monotonic!TimeTestCase.test_clock_monotonicj   s>    
 t334t334Q"r   pthread_getcpuclockidz!need time.pthread_getcpuclockid()zFails to find clockc                   \         P                  ! \        P                  ! 4       4      pV P	                  \        V4      \        J 4       \        P                  ! 4       R 8X  dE   \        P                  P                  4       ^ 8:  d"   V P                  V\         P                  4       Mf\        P                  P                  R4      '       d"   V P                  V\         P                  4       M V P                  V\         P                  4       \         P                   ! V4      p\         P                   ! V4      pV P#                  W#4       R# )AIXsunosN)r   rU   	threading	get_identr,   typer4   platformsystemsysmaxsize
bit_lengthassertEqualCLOCK_THREAD_CPUTIME_ID
startswithassertNotEqualr<   rP   )r   clk_idt1t2s   &   r   test_pthread_getcpuclockid'TimeTestCase.test_pthread_getcpuclockids   s     ++I,?,?,ABV+,??%3;;+A+A+Cr+IVT%A%AB\\$$W--VT%A%AB(D(DE''R$r   clock_getreszneed time.clock_getres()c                    \         P                  ! \         P                  4      pV P                  VR 4       V P	                  VR4       R# )              ?N)r   rj   rE   assertGreaterrP   )r   ress   & r   test_clock_getresTimeTestCase.test_clock_getres   s:      3 343$S#&r   clock_settimezneed time.clock_settime()c                T   \         P                  ! \         P                  4      p \         P                  ! \         P                  V4       \        \         R 4      '       d7   V P                  \        \         P                  \         P                  ^ 4       R# R#   \         d     L[i ; i)rN   N)	r   r<   rE   rr   PermissionErrorrC   assertRaisesOSErrorrN   rK   s   & r   test_clock_settimeTimeTestCase.test_clock_settime   s     t223	t22A6 4*++g"00$2F2FK ,  		s   %B B'&B'c           	        V P                  \        P                  ! V P                  4      \        P                  ! \        P
                  ! V P                  4      4      4       V P                  \        \        P                  ! \        P
                  ! V P                  4      4      4      \        V P                  4      4       R # r   )ra   r   ctimer   asctime	localtimer4   mktimer   s   &r   test_conversionsTimeTestCase.test_conversions   sn    DFF+dnnTVV&<=	?T[[)?@ATVV	&r   c                   V P                  \        \        P                  . 4       V P                  \        \        P                  R 4       V P                  \        \        P                  \	        ^ ^ 4      4       V P                  \
        \        P                  R4       V P                  \
        \        P                  R4       V P                  \
        \        P                  R4       V P                  \        4      ;_uu_ 4       p\        P                  ! . 4       RRR4       V P                  R\        XP                  4      4       R#   + '       g   i     L7; i)rQ   Nzinteger or floatg)	ru   	TypeErrorr   sleepcomplex
ValueErrorassertInstr	exception)r   errmsgs   & r   test_sleep_exceptions"TimeTestCase.test_sleep_exceptions   s    )TZZ4)TZZ5)TZZA?*djj"5*djj"5*djj$7 y))VJJrN *(#f.>.>*?@ *)s   EE	c                    R F<  pV P                  VR7      ;_uu_ 4        \        P                  ! V4       RRR4       K>  	  R#   + '       g   i     KS  ; i)rl   )valueN)g       r   rl   g0.++g&.>gư>   g333333?)subTestr   r   )r   r   s   & r   
test_sleepTimeTestCase.test_sleep   s<    ?EE**

5! +* @***s   AAc                x    \         P                  ! ^ 4      pV P                  \        V4      R,          RV4       R# )r   :N   NN)i  r   r   r   r   r   )r   gmtimera   tuple)r   epochs   & r   
test_epochTimeTestCase.test_epoch   s-     Aub)+@%Hr   c                8   \         P                  ! V P                  4      pR F#  pRV,           p \         P                  ! W14       K%  	  V P                  \        \         P                  RV4       R#   \         d    T P                  RT,          4        Ku  i ; i)rQ    %z conversion specifier: %r failed.s   %SNrQ   ArR   BcdHIjmMpSUwWxXyYZ%)r   r   r   strftimer   failru   r   )r   tt	directiveformats   &   r   test_strftimeTimeTestCase.test_strftime   s    [[ GI I%FGf)G 	)T]]E2>  G		<vEFGs   A22#BBc                   \         P                  ! V P                  4      p\        4       ;_uu_ 4        \	        ^^4       FO  pR\        V4      ,           pV P                  VR7      ;_uu_ 4         \         P                  ! W14       RRR4       KQ  	  RRR4       R#   \         d&   pT P                  \        T4      R4        Rp?LARp?ii ; i  + '       g   i     K  ; i  + '       g   i     R# ; i)r   r   )r   zInvalid format stringN)r   r   r   r   rangechrr   r   r   ra   r   )r   r   ir   excs   &    r   test_strftime_invalid_format)TimeTestCase.test_strftime_invalid_format   s    [[  ""1c]A\\\00Lf1 10 # #" & L((S3JKKL 100 #""sG   <C$/C1B
C$C(CCCCC!	C$$C5	c                   \         P                  ! V P                  4      p\         P                  ! R V4      p\         P                  ! RV4      pV P	                  \         P                  ! RV4      R4       V P	                  \         P                  ! RV4      RV RV 24       V P	                  \         P                  ! RV4      V RV R24       V P	                  \         P                  ! RV4      R4       V P	                  \         P                  ! RV4      R4       V P	                  \         P                  ! RV4      RV RV 24       V P	                  \         P                  ! R	V4      V RV R24       V P	                  \         P                  ! R
V4      V RV R24       V P	                  \         P                  ! RV4      R4       V P	                  \         P                  ! RV4      V RV 24       V P	                  \         P                  ! RV4      R4       V P	                  \         P                  ! RV4      V RV 24       V P	                  \         P                  ! RV4      R4       V P	                  \         P                  ! RV4      R4       V P	                  \         P                  ! RV4      RV RV 24       V P	                  \         P                  ! RV4      V RV R24       R# )z%c%Bu   🐍u   💻%c🐍%Bu   💻u   %c💻%B🐍u   u   u
   %c%Bu
   %c%Bu
   %c%Bu   u
   %c%Bu   u   %c%B z %c %Bz%c %B Na                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          )r   r   r   r   ra   )r   r   s1s2s   &   r   test_strftime_special"TimeTestCase.test_strftime_special   so   [[ ]]4$]]4$ 	|R8,G'A2F*UWTXXbcebfHgh'A2F2$jY[X\\fHghx4h?x4h?'92>&FSURV@WX'92>2$fRDPV@WX'92>2$fRDPV@WX~r:NK'92>2$lSURV@WX'A2FHbc'ErJrdRjkmjnLoptR0$7y"5yAz26"RD2$Hz262$bBHr   c                8   V! R4       V! R4       V P                  \        VR4       V P                  \        VR4       V! R4       V! R4       V P                  \        VR4       V P                  \        VR	4       V! R
4       V P                  \        VR4       V P                  \        VR4       V! R4       V P                  \        VR4       V P                  \        VR4       V P                  \        VR4       V! R4       V! R4       V P                  \        VR4       V P                  V! R4      V! R4      4       V P                  \        VR4       V! R4       V! R4       V P                  \        VR4       V P                  \        VR4       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   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   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   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   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   r   r   r   r   r   in  r   )	r   r   r   r   r   r   r   r   r   )	r   r   r   r   r   r   r   io  r   )ru   r   ra   )r   funcs   &&r   _bounds_checkingTimeTestCase._bounds_checking   s    	,--.*d<	>*d<	> 	,--.*d<	>*d<	> 	-.*d<	>*d<	> 	-.*d<	>*d<	> 	*d<	> 	-.-.*d<	> 	>?>?	A*d<	> 	,-./*d<	>*d=	?r   c                *    V P                  R  4       R# )c                 0    \         P                  ! R V 4      # ) r   r   )tups   &r   <lambda>;TimeTestCase.test_strftime_bounding_check.<locals>.<lambda>(  s    $--C*@r   N)r   r   s   &r   test_strftime_bounding_check)TimeTestCase.test_strftime_bounding_check'  s    @Ar   c                    R FC  p\        ^ ^4       F0  pR F'  p \        P                  ! W,          V,           4       K)  	  K2  	  KE  	  R#   \         d     KC  i ; i)r   N)r   r   z%Az%AA)r   zA%zAA%z%A%zA%A%z%#)r   r   r   r   )r   r   r   zs   &   r   test_strftime_format_check'TimeTestCase.test_strftime_format_check*  sU    
 *A3%BAaeai0 C & *
 & s   #AA	A	c                    R p\         P                  ! 4       ;_uu_ 4        \        P                  ! RR4      pRRR4       V P	                  VX4       R#   + '       g   i     L$; i)z2000 01 01 00 00 00 1 001z%Y %m %d %H %M %S %w %jN)	  r   r   r   r   r   r   r   r   )r   check_warningsr   r   ra   )r   expectedresults   &  r   test_default_values_for_zero)TimeTestCase.test_default_values_for_zero7  sG    
 /++--]]#<nMF .6* .-s   AA$	c           	     <   \         P                  ! V P                  4      pR FI  pRV,           pVR8X  d
   VR,          p\         P                  ! W14      p \         P                  ! WC4       KK  	  R#   \
         d    T P                  RT: RT: R24        Kw  i ; i)	rQ   r   r   z,%Yzconversion specifier z failed with 'z' input.Nr   )r   r   r   r   strptimer   r   )r   r   r   r   strf_outputs   &    r   test_strptimeTimeTestCase.test_strptimeA  s     [[ GI 9_FC%--3K1k2G  1		!;0 11s   A22%BBc                    V P                  \        \        P                  R R4       V P                  \        \        P                  RR4       R# )s   2009%Y2009s   %YN)ru   r   r   r   r   s   &r   test_strptime_bytes TimeTestCase.test_strptime_bytesS  s2    )T]]GTB)T]]FEBr   c                   V P                  \        4      ;_uu_ 4       p\        P                  ! R R4       RRR4       V P	                  XP
                  P                  4       V P                  \        4      ;_uu_ 4       p\        P                  ! RR4       RRR4       V P	                  VP
                  P                  4       R#   + '       g   i     L; i  + '       g   i     LJ; i)r   z%DNr   )ru   r   r   r   r,   r   __suppress_context__)r   es   & r   test_strptime_exception_context,TimeTestCase.test_strptime_exception_contextX  s    z**aMM"d# +889z**aMM#s# +889 +* +*s   C CC	C*	c                    V P                  \        R 4      ;_uu_ 4        \        P                  ! RR4       RRR4       R#   + '       g   i     R# ; i)z.*day of month without a year.*z02-07 18:28z%m-%d %H:%MN)assertWarnsRegexDeprecationWarningr   r   r   s   &r   test_strptime_leap_year$TimeTestCase.test_strptime_leap_yearb  sD    ""#5#EG GMM-7G G G Gs   AA	c           	        \         P                  ! \         P                  ! V P                  4      4       \        \
        3 FT  p\         P                  ! V^^3R,           4      pV P                  V\        \        V4      4      ) R \        V4      4       KV  	  V P                  \        \         P                  \        ^,           3R,           4       V P                  \        \         P                  \
        ^,
          3R,           4       V P                  \        \         P                  ^ 4       V P                  \        \         P                  R4       V P                  \        \         P                  R4       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   r   r   r   )r   r{   r   r   TIME_MAXYEARTIME_MINYEARra   lenr   ru   OverflowErrorr   )r   bigyearascs   &  r   test_asctimeTimeTestCase.test_asctimeh  s    T[[() $\1G,,A9:CS#c'l"3!3!45s7|D 2 	-'!+-8	:-'!+-8	:)T\\15)T\\26)T\\9=r   c                D    V P                  \        P                  4       R # r   )r   r   r{   r   s   &r   test_asctime_bounding_check(TimeTestCase.test_asctime_bounding_checkw  s    dll+r   c                   \         P                  ! R4      pV P                  \         P                  ! V4      R4       \         P                  ! R4      pV P                  \         P                  ! V4      R4       R FZ  p \         P                  ! V^^
3R,           4      pV P                  \         P                  ! V4      R,          \	        V4      4       K\  	  R#   \
        \        3 d     Kt  i ; i)	  zSun Sep 16 01:03:52 1973zSat Jan  1 00:00:00 2000:   NNN)	r  	      r      4   r   r   r   )	r   r   r   r   r   r   r   r   r   )id     r   i  '  r   )r   r}   ra   rz   r   r   r  )r   r   yeartestvals   &   r   
test_ctimeTimeTestCase.test_ctimez  s    KK9:A(BCKK78A(BC8DF++tQmf&<=   G!4S!93t9E 9 .  s   ? CC0/C0tzsetz"time module has no attribute tzsetc                v   ^ RI Hp RpRpRpRpVP                  RR4      p W1R&   \        P                  ! 4        WQR&   \        P                  ! 4        V P                  \        P                  ! V4      \        P                  ! V4      4       V P                  \        P                  ^ 4       V P                  \        P                  ^ 4       V P                  \        P                  ! V4      P                  ^ 4       W1R&   \        P                  ! 4        V P                  \        P                  ! V4      \        P                  ! V4      4       V P                  \        P                  R4       V P                  \        \        P                  4      ^4       V P                  \        P                  ^4       V P                  \        P                  R4       V P                  \        P                  R	4       V P                  \        P                  ! V4      P                  ^ 4       V P                  \        \        P                  4      ^4       WAR&   \        P                  ! 4        V P                  \        P                  ! V4      \        P                  ! V4      4       V P                  \        P                  ^ ,          R
\        P                  ^ ,          4       V P!                  \        P                  ^,          R9   \#        \        P                  ^,          4      4       V P                  \        \        P                  4      ^4       V P                  \        P                  ^4       V P                  \        P                  R4       V P                  \        P                  R4       V P                  \        P                  ! V4      P                  ^4       Ve   WaR&   M
RV9   d   VR \        P                  ! 4        R#   Te   YaR&   M
RT9   d   TR \        P                  ! 4        i ; i)r   )environg   zAzEST+05EDT,M4.1.0,M10.5.0zAEST-10AEDT-11,M10.5.0,M3.5.0zUTC+0TZNPF  i@8  AESTEST)ESTEDT)AEDTr  i`siPe)osr  getr   r  ra   r   r|   r#   r$   tm_isdstrd   r%   r  r"   r   r,   r   )r   r  xmas2002easternvictoriautcorg_TZs   &      r   
test_tzsetTimeTestCase.test_tzset  s    	   -2T$'5	 $DMJJLDMJJLH%t~~h'? T]]A.T]]A.T^^H5>>B $DMJJLH 5t~~h7OPT[[.9S-q1T]]A.T]]E2T\\51T^^H5>>BS-q1 %DMJJLH 5t~~h7OP MM$++a.<$++a.IOODKKNo=s4;;q>?RSS-q1T]]A.T]]F3T\\62T^^H5>>B
 ! &DMJJL	 ! &DMJJLs   OP 'P *P8c                    \         P                  \         P                  \         P                  3 F"  pR F  pV P	                  \
        W4       K  	  K$  	  R# )ZbtiN)gZbtr,  )r   rz   r   r|   ru   r  )r   r   unreasonables   &  r   test_insane_timestamps#TimeTestCase.test_insane_timestamps  s;    
 JJT^^;D -!!-D !. <r   c                \    \         P                  ! 4        \         P                  ! R 4       R # r   )r   rz   r   s   &r   test_ctime_without_arg#TimeTestCase.test_ctime_without_arg  s     	



4r   c                    \         P                  ! 4       p\         P                  ! R 4      p\         P                  ! V4      p\         P                  ! V4      pV P                  WCRR7       R # Ng?)delta)r   r   r}   assertAlmostEqual)r   gt0gt1t0rf   s   &    r   test_gmtime_without_arg$TimeTestCase.test_gmtime_without_arg  sJ    kkmkk$[[[[rS1r   c                    \         P                  ! 4       p\         P                  ! R 4      p\         P                  ! V4      p\         P                  ! V4      pV P                  WCRR7       R # r4  )r   r|   r}   r6  )r   lt0lt1r9  rf   s   &    r   test_localtime_without_arg'TimeTestCase.test_localtime_without_arg  sK    nnnnT"[[[[rS1r   c                    R F@  p \         P                  ! V4      pV P                  \         P                  ! V4      V4       KB  	  R#   \        \
        3 d     KZ  i ; i)   N)r   r   r   r   )r   r|   ra   r}   r  rv   )r   r   r   s   &  r   test_mktimeTimeTestCase.test_mktime  sR    A5^^A&   R!4   "7+ s   A		AAglibcz0disabled because of a bug in glibc. Issue #13309c                6   \         P                  ! V P                  4      p\         P                  ! R V4      pV P	                  VR4        \         P
                  ! R4       V P                  \         P                  ! R V4      V4       R#   \         d     L6i ; i)%ZLMTN)	r   r   r   r   r   r   r   r   r   )r   r   r   r   rd   r}   r  ra   )r   r   r%   s   &  r   test_mktime_errorTimeTestCase.test_mktime_error  sy     [[ tR(FE*	KK78 	tR0&9  		s   B
 
BBc                D   \        ^d4       Uu. uF  p\        P                  ! 4       NK  	  ppV^ ,          pVR,           F  pV P                  WCRV,          4       TpK   	  \        P                  ! 4       p\        P                  ! R4       \        P                  ! 4       pWC,
          pV P                  WC4       V P                  RV8*  4       \        P                  ! R4      pV P                  VP                  4       V P                  VP                  4       R# u upi )r  :r   NNztimes=%sg      ?g?r+   N)
r   r   r+   assertGreaterEqualr   rn   r,   r)   r*   r-   )r   ntimesrf   rg   dtr.   s   &      r   test_monotonicTimeTestCase.test_monotonic  s    +0:6:a!:61X))B##BJ,>?B 
 ^^

3^^W2" 	$ "";/')' 7s   Dc                0    \         P                  ! 4        R # r   )r   r?   r   s   &r   test_perf_counterTimeTestCase.test_perf_counter$  s    r   z"process_time not available on WASIz.process_time present but doesn't exclude sleepc                N   \         P                  ! 4       p\         P                  ! R 4       \         P                  ! 4       pV P                  W!,
          R4       \         P                  ! R4      pV P                  VP                  4       V P                  VP                  4       R# )皙?{Gz?rA   N)	r   rA   r   r5   r)   r,   r+   r*   r-   r   startstopr.   s   &   r   test_process_timeTimeTestCase.test_process_time'  sp     !!#

5  " 	e,"">2')r   c                .   \        \        R 4      '       g[   \        P                  P	                  R4      '       d%   V P                  R\        P                  : 24       MV P                  R4       \        P                  ! 4       p\        P                  ! R4       \        P                  ! 4       pV P                  W!,
          R4       \        P                  ! R 4      pV P                  VP                  4       V P                  VP                  4       R# )r;   z*time.thread_time() should be available on zneed time.thread_timerV  rW  N)linuxandroidwin)rC   r   r^   r\   rc   r   skipTestr;   r   r5   r)   r,   r+   r*   r-   rX  s   &   r   test_thread_timeTimeTestCase.test_thread_time:  s    t]++||&&'BCC		 \\, - 56   "

5! 	e,""=1')r   zneed time.clock_settimec                   \         P                  ! 4       p\         P                  ! \         P                  4      p \         P                  ! \         P                  VR ,
          4       \         P                  ! 4       p\         P                  ! \         P                  V4       V P                  WA4       R#   \
         d   pT P                  T4        Rp?LnRp?ii ; i)i  N)r   r+   r<   rE   rr   rt   ra  rL  )r   rf   realtimeerrrg   s   &    r   test_monotonic_settime#TimeTestCase.test_monotonic_settimeN  s     ^^%%d&9&9:	t22HtOD ^^4..9'  	MM#	s   ,B4 4C?CCc                &   R pR F  p \         P                  ! V4       K  	  Vf   V P                  R4       V P                  \        \         P                  V4       V P                  \        \         P                  V4       V P                  \        \         P                  \        R4      4       V P                  \        \         P                  \        R4      4       R #   \         d    T P                  R4        K  \         d    Tp  K  i ; i)Nzneed 64-bit time_tz&unable to find an invalid time_t valuenan)r   i   @l        l            )	r   r|   r  ra  rv   ru   rz   r   rJ   )r   invalid_time_ttime_ts   &  r   test_localtime_failure#TimeTestCase.test_localtime_failure]  s    /Fv& 0 !MMBC'4>>>B'4::~> 	*dnneElC*djj%,? ! 423 !'s   C  D?DDDc                    . ROp\        \        R4      '       d   VP                  R4       V EF  pV P                  VR7      ;_uu_ 4        \        P                  ! V4      pV P                  VP                  \        4       V P                  VP                  R4       V P                  VP                  \        4       V P                  VP                  \        4       V P                  VP                  R4       V P                  VP                  R4       V P                  VP                  \        4       RRR4       EK  	  V P!                  \"        \        P                  R4       R#   + '       g   i     EKO  ; i)	r+   r;   )namer   rl   rm   Nxxx)r+   r?   rA   r   )rC   r   appendr   r)   r3   implementationr   rd   r+   bool
resolutionrJ   rn   rP   r-   ru   r   )r   clocksrp  r.   s   &   r   test_get_clock_info TimeTestCase.test_get_clock_infor  s   
 4''MM-(D4((**40%%d&9&93?##D$7$7<%%dnnd;%%doou=""4??C8$$T__c:%%doot< )(  	*d&9&95A )((s   C+E++E=)r   N):r   r   r   r   r   r&   r/   rG   unittest
skipUnlessrC   r   rL   rS   skipIfr   is_emscriptenrh   rp   rw   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r)  r.  r1  r:  r?  rC  r\   libc_verrI  rP  rS  is_wasir[  rb  rg  rm  rw  r   __classdictcell____classdict__s   @r   r   r   :   s    )A2 746(6( 746'8946#66#
 '>?<>746__W**,AB% C6>
% ~635'5'
 746	K6	K&A"
I?	LI67?rB+ "1 "1"C
:8>,F w/=?G?GRE225 **,Q/7:KM:M:*. __= __O***( 724(4(@*B Br   r   c                   T   a  ] tR tRt o ]P
                  ! RRR4      R 4       tRtV tR# )
TestLocalei  LC_ALLfr_FRr   c                4    \         P                  ! R R4       R# )r   N)	i  rB  r   r   r   r   r   r   r   r   r   s   &r   test_bug_3061TestLocale.test_bug_3061  s     	d23r   r   N)	r   r   r   r   r   run_with_localer  r   r  r  s   @r   r  r    s&     Xw34 44r   r  c                   0   a  ] tR tRt o RtR tR tRtV tR# )_TestAsctimeYeari  %dc                h    \         P                  ! V3R,           4      P                  4       R,          # )r   r   r   )r   r{   splitr   r   s   &&r   yearstr_TestAsctimeYear.yearstr  s%    ||QD8O,224R88r   c                    V P                  V P                  R 4      R4       V P                  V P                  R4      R4       R# )90  12345[	123456789N)ra   r  r   s   &r   test_large_year _TestAsctimeYear.test_large_year  s4    e,g6i0+>r   r   N)	r   r   r   r   _formatr  r  r   r  r  s   @r   r  r    s     G9? ?r   r  c                      a a ] tR tRt o]P
                  ! RR4      R8X  d   RtMRtR t]P                  ! ]
P                  R4      R 4       tR	 t]! R
4      V 3R l4       t]! ^ 4      V 3R l4       tARtVtV ;t# )_TestStrftimeYeari  r   0001%04dr  c                @    \         P                  ! R V3R,           4      # )r   r   r   r  s   &&r   r  _TestStrftimeYear.yearstr  s    }}TA4(?33r   zrequires strftime extensionc                z    V P                   R 8X  d   V P                  R 4       R# R pV P                  R VR7       R# )r  c                 @    \         P                  ! R V 3R,           4      # )z%4Yr   r   )r   s   &r   year4d-_TestStrftimeYear.test_4dyear.<locals>.year4d  s    }}UQD8O<<r   )r   N)r  	test_year)r   r  s   & r   test_4dyear_TestStrftimeYear.test_4dyear  s1    
 <<6!NN6"=NN6N/r   c                    R V  R2p \         P                  ! RV 3R,           4       Rp\        P                  ! W!4      #   \         d    Rp L%i ; i)z!strftime() does not support year z on this platformr   TFr   )r   r   r   ry  rz  )r   msgconds   &  r   skip_if_not_supported'_TestStrftimeYear.skip_if_not_supported  sX    1!4EF	MM$x0 D""4--	  	D	s   ? AAr  c                    < \         SV `  4       # r   )superr  r   	__class__s   &r   r  !_TestStrftimeYear.test_large_year  s    w&((r   c                    < \         SV `  4       # r   )r  test_negativer  s   &r   r  _TestStrftimeYear.test_negative  s    w$&&r   r   )	r   r   r   r   r   r   r   r   r   )r   r   r   r   r   r   r  r  ry  rz  r   has_strftime_extensionsr  r  r  r  r   r  __classcell__)r  r  s   @@r   r  r    s      }}T?+v54 '')F00. 5!) ") 1' ' 	r   r  c                   :   a  ] tR tRt o RtRR ltR tR tRtV t	R# )	_Test4dYeari  r  Nc                   T;'       g    V P                   pT;'       g    V P                  pV P                  V! ^4      V^,          4       V P                  V! ^D4      V^D,          4       V P                  V! ^E4      V^E,          4       V P                  V! ^c4      V^c,          4       V P                  V! R4      VR,          4       V P                  V! R4      VR,          4       R# )r     '  N)r  r  ra   )r   fmtr   s   &&&r   r  _Test4dYear.test_year  s    !!T\\##t||aS1W-bS2X.bS2X.bS2X.cS3Y/dS4Z0r   c                   V P                  V P                  R 4      P                  R4      R4       V P                  V P                  R4      P                  R4      R4       V P                  V P                  \        4      P                  R4      \	        \        4      4       V P                  \        V P                  \        ^,           4       R# )r  +r  r  r  N)ra   r  lstripr   r   ru   r  r   s   &r   r  _Test4dYear.test_large_year  s    e,33C8'Bi077<kJl3::3?\ARS-|a7GHr   c                    V P                  V P                  R4      V P                  R,          4       V P                  V P                  R4      R4       V P                  V P                  R4      R4       V P                  V P                  R4      \        R4      4       V P                  V P                  R4      \        R4      4       V P                  V P                  \        4      \        \        4      4       V P                  \        V P                  \        ^,
          4       V P                  \        4      ;_uu_ 4        V P                  \        ) ^,
          4       RRR4       R#   + '       g   i     R# ; i)	r   z-1234z-123456Nr   i.ii2i.i)ra   r  r  r   r   ru   r  r   r   s   &r   r  _Test4dYear.test_negative  s    b)4<<"+<=e,g6g.	:j13z?Ck2C4DEl3S5FG-|a7GH}--LL,*+ .---s   E,,E=	r   )NN)
r   r   r   r   r  r  r  r  r   r  r  s   @r   r  r    s     G1I
, 
,r   r  c                       ] tR tRtRtR# )TestAsctime4dyeari  r   Nr   r   r   r   r   r   r   r   r  r        r   r  c                       ] tR tRtRtR# )TestStrftime4dyeari  r   Nr  r   r   r   r  r    r  r   r  c                     a  ] tR tRt o ]]P                  ! ]P                  ^8H  R4      R 4       4       t	]P                  ! ]P                  ^8H  R4      R 4       t
]P                  ! ]P                  ^8H  R4      R 4       tRtV tR# )
TestPytimei  zneeds tm_zone supportc                n   \         P                  ! 4       pV P                  VR 4       V P                  VR4       VP                  f   V P	                  \         R4       MLV P                  VP                  \         P                  \         P                  .VP                  ,          ) 4       VP                  f   V P	                  \         R4       M;V P                  VP                  \         P                  VP                  ,          4       \         P                  ! V4      p\         P                  ! VR,          4      pV P                  W#4       \         P                  ! V4      p\         P                  ! V4      pV P                  WA4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       V P                  WQ4       V P                  VP                  VP                  4       V P                  VP                  VP                  4       R# )	tm_gmtofftm_zoneNr$   r%   :Nr  N)r   r|   assertHasAttrr  assertNotHasAttrra   r$   r"   r#  r  r%   r}   )r   ltr   t9new_ltnew_lt9s   &     r   test_localtime_timezone"TestPytime.test_localtime_timezone  s   
 ^^2{+2y) <<!!$
3R\\T]]DLL,I"++,V+VW::!!$1RZZR[[)AB
 KKO$++bf"5R "dnnR.@G$))2<<84%))2<<8"**5r   c                    \         P                  ! R R4      pV P                  VP                  R 4       \         P                  ! RR4      pV P                  VP                  R4       R# )UTCrG  z+0500z%zNr  )r   r   ra   r  r  rK   s   & r   test_strptime_timezone!TestPytime.test_strptime_timezone  sJ    MM%&E*MM'4(h/r   c                    ^ RI pRpVP                  V4      pV P                  VP                  R4       V P                  VP                  R4       R# )r   NsL   ctime
struct_time
p0
((I2007
I8
I11
I1
I24
I49
I5
I223
I1
tp1
(dp2
tp3
Rp4
.)pickleloadsassertIsr  r  )r   r  str  s   &   r   test_short_timesTestPytime.test_short_times!  sA     	 m\\"bllD)bjj$'r   r   N)r   r   r   r   r   ry  rz  r   _STRUCT_TM_ITEMSr  r  r  r   r  r  s   @r   r  r    s     !.."46MN 6 O " 6D .."46MN0 O0 .."46MN( O(r   r  z!need the _testinternalcapi modulec                   Z   a  ] tR tRt o RtR tR tR tRR ltRR lt	RR lt
R	 tR
tV tR# )CPyTimeTestCasei-  Nc                z    ^ RI Hp V^,          ^,
          p^V,          ) V n        ^V,          ^,
          V n        R# )r   )SIZEOF_TIME_TN)_testinternalcapir  
time_t_min
time_t_max)r   r  bitss   &  r   r   CPyTimeTestCase.setUp5  s0    3q 1$9*t)a-r   c                V    V P                   Tu;8*  ;'       d    V P                  8*  # u # r   )r  r  )r   secondss   &&r   time_t_filterCPyTimeTestCase.time_t_filter;  s#    7==doo=>=>r   c           
        ^\         \        \        .pV'       d   VP                  R4       Rp^ .pV F(  pV F  pWe,          pVP	                  V) V34       K!  	  K*  	  R FL  p^V,          \        ,          pVP	                  V) ^,
          V) V) ^,           V^,
          Ww^,           34       KN  	  \
        P                  \
        P                  3 F  p	VP                  V	\        ,          4       K!  	  V'       d(   R F!  pRV) ,          pVP	                  V) V34       K#  	  R\        ,          \        ,          pVP	                  V) V34       V# )r   gMbP?g       @)r   rB        {   i  i  r  c   r  r  i i?B i  i  i  i  i  i  i	  i  i  )	r   r  
         r   r      !   )r  r  r  r  l            )US_TO_NSMS_TO_NS	SEC_TO_NSrr  extend	_testcapiINT_MININT_MAX)
r   	use_floatunitsvaluesns_timestampsunitr   r7   pow2r  s
   &&        r   _rounding_values CPyTimeTestCase._rounding_values>  s6    Hh	2LL
$ D\$$rc2Y/    7Dt)y(B  AsRCE1bQ$"  7 "))9+<+<=G  9!45 >&dU^$$rc2Y/ '
 "i/rc2Y'r   c           	       aaa VVV3R  lpV P                  S4      pV! V4      p\         Fd  w  r\        P                  ! 4       ;_uu_ 4       pWn        V F-  pRVRV
/p V! W4      pV! V4      pV P                  XXV4       K/  	  RRR4       Kf  	  V P                  \        ,          pV) V3pV! V4      p\         FE  w  p	pV F9  pRVRV	/pV P                  \        VR7      ;_uu_ 4        V! W4       RRR4       K;  	  KG  	  R#   \
         d    T P                  RT,          4        Li ; i  + '       g   i     EK  ; i  + '       g   i     K  ; i)c                   < S'       d/   \         \        S4      ,          pV  Uu. uF  q"V,          NK  	  ppM$\         S,          pV  Uu. uF  q"V,          NK  	  ppS'       d   \        SV4      p\        \	        V4      4      # u upi u upi r   )r  rJ   filtersortedset)r  
unit_to_nsr7   r  unit_to_secr   value_filters   &   r   convert_values7CPyTimeTestCase._check_rounding.<locals>.convert_valuest  s    &{);;
4ABMbz//MB&+5
5BC]r
**]Cf5 #f+&& C Ds   B	B	r   roundingz!Error on timestamp conversion: %sN)r  )r  ROUNDING_MODESdecimallocalcontextr  	Exceptionr   ra   OVERFLOW_SECONDSr  ru   r  )r   pytime_converterexpected_funcr   r  r  r  r  valid_valuestime_rnddecimal_rndcontextr   
debug_infor   r   r7   overflow_values_s   &&&fff             r   _check_roundingCPyTimeTestCase._check_roundingq  sL   	' --i8%m4%3!H%%''7#. )E")5*k!JJT!1%!B#0#7 $$V%-%/1 * (' &4  ""Y.b	(7)KHa(%uj(C
&&}*&EE$U5 FE ) * % T		"E
"RST (''* FEEs<   D1 D0D1-	E	#D.+D1-D..D11EEc                ,    V P                  WR W44       R# )FNr!  r   r  r  r  r  s   &&&&&r   check_int_rounding"CPyTimeTestCase.check_int_rounding  s    -"K	?r   c                ,    V P                  WR W44       R# )TNr$  r%  s   &&&&&r   check_float_rounding$CPyTimeTestCase.check_float_rounding  s    -!;	>r   c                f    \         P                  ! V4      pVP                  ^4      p\        V4      # )r   )r  Decimalquantizer4   )r   r   r   s   && r   decimal_roundCPyTimeTestCase.decimal_round  s&    OOAJJqM1vr   )r  r  r   )r   N)r   r   r   r   r  r   r  r  r!  r&  r)  r.  r   r  r  s   @r   r  r  -  s7      (?1f+6Z?
>
 r   r  c                   <  a  ] tR tRt o ]P
                  ! R],          4      tR tR t	R t
R tR t]P                  ! ]! ]R4      R4      R	 4       t]P                  ! ]! ]R
4      R4      R 4       t]P                  ! ]! ]R4      R4      R 4       tR tR tRtV tR# )TestCPyTimei  c                   a ^ RI Ho R pV P                  V3R lR VR7       \         F<  w  r#V P	                  \
        4      ;_uu_ 4        S! \        R4      4       RRR4       K>  	  R#   + '       g   i     KS  ; i)r   )_PyTime_FromSecondsc                 f    \         P                  T u;8*  ;'       d    \         P                  8*  # u # r   )r  r  r  secss   &r   c_int_filter2TestCPyTime.test_FromSeconds.<locals>.c_int_filter  s'    %%BB1B1BBCBCr   c                    < S! V 4      # r   r   )r6  rndr3  s   &&r   r   .TestCPyTime.test_FromSeconds.<locals>.<lambda>  s    2Ed2Kr   c                     V \         ,          # r   r  r5  s   &r   r   r;    s	    TI-=r   r  rj  N)r  r3  r&  r  ru   r   rJ   )r   r7  r  r   r3  s   &   @r   test_FromSecondsTestCPyTime.test_FromSeconds  sg    9	D 	 K =-9 	  	;
 *KH""9--#E%L1 .- *---s   A,,A=c                  a  ^ RI Hp S P                  VR 4       S P                  VV 3R l4       \         F=  w  r#S P                  \        4      ;_uu_ 4        V! \        R4      V4       RRR4       K?  	  R#   + '       g   i     KT  ; i)r   )_PyTime_FromSecondsObjectc                     V \         ,          # r   r=  r5  s   &r   r   4TestCPyTime.test_FromSecondsObject.<locals>.<lambda>  s	    	)r   c                 <   < SP                  V \        ,          4      # r   )r.  r  )r7   r   s   &r   r   rD    s    t))"y.9r   rj  N)r  rB  r&  r)  r  ru   r   rJ   )r   rB  r  r   s   f   r   test_FromSecondsObject"TestCPyTime.test_FromSecondsObject  so    ?%)	+ 	!!%9	;
 *KH"":..)%,A /. *...s   A::Bc                P   a ^ RI Ho R pV P                  V3R lV\        4       R# )r   )PyTime_AsSecondsDoublec                     \        V 4      \        ,          ^ 8X  d   \        V \        ,          4      # \        V 4      \        ,          # r   )absr  rJ   r7   s   &r   float_converter9TestCPyTime.test_AsSecondsDouble.<locals>.float_converter  s1    2w"a'R9_--Ry9,,r   c                    < S! V 4      # r   r   )r7   r:  rI  s   &&r   r   2TestCPyTime.test_AsSecondsDouble.<locals>.<lambda>  s    0Fr0Jr   N)r  rI  r&  	NS_TO_SEC)r   rN  rI  s   & @r   test_AsSecondsDouble TestCPyTime.test_AsSecondsDouble  s$    4	- 	 J / )	+r   c                D   a a \         P                  ! V4      oVV 3R  lpV# )c                 `   < \         P                  ! V 4      S,          pSP                  V4      # r   )r  r,  r.  )r   r   denomr   s   & r   	converter7TestCPyTime.create_decimal_converter.<locals>.converter  s'    &.A%%a((r   )r  r,  )r   denominatorrX  rW  s   f& @r   create_decimal_converter$TestCPyTime.create_decimal_converter  s    ,	) r   c                   aaa ^ RI Hp V P                  \        4      oV3R lp\        P
                  R8X  d   ^ RIHoHo VV3R lpMV P                  pV P                  VV\        VR7       R# )r   )_PyTime_AsTimevalc                 4   < S! V 4      p\        V\        4      # r   )divmod	SEC_TO_US)r7   usus_converters   & r   timeval_converter5TestCPyTime.test_AsTimeval.<locals>.timeval_converter  s    b!B"i((r   win32LONG_MINLONG_MAXc                 0   < ST u;8*  ;'       d    S8*  # u # r   r   )r6  ri  rh  s   &r   seconds_filter2TestCPyTime.test_AsTimeval.<locals>.seconds_filter  s    43383333r   r>  N)r  r^  r[  r  r^   r\   r  rh  ri  r  r&  rR  )r   r^  rd  rk  ri  rh  rc  s   &   @@@r   test_AsTimevalTestCPyTime.test_AsTimeval  s]    744X>	) <<7"44 "//N 1 1 )-; 	  	=r   _PyTime_AsTimespecz)need _testinternalcapi._PyTime_AsTimespecc                h   a ^ RI Ho R pV P                  V3R lV\        V P                  R7       R# )r   )ro  c                 "    \        V \        4      # r   )r`  r  rM  s   &r   timespec_converter7TestCPyTime.test_AsTimespec.<locals>.timespec_converter  s    "i((r   c                    < S! V 4      # r   r   )r7   r:  ro  s   &&r   r   -TestCPyTime.test_AsTimespec.<locals>.<lambda>
  s    0B20Fr   r>  N)r  ro  r&  rR  r  )r   rr  ro  s   & @r   test_AsTimespecTestCPyTime.test_AsTimespec  s5     	9	) 	 F 2 )-1-?-? 	  	Ar   _PyTime_AsTimeval_clampz.need _testinternalcapi._PyTime_AsTimeval_clampc                J   ^ RI Hp \        P                  R8X  d   ^ RIHpHp TpTpMV P                  pV P                  p\        \        3 F  pV! V\        P                  4      p\        P                  ! 4       ;_uu_ 4       p\        P                  Vn        V P!                  \        P"                  ! V4      \$        ,          4      p	RRR4       \'        X	\(        4      w  rWJ8  d   Tp
^ pM
W8  d   Tp
^ pV P+                  WzV34       K  	  R#   + '       g   i     LP; i)r   )rx  rf  rg  N)r  rx  r^   r\   r  rh  ri  r  r  
PyTime_MIN
PyTime_MAXr
   r   r  r  r  r.  r,  r  r`  ra  ra   )r   rx  rh  ri  
tv_sec_max
tv_sec_minr   tsr  rb  tv_sectv_usecs   &           r   test_AsTimeval_clamp TestCPyTime.test_AsTimeval_clamp  s     	><<7"4!J!JJJj)A(G,A,ABB%%''7#*#8#8 ''(:X(EF ( %R3OF"#$#R'!23 *''s   ADD"_PyTime_AsTimespec_clampz/need _testinternalcapi._PyTime_AsTimespec_clampc                   ^ RI Hp \        \        3 Fn  pV! V4      p\	        V\
        4      w  rEV P                  V8  d   V P                  p^ pMW@P                  8  d   V P                  p^ pV P                  W4V34       Kp  	  R# )r   )r  N)	r  r  rz  r{  r`  rR  r  r  ra   )r   r  r   r~  r  tv_nsecs   &     r   test_AsTimespec_clamp!TestCPyTime.test_AsTimespec_clamp*  ss     	?j)A)!,B$Q	2OF'//)R'!23 *r   c                f    ^ RI Hp V P                  VV P                  \        4      \
        4       R# )r   )_PyTime_AsMillisecondsN)r  r  r&  r[  r  rR  )r   r  s   & r   test_AsMillisecondsTestCPyTime.test_AsMilliseconds:  '    < 6 $ = =h G )	+r   c                f    ^ RI Hp V P                  VV P                  \        4      \
        4       R# )r   )_PyTime_AsMicrosecondsN)r  r  r&  r[  r  rR  )r   r  s   & r   test_AsMicrosecondsTestCPyTime.test_AsMicrosecondsA  r  r   r   Nl           )r   r   r   r   mathceilr  r  r?  rF  rS  r[  rm  ry  rz  rC   r  rv  r  r  r  r  r   r  r  s   @r   r1  r1    s     
 yy)y!892 B +=. !24HIDF	AF	A !24MNIK4K42 !24NOJL4L4++ +r   r1  c                   <   a  ] tR tRt o RtR tR tR tR tRt	V t
R# )	TestOldPyTimeiI  c                    ^ RI Hp V P                  VR V P                  R7       V P	                  VV P
                  V P                  R7       R# )r   )_PyTime_ObjectToTime_tc                     V # r   r   r5  s   &r   r   5TestOldPyTime.test_object_to_time_t.<locals>.<lambda>U  s    Tr   r>  N)r  r  r&  r  r)  r.  )r   r  s   & r   test_object_to_time_t#TestOldPyTime.test_object_to_time_tQ  sS    < 6 1-1-?-? 	  	A 	!!"8"&"4"4/3/A/A 	" 	Cr   c                   a a VV 3R  lpV# )c                    < \         P                  ! V 4      w  r\        V4      pVS,          pSP                  V4      pV^ 8  d   VS,          pV^,          pW!3# VS8  d   VS,          pV^,          pW!3# rK  )r  modfr4   r.  )r6  	floatpartintpartsec_to_unitr   s   &  r   rX  1TestOldPyTime.create_converter.<locals>.converter]  s    !%4I'lG$I**95I1}[(	1 '' k)[(	1''r   r   )r   r  rX  s   ff r   create_converterTestOldPyTime.create_converter\  s    	( r   c                h   ^ RI Hp V P                  VR V P                  R7       V P	                  VV P                  \        4      V P                  R7       \         F=  w  r#V P                  \        4      ;_uu_ 4        V! \        R4      V4       RRR4       K?  	  R#   + '       g   i     KT  ; i)r   )_PyTime_ObjectToTimevalc                 
    V ^ 3# rK  r   r5  s   &r   r   6TestOldPyTime.test_object_to_timeval.<locals>.<lambda>o      dAYr   r>  rj  N)r  r  r&  r  r)  r  ra  r  ru   r   rJ   )r   r  r  r   s   &   r   test_object_to_timeval$TestOldPyTime.test_object_to_timevalk  s    = 7 6-1-?-? 	  	A 	!!"9"&"7"7	"B/3/A/A 	" 	C
 *KH"":..'eh? /. *...   ?B  B1c                h   ^ RI Hp V P                  VR V P                  R7       V P	                  VV P                  \        4      V P                  R7       \         F=  w  r#V P                  \        4      ;_uu_ 4        V! \        R4      V4       RRR4       K?  	  R#   + '       g   i     KT  ; i)r   )_PyTime_ObjectToTimespecc                 
    V ^ 3# rK  r   r5  s   &r   r   7TestOldPyTime.test_object_to_timespec.<locals>.<lambda>  r  r   r>  rj  N)r  r  r&  r  r)  r  r  r  ru   r   rJ   )r   r  r  r   s   &   r   test_object_to_timespec%TestOldPyTime.test_object_to_timespec{  s    > 8 6-1-?-? 	  	A 	!!":"&"7"7	"B/3/A/A 	" 	C
 *KH"":..(ux@ /. *...r  r   Nl            )r   r   r   r   r  r  r  r  r  r   r  r  s   @r   r  r  I  s*      	C@ A Ar   r  darwinztest weak linking on macOSc                   &   a  ] tR tRt o R tRtV tR# )TestTimeWeaklinkingi  c                   ^ RI p^ RIpVP                  ! 4       pRpWC9  g   W4,          '       g   \        P                  ! V R24      h\
        ;QJ d9    . R VP                  ! 4       ^ ,          P                  R4       4       F  NK  	  5M2! R VP                  ! 4       ^ ,          P                  R4       4       4      p. ROpVR8  d"   V F  pV P                  \        V4       K  	  R# V F  pV P                  \        V4       K  	  R# )r   NHAVE_CLOCK_GETTIMEz is not availablec              3   8   "   T F  p\        V4      x  K  	  R # 5ir   )r4   ).0r   s   & r   	<genexpr>;TestTimeWeaklinking.test_clock_functions.<locals>.<genexpr>  s     I(H1A(Hs   .)rN   r<   rF   rr   clock_settime_nsrj   )r  r   )	sysconfigr\   get_config_varsry  SkipTestr   mac_verr  r  r   r  )r   r  r\   config_varsvar_namer  clock_namesrp  s   &       r   test_clock_functions(TestTimeWeaklinking.test_clock_functions  s    //1'&k.C.C##xj0A$BCC%I(8(8(:1(=(C(CC(HI%%I(8(8(:1(=(C(CC(HII0 h#""4. $ $%%dD1 $r   r   N)r   r   r   r   r  r   r  r  s   @r   r  r    s     2 2r   r  __main__i@B r  i ʚ;l         l    )5testr   test.supportr   r  enumr  r\   r^   r  r   rY   ry  r  ImportErrorr  r   r   get_config_varr   r   r   ra  r  r  r  rR  IntEnumr
   rz  r{  r   r   r   r   r  TestCaser   r  r  r  r  r  r  r  r{  r  r1  r  rz  r  r   mainr   r   r   <module>r     s    (     
     K %%l388q
Q^a''1,}q 4'			dll  


 '--.G112g556w''(O	B8$$ O	Bd4"" 4	? 	?- -`, ,@	(+x7H7H 		*K9J9J 	5("" 5(p 
d"$GH	"d*,OP| | Q I|~X+/8#4#4 X+v@AOX%6%6 @AD 
S\\X-/KL2(++ 2 M2< zMMO y$  I  s"   I I$ 	I! I!$	I10I1