+
    BiA                    x   ^ 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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 ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
I H!t!H"t"H#t# ^ RI$H%t% ^ RI&H't' ]PP                  '       g   ]PR                  ! R4      h]PT                  PW                  ]PT                  PY                  ]-4      RR4      t.]PT                  P_                  ]PT                  Pa                  ].4      4      t.Rt1R(t2RRPW                  ]24       R2t2^t3^t4^t5^t6^t7]Pp                  ! R4      t9 ! R R]Pt                  4      t;]Px                  ! RR7       ! R R4      4       t= ! R R]Pt                  4      t> ! R R]>4      t?]P                   ! R R]>4      4       tA]P                   ! R  R!]>4      4       tB ! R" R#]Pt                  4      tC^ R$IDHEtE  ! R% R&]Pt                  4      tF]GR'8X  d%   ]P                  ! 4        ]P:                  ! 4        R# R# ))    N)ElementTree)support)import_helper)	os_helper)cmdline)main)setup)utils)get_match_testsset_match_tests
match_test)	TestStats)normalize_test_nameztest module requires subprocessz..z5[0-9]+:[0-9]+:[0-9]+ (?:load avg: [0-9]+\.[0-9]{2} )?z(?:|)z
    from signal import SIGINT, raise_signal
    try:
        raise_signal(SIGINT)
    except ImportError:
        import os
        os.kill(os.getpid(), SIGINT)
    c                     a  ] tR t^It o ]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 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] PB                  ! ]"PF                  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) t0R* t1R+ t2R,R-R.R-/R/ lt3R0 t4R1 t5R2 t6R3 t7R4 t8R5 t9R6 t:R7 t;R8 t<R9t=V t>R:# );ParseArgsTestCasec                .    \         P                  ! V 4      # N)r   _parse_args)argss   &)/usr/lib/python3.14/test/test_regrtest.py
parse_argsParseArgsTestCase.parse_argsN   s    ""4((    c           	     J   \         P                  ! 4       ;_uu_ 4       q0P                  \        4      ;_uu_ 4        V P	                  V4       R R R 4       R R R 4       V P                  VXP                  4       4       R #   + '       g   i     L:; i  + '       g   i     LE; ir   )r   captured_stderrassertRaises
SystemExitr   assertIngetvalue)selfr   msgerrs   &&& r   
checkErrorParseArgsTestCase.checkErrorR   s[    $$&&#/@/@/L/LOOD! 0M&c3<<>* 0M/L&&s"   BA?	B?B
BB"	c                   R F  pV P                  VR7      ;_uu_ 4        \        P                  ! 4       ;_uu_ 4       pV P                  \        4      ;_uu_ 4        V P                  V.4       RRR4       RRR4       V P                  RXP                  4       4       RRR4       K  	  R#   + '       g   i     LF; i  + '       g   i     LQ; i  + '       g   i     K  ; i)-hoptNzRun Python regression tests.)r(   z--help)subTestr   captured_stdoutr   r   r   r    r!   )r"   r*   outs   &  r   	test_helpParseArgsTestCase.test_helpW   s    !C#&&,,..#&&z22OOSE* 3 / <cllnM	 '& " 32 /. '&&s:   CC B-/C 7(C-B=8C  CCC$c                   V P                  R R.4      pV P                  VP                  R4       R	 FW  pV P                  VR7      ;_uu_ 4        V P                  RV 2.4      pV P                  VP                  R4       RRR4       KY  	  V P	                  R .R4       V P	                  R R.R4       R#   + '       g   i     K  ; i)
	--timeoutz4.2g@)valuez
--timeout=Nexpected one argumentfoozinvalid timeout value:)z-10 )r   assertEqualtimeoutr+   r%   )r"   nsr2   s   &  r   test_timeoutParseArgsTestCase.test_timeout_   s    __k512S) %EE**__
5'&:%;<  T2 +* %
 	'>?e,.FG +**s   2B66Cc                `    V P                  R .4      pV P                  VP                  4       R# )--waitN)r   
assertTruewaitr"   r9   s   & r   	test_waitParseArgsTestCase.test_waitl   s"    __hZ( r   c                
   R Fh  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  R4       V P	                  V.R4       RRR4       Kj  	  R#   + '       g   i     K  ; i)-Sr)   r4   r3   N)rD   --start)r+   r   r7   startr%   r"   r*   r9   s   &  r   
test_startParseArgsTestCase.test_startp   sf    "C#&&__c5\2  51'>? '& #&&&   AA11Bc                   V P                  R .4      pV P                  VP                  ^4       V P                  R.4      pV P                  VP                  ^4       V P                  R.4      pV P                  VP                  ^4       V P                  R.^,          4      pV P                  VP                  ^4       V P                  . 4      pV P                  VP                  ^ 4       R# )-vz-vvv	--verboseN)r   r7   verboser@   s   & r   test_verboseParseArgsTestCase.test_verbosew   s    __dV$Q'__fX&Q'__k]+Q'__k]Q./Q'__R Q'r   c                    R FS  pV P                  VR7      ;_uu_ 4        V P                  V.4      pV P                  VP                  4       RRR4       KU  	  R#   + '       g   i     Kj  ; i)-wr)   N)rR   --rerunz
--verbose2)r+   r   r>   rerunrG   s   &  r   
test_rerunParseArgsTestCase.test_rerun   sO    0C#&&__cU+) '& 1&&&   .AA-c                    R FS  pV P                  VR7      ;_uu_ 4        V P                  V.4      pV P                  VP                  4       RRR4       KU  	  R#   + '       g   i     Kj  ; i)-Wr)   N)rY   
--verbose3)r+   r   r>   verbose3rG   s   &  r   test_verbose3ParseArgsTestCase.test_verbose3   O    %C#&&__cU+, '& &&&&rW   c                   R Fo  pV P                  VR7      ;_uu_ 4        V P                  V.4      pV P                  VP                  4       V P	                  VP
                  ^ 4       RRR4       Kq  	  R#   + '       g   i     K  ; i)-qr)   N)r`   --quiet)r+   r   r>   quietr7   rN   rG   s   &  r   
test_quietParseArgsTestCase.test_quiet   sc    "C#&&__cU+)  Q/ '& #&&&s   A
A88B	c                    R FS  pV P                  VR7      ;_uu_ 4        V P                  V.4      pV P                  VP                  4       RRR4       KU  	  R#   + '       g   i     Kj  ; i)-or)   N)rf   	--slowest)r+   r   r>   
print_slowrG   s   &  r   test_slowestParseArgsTestCase.test_slowest   sO    $C#&&__cU+. '& %&&&rW   c                    V P                  R .4      pV P                  VP                  4       V P                  R.4      pV P                  VP                  4       R# )z--headerrM   N)r   r>   headerr@   s   & r   test_headerParseArgsTestCase.test_header   sB    __j\*		"__k]+		"r   c                *   R FS  pV P                  VR7      ;_uu_ 4        V P                  V.4      pV P                  VP                  4       RRR4       KU  	  \        P
                  ! 4       ;_uu_ 4       pRVR&   V P                  R.4      p\        P                  ! V4      pV P                  VP                  4       V P                  VP                  \        4       V P                  VP                  R4       VR V P                  R.4      p\        P                  ! V4      pV P                  VP                  4       V P                  VP                  \        4       RRR4       R#   + '       g   i     EK{  ; i  + '       g   i     R# ; i)-r--randomizer)   N
1697839080SOURCE_DATE_EPOCH)rp   rq   )r+   r   r>   	randomizer   EnvironmentVarGuardr   RegrtestassertFalseassertIsInstancerandom_seedstrr7   int)r"   r*   r9   envregrtests   &    r   test_randomize ParseArgsTestCase.test_randomize   s2   (C#&&__cU+- '& )
 **,,'3C#$-1B}}R(HX//0!!("6"6<X11<@ '(-1B}}R(HOOH../!!("6"6< -,	 '&& -,,s   .E,7C+F,E>F	c                   V P                  . 4      pV P                  VP                  R 4       V P                  R.4      pV P                  VP                  R4       V P                  R.4      pV P                  VP                  R 4       V P                  RR.4      pV P                  VP                  R 4       V P                  RR.4      pV P                  VP                  R 4       R# )Frq   T--no-randomizeN)r   assertIsrt   r@   s   & r   test_no_randomize#ParseArgsTestCase.test_no_randomize   s    __R bllE*__m_-bllD)__./0bllE*__m-=>?bllE*__.>?bllE*r   c                |   V P                  R R.4      pV P                  VP                  R4       V P                  VP                  4       V P                  R .R4       V P                  R R.R4       V P                  . RO4      pV P                  VP                  R4       V P                  VP                  4       R# )
--randseed12345i90  r3   r4   invalid int valueN)r   r   r   )r   r7   ry   r>   rt   r%   rw   r@   s   & r   test_randseedParseArgsTestCase.test_randseed   s    __lG45/%(?@u-/BC__FG/&r   c                4   R F}  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  R4       V P	                  V.R4       V P	                  VRR.R4       RRR4       K  	  R#   + '       g   i     K  ; i)-fr)   r4   r3   -sdon't go togetherN)r   
--fromfile)r+   r   r7   fromfiler%   rG   s   &  r   test_fromfileParseArgsTestCase.test_fromfile   s|    %C#&&__c5\2  e4'>?eT 24GH	 '& &&&&s   ABBc                    R FS  pV P                  VR7      ;_uu_ 4        V P                  V.4      pV P                  VP                  4       RRR4       KU  	  R#   + '       g   i     Kj  ; i)-xr)   N)r   	--exclude)r+   r   r>   excluderG   s   &  r   test_excludeParseArgsTestCase.test_exclude   O    $C#&&__cU+

+ '& %&&&rW   c                
   R Fh  pV P                  VR7      ;_uu_ 4        V P                  V.4      pV P                  VP                  4       V P	                  VRR.R4       RRR4       Kj  	  R#   + '       g   i     K  ; i)r   r)   r   r4   r   N)r   z--single)r+   r   r>   singler%   rG   s   &  r   test_singleParseArgsTestCase.test_single   se    #C#&&__cU+		*dE 24GH '& $&&&rJ   c                n   R Fi  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  R.4       V P	                  V.R4       RRR4       Kk  	  R Fi  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  R.4       V P	                  V.R4       RRR4       Kk  	  V P                  . RO4      pV P                  VP                  RR.4       V P                  . RO4      pV P                  VP                  RR.4       V P                  . RO4      pV P                  VP                  RR.4       V P                  \        P                  \        P                  4       \        \        P                  R4      ;_uu_ 4       p\        RVR7       \        R	VR7       RRR4       \        P                  P                  \        P                  4      pV P                  R R
RV.4      pV P                  VP                  . RO4       V P                  RR
RV.4      pV P                  VP                  . RO4       R#   + '       g   i     EK  ; i  + '       g   i     EK/  ; i  + '       g   i     L; i)-mr)   patternr3   N-iw
matchfile1file
matchfile2match--matchfile--ignorefile)r   z--match)r   T)r   z--ignore)r   F)r   pattern1r   pattern2)r   T)r   T)r   r   r   r   )r   F)r   r   r   r   )r   F))r   T)r   T)r   T))r   F)r   F)r   F)r+   r   r7   match_testsr%   
addCleanupr   unlinkTESTFNopenprintospathabspath)r"   r*   r9   fpfilenames   &    r   
test_matchParseArgsTestCase.test_match   s%   "C#&&__c9%56  2C1DE'>? '& # $C#&&__c9%56  2D1EF'>? '& $ __AB*<>P)QR__AB*<>Q)RS__AB*=?Q)RS	(()*:*:;)""C((B,R(,R( ) 77??9#3#34__dG]HEFV	X __dG^XFGY	[? '&& '&& )(s%   AI:AJJ$:JJ!$J4	c                d   R F  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  4       V P                  VR.4      pV P                  VP                  4       V P	                  V.R4       RRR4       K  	  R#   + '       g   i     K  ; i)-Gr)   rL   rY   z#-G/--failfast needs either -v or -WN)r   z
--failfast)r+   r   r>   failfastr%   rG   s   &  r   test_failfastParseArgsTestCase.test_failfast  s    %C#&&__c4[1,__c4[1,'LM '& &&&&s   A0BB/c           	     J   R EF  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  RR.4       V P                  VR.4      pV P                  VP                  R.4       \	        \
        P                  4      pVP                  R4       V P                  VR.4      pV P                  VP                  V4       V P                  V.R4       V P                  VR.R	4       V P                  VR
.4      pV P                  VP                  \	        \
        P                  4      R.,           4       V P                  VR.4      pV P                  VP                  R.4       RRR4       EK  	  R#   + '       g   i     EK  ; i)-ur)   zgui,networkguinetworkzgui,none,networkzall,-guir3   r4   zinvalid resourcez
all,tzdatatzdataextralargefileN)r   z--use)	r+   r   r7   use_resourceslistr   ALL_RESOURCESremover%   )r"   r*   r9   expecteds   &   r   test_useParseArgsTestCase.test_use  sc    C#&&__c=%9:  !1!1E93EF__c+=%>?  !1!1I;? 5 56&__c:%67  !1!18<'>?e.@A __c<%89  !1!1!%g&;&;!<z!IK __c+;%<=  !1!14D3EF+ '& !&&&s   E FF"c                
   R Fh  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  R4       V P	                  V.R4       RRR4       Kj  	  R#   + '       g   i     K  ; i)-Mr)   4Gr3   N)r   z
--memlimit)r+   r   r7   memlimitr%   rG   s   &  r   test_memlimitParseArgsTestCase.test_memlimit/  sf    %C#&&__c4[1  d3'>? '& &&&&rJ   c                    V P                  R R.4      pV P                  VP                  \        P                  P                  \        P                  R4      4       V P                  R .R4       R# )z	--testdirr4   r3   N)	r   r7   testdirr   r   joinr   SAVEDCWDr%   r@   s   & r   test_testdirParseArgsTestCase.test_testdir6  sO    __k512RWW\\)2D2De%LM'>?r   c                    R FS  pV P                  VR7      ;_uu_ 4        V P                  V.4      pV P                  VP                  4       RRR4       KU  	  R#   + '       g   i     Kj  ; i)-Lr)   N)r   z
--runleaks)r+   r   r>   runleaksrG   s   &  r   test_runleaksParseArgsTestCase.test_runleaks;  r^   rW   c                   R EF2  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  R4       V P                  VR.4      pV P                  VP                  R4       V P                  VR.4      pV P                  VP                  R4       V P                  VR.4      pV P                  VP                  R4       V P	                  V.R4       V P	                  VR.R4       V P	                  VR	.R
4       V P	                  VR.R
4       RRR4       EK5  	  R#   + '       g   i     EKK  ; i)-Rr)   :z6:z:3z6:3:leaks.logr3   6z&needs 2 or 3 colon-separated argumentszfoo:zinvalid huntrleaks valuez6:fooN)r   --huntrleaks)      
reflog.txt)   r   r   )r      r   )r   r   z	leaks.log)r+   r   r7   
huntrleaksr%   rG   s   &  r   test_huntrleaks!ParseArgsTestCase.test_huntrleaksA  s   'C#&&__c3Z0  0DE__c4[1  0DE__c4[1  0DE__c?%;<  0CD'>?c
 HJf/IJg0JK '& (&&&s   DD<<Ec                2   R F|  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  ^4       V P	                  V.R4       V P	                  VR.R4       RRR4       K~  	  R#   + '       g   i     K  ; i)-jr)   2r3   r4   r   N)r   z--multiprocess)r+   r   r7   use_mpr%   rG   s   &  r   test_multiprocess#ParseArgsTestCase.test_multiprocessR  sy    )C#&&__c3Z0  A.'>?e.AB	 '& *&&&   ABBc           
        R F  pV P                  VR7      ;_uu_ 4        \        P                  ! 4       ;_uu_ 4       pV P                  V.4      pRRR4       V P	                  XP
                  4       V P                  RXP                  4       4       RRR4       K  	  R#   + '       g   i     LY; i  + '       g   i     K  ; i)-Tr)   Nz+collecting coverage without -j is impreciser   
--coverage)r+   r   r   r   r>   tracer    r!   )r"   r*   stderrr9   s   &   r   test_coverage_sequential*ParseArgsTestCase.test_coverage_sequentialZ  s    %C#&&,,..&#/B /)AOO%	 '& &.. '&&s#   B5B"AB5"B2-B55Cneed a debug buildc                    R FT  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  4       RRR4       KV  	  R#   + '       g   i     Kk  ; i)r   r)   -j1Nr   )r+   r   r>   r   rG   s   &  r   test_coverage_mp"ParseArgsTestCase.test_coverage_mpe  sQ    %C#&&__c5\2) '& &&&&s   /AA.c           
     b   R F  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  \        P
                  P                  \        P                  R4      4       V P                  V.R4       RRR4       K  	  R#   + '       g   i     K  ; i)-Dr)   r4   r3   N)r   z
--coverdir)
r+   r   r7   coverdirr   r   r   r   r   r%   rG   s   &  r   test_coverdirParseArgsTestCase.test_coverdirl  s    %C#&&__c5\2  !#i.@.@%!HJ'>?	 '& &&&&s   A/BB.c                    R FS  pV P                  VR7      ;_uu_ 4        V P                  V.4      pV P                  VP                  4       RRR4       KU  	  R#   + '       g   i     Kj  ; i)-Nr)   N)r  z--nocoverdir)r+   r   assertIsNoner   rG   s   &  r   test_nocoverdir!ParseArgsTestCase.test_nocoverdirt  sQ    'C#&&__cU+!!"++. '& (&&&rW   c                2   R F|  pV P                  VR7      ;_uu_ 4        V P                  VR.4      pV P                  VP                  R4       V P	                  V.R4       V P	                  VR.R4       RRR4       K~  	  R#   + '       g   i     K  ; i)	-tr)   1000  r3   r4   r   N)r  z--threshold)r+   r   r7   	thresholdr%   rG   s   &  r   test_threshold ParseArgsTestCase.test_thresholdz  sy    &C#&&__c6]3  t4'>?e.AB	 '& '&&&r   c           
        R F  pV P                  VR7      ;_uu_ 4        \        P                  ! \        P                  ! 4       4      ;_uu_ 4       pV P                  V.4      pRRR4       V P                  XP                  4       XP                  4       pV P                  RV4       RRR4       K  	  R#   + '       g   i     L[; i  + '       g   i     K  ; i)-nr)   Nz)the --nowindows (-n) option is deprecated)r  z--nowindows)
r+   
contextlibredirect_stderrioStringIOr   r>   	nowindowsr!   r    )r"   r*   r   r9   r$   s   &    r   test_nowindows ParseArgsTestCase.test_nowindows  s    &C#&&//>>&#/B ?-oo'I3O '& '>> '&&s$   2CB8%AC8CCCc                    R FS  pV P                  VR7      ;_uu_ 4        V P                  V.4      pV P                  VP                  4       RRR4       KU  	  R#   + '       g   i     Kj  ; i)-Fr)   N)r  	--forever)r+   r   r>   foreverrG   s   &  r   test_foreverParseArgsTestCase.test_forever  r   rW   c                ,    V P                  R .R4       R# )z--xxxzusage:Nr%   r"   s   &r   test_unrecognized_argument,ParseArgsTestCase.test_unrecognized_argument  s    	8,r   c                    V P                  R .4      pV P                  VP                  4       V P                  VP                  ^ 4       R# )z--quiN)r   r>   rb   r7   rN   r@   s   & r   test_long_option__partial+ParseArgsTestCase.test_long_option__partial  s6    __gY'!Q'r   c                    V P                  R R.4      pV P                  VP                  4       V P                  VP                  ^ 4       V P                  VP
                  4       R# )ra   r   N)r   r>   rb   r7   rN   r   r@   s   & r   test_two_options"ParseArgsTestCase.test_two_options  sI    __i56!Q'

#r   c                d    V P                  R R.4      pV P                  VP                  R4       R# )rE   r6   N)r   r7   rF   r@   s   & r   #test_option_with_empty_string_value5ParseArgsTestCase.test_option_with_empty_string_value  s(    __i_-2&r   c                d    V P                  R .4      pV P                  VP                  R .4       R# )r4   N)r   r7   r   r@   s   & r   test_argParseArgsTestCase.test_arg  s(    __eW%5'*r   c                    V P                  R R.4      pV P                  VP                  4       V P                  VP                  ^ 4       V P                  VP
                  R.4       R# )ra   r4   N)r   r>   rb   r7   rN   r   r@   s   & r   test_option_and_arg%ParseArgsTestCase.test_option_and_arg  sO    __i/0!Q'5'*r   c                    V P                  . RO4      pV P                  VP                  ^4       V P                  VP                  R R.4       R# )test_unaryop
test_binopN)r2  rL   r3  )r   r7   rN   r   r@   s   & r   test_arg_option_arg%ParseArgsTestCase.test_arg_option_arg  s>    __ABQ'><"@Ar   c                ,    V P                  R .R4       R# )z--unknown-optionz(unrecognized arguments: --unknown-optionNr  r  s   &r   test_unknown_option%ParseArgsTestCase.test_unknown_option  s    +,B	Dr   c                    \         P                  ! V4      p\        P                  ! 4       ;_uu_ 4       pVR  \        P
                  ! V4      pRRR4       V#   + '       g   i     X# ; i)rs   N)r   r   r   ru   r   rv   )r"   r   r9   r|   r}   s   &&   r   create_regrtest!ParseArgsTestCase.create_regrtest  sX      & **,,'(}}R(H	 -  -, s   AA)	rT   Trt   c               F   V P                  V4      pV P                  VP                  R4       V P                  VP                  V4       V P                  VP                  R4       V P                  VP
                  V4       V P                  VP                  \        4       V P                  VP                  4       V P                  VP                  4       V P                  VP                  4       V P                  \        VP                  4      \        V4      4       V# )   F)r:  r7   num_workers
want_rerun
fail_rerunrt   rx   ry   r{   r>   fail_env_changedprint_slowestoutput_on_failuresortedr   )r"   r   r   rT   rt   r}   s   &&&$$ r   check_ci_modeParseArgsTestCase.check_ci_mode  s    ''---r2,,e4,,e4++Y7h22C8112../223 6 679NOr   c                    R .p\        \        P                  4      pVP                  R4       V P	                  W4      pV P                  VP                  R4       R# )	--fast-cicpuNX  )rE  r   r   r   rF  r7   r8   r"   r   r   r}   s   &   r   test_fast_ciParseArgsTestCase.test_fast_ci  sM    }w445U#%%d:))73r   c                    . ROp\        \        P                  4      pVP                  R4       V P	                  WRR7      pV P                  VP                  R4       V P                  VP                  R4       R# )rI  rJ  F)rT   N)rI  --pythonzpython -X devrK  )python-Xdev)rE  r   r   r   rF  r7   r8   
python_cmdrL  s   &   r   test_fast_ci_python_cmd)ParseArgsTestCase.test_fast_ci_python_cmd  sg    9w445U#%%d%G))73,,.EFr   c                    R R.p\        \        P                  4      pVP                  R4       VP                  R4       V P	                  W4       R# )rI  z
-u-networkrJ  r   N)rE  r   r   r   rF  )r"   r   r   s   &  r   test_fast_ci_resource'ParseArgsTestCase.test_fast_ci_resource  sF    \*w445U#Y'4/r   c                    R .p\        \        P                  4      pV P                  W4      pV P	                  VP
                  R4       R# )	--slow-ciNi  )rE  r   r   rF  r7   r8   rL  s   &   r   test_slow_ciParseArgsTestCase.test_slow_ci  s?    }w445%%d:))73r   c                    \        \        P                  4      pV P                  R R.VRR7       V P                  RR.VR0,
          RR7       R# )r[  r   F)rt   rI  rJ  N)setr   r   rF  )r"   all_resourcess   & r   test_ci_no_randomize&ParseArgsTestCase.test_ci_no_randomize  s\    G112*+]e 	 	
 	*+]eW-DPU 	 	
r   c                n    R .p\         P                  ! V4      pV P                  VP                  4       R# )z--dont-add-python-optsN)r   r   rw   _add_python_opts)r"   r   r9   s   &  r   test_dont_add_python_opts+ParseArgsTestCase.test_dont_add_python_opts  s.    ()  &,,-r   c                d    R .pV P                  V4      pV P                  VP                  4       R# )--bisectN)r:  r>   want_bisectr"   r   r}   s   &  r   test_bisectParseArgsTestCase.test_bisect  s+    |''-,,-r   c                   . ROp\         P                  ! 4       ;_uu_ 4        V P                  V4      pRRR4       V P                  XP                  4       V P                  VP                  P                  ^4       V P                  VP                  P                  ^
4       V P                  VP                  4       R#   + '       g   i     L; i)r   N)r   z3:10rZ   )
r   r   r:  assertIsNotNonehunt_refleakr7   warmupsrunsrw   rD  rj  s   &  r   test_verbose3_huntrleaks*ParseArgsTestCase.test_verbose3_huntrleaks   s    +$$&&++D1H 'X223..66:..33R8334 '&s   C  C	c                   R R.p\         P                  ! 4       ;_uu_ 4        V P                  V4      pRRR4       V P                  XP                  ^ 4       V P                  VP                  4       RR.p\         P                  ! 4       ;_uu_ 4        V P                  V4      pRRR4       V P                  VP                  ^ 4       V P                  VP                  4       R#   + '       g   i     L; i  + '       g   i     L\; i)-j2z--single-processNrI  )r   r   r:  r7   r?  r>   single_processrj  s   &  r   test_single_process%ParseArgsTestCase.test_single_process	  s    )*$$&&++D1H '--q1//0/0$$&&++D1H '--q1//0 '& '&s   C'C:'C7	:D
	 N)?__name__
__module____qualname____firstlineno__staticmethodr   r%   r.   r:   rA   rH   rO   rU   r\   rc   ri   rm   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   unittest
skipUnlessr   Py_DEBUGr   r   r  r  r  r  r   r#  r&  r)  r,  r/  r4  r7  r:  rF  rM  rU  rX  r\  ra  re  rk  rr  rw  __static_attributes____classdictcell____classdict__s   @r   r   r   I   sb    
 ) )+
NH!@
(*-0/#=,+ 	'I,I"[HNG2@@
-L"C	 ))+?@* A*@/CP,-(
$'++B
D$ $ 4G04
.
.
51 1r   r   T)slotsc                   ,   a  ] tR tRt o V 3R ltRtV tR# )Reruni  c                L   < V ^8  d   Qh/ S[ ;R&   S[ R,          ;R&   S[;R&   # )   nameNr   success)rz   bool)formatr  s   "r   __annotate__Rerun.__annotate__  s,     
I  :  M	 r   ry  N)rz  r{  r|  r}  __annotate_func__r  r  r  s   @r   r  r    s      r   r  c                      a  ] tR tRt o ^tRtRtR tRR ltR t	RR	 lt
R
 t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 ltV 3R lR ltR!R ltR"R ltRtV tR# )#BaseTestCasei  test_regrtest_ztest_[a-zA-Z0-9_]+c                   \         P                  P                  \         P                  P                  \        4      4      V n        \        P                  ! 4       V n        V P                  \        P                  V P                  4       R # r   )r   r   realpathdirname__file__r   tempfilemkdtemp
tmptestdirr   r   rmtreer  s   &r   setUpBaseTestCase.setUp#  sM    ww''(AB"**,	(($//:r   Nc                   V'       g5   R \         P                  ,          p\         ;P                  ^,          un        Vf   \        P                  ! R4      pV P                  V,           p\
        P                  P                  V P                  VR,           4      pV P                  \        P                  V4        \        VRRR7      ;_uu_ 4       pVP                  V4       RRR4       V#   + '       g   i     T# ; i  \         d;   p\        P                   ! 4       '       g   T P#                  RT: RT: 24       h Rp?ii ; i)	znoop%sNz
                    import unittest

                    class Tests(unittest.TestCase):
                        def test_empty_test(self):
                            pass
                z.pyxzutf-8encodingzcannot write z: )r  TEST_UNIQUE_IDtextwrapdedentTESTNAME_PREFIXr   r   r   r  r   r   r   r   writePermissionError	sysconfigis_python_buildskipTest)r"   r  coder   r   excs   &&&   r   create_testBaseTestCase.create_test)  s    l999D''1,'<?? $ D ##d*ww||DOOTE\:	(($/	dC'22b 3  32 	  	,,..tSAB	s6   <D C.$D .C?	9D ?D E5EEc                    \         P                  ! W\         P                  4      pV'       g   V P                  V: R V: 24       V# )z not found in )research	MULTILINEfail)r"   regexoutputr   s   &&& r   regex_searchBaseTestCase.regex_searchG  s/    		%6IIeV<=r   Fc                    V'       g   \         P                  ! V4      pV'       d
   VR ,          p\         P                  ! RV,           \         P                  4      pV P	                  W4       R# )
^N)r  escapecompiler  assertRegex)r"   r  r   fullr  s   &&&&&r   
check_lineBaseTestCase.check_lineM  sE    ii(GtOG

4'>2<<8'r   c                    R \          RV P                   R\         2p\        P                  ! W!\        P
                  4      p\        R V 4       4      # )r  z\[ *[0-9]+(?:/ *[0-9]+)*\] (z) c              3   B   "   T F  qP                  ^4      x  K  	  R# 5i)r=  N)group).0r   s   & r   	<genexpr>4BaseTestCase.parse_executed_tests.<locals>.<genexpr>Y  s     7uKKNNs   )
LOG_PREFIXTESTNAME_REGEXRESULT_REGEXr  finditerr  r   )r"   r  r  parsers   &&  r   parse_executed_tests!BaseTestCase.parse_executed_testsU  sL    j\ "))*"\N<UBLL97777r   skippedfailedenv_changedomittedrT   run_no_testsresource_deniedrt   parallelinterruptedrB  r  filteredc          	       a" \        V\        4      '       d   V.p\        V\        4      '       d   V.p\        V
\        4      '       d   V
.p
\        V\        4      '       d   V.p\        V\        4      '       d   V.p\        V\        4      '       d   V.p\        V	\        4      '       d   V	.p	\        V\        4      '       d   \        V4      pV'       d   R p. pVeC   V'       g;   VP                  .pVP
                  '       g   VP                  VP                  4       V P                  V4      p\        V4      pVe   VP                  VP                  4       V'       d'   V P                  \        V4      \        V4      V4       MV P                  VVV4       R o"V"3R lpV'       d   V! RV4      pV P                  VV4       V
'       d   V! RV
4      pV P                  VV4       V'       d   V! RV4      pV P                  VV4       V'       d   V! RV4      pV P                  VV4       V'       d   V! RV4      pV P                  VV4       Ve   V! R	VP                  .4      pV P                  VV4       \        R
,           pV P                  VV4       RVP                   R2pVP                  '       d   V RVP                   R2pV P                  VV4       V	'       d   V! RV	4      pV P                  VV4       \        V4      \        V4      ,
          \        V
4      ,
          \        V4      ,
          \        V4      ,
          \        V4      ,
          \        V	4      ,
          pV'       d[   V: RS"! V4      : R2pV'       g/   V'       g'   Ve   VP
                  '       d   V^8  d
   RV,          pV P                  VVR R7       V'       d   V P                  VR4       RVP                  R 2pV'       d   V R2pV.pVP                   '       d    VP                  RVP                   R 24       VP"                  '       d    VP                  RVP"                  R 24       RRP%                  V4       2pV P                  VVR R7       \        V4      \        V
4      ,
          pVe   \        V4      p^pM\        V4      p^ pV'       d   ^ pRV 2pV'       g   V R\        V4       2pV'       d   V R2pV.pRV3R\        V4      3R\        V4      3R \        V
4      3R!V3R"\        V	4      33 F&  w  ppV'       g   K  VP                  V R#V 24       K(  	  R$RP%                  V4       2pV P                  VVR R7       . p V'       d   V P                  R%4       M!V'       d   V'       d   V P                  R&4       V'       d   V P                  R'4       \'        VW]VWn34      '       g   V P                  R(4       MV '       g   V P                  R)4       R*P%                  V 4      p Ve   VP
                  '       d   R)MR%p!V  R+V! 2p V P                  VR,V  2R R7       R# )-TNc                     V ^8w  d   R# R# )r=  sr6   ry  )counts   &r   plural1BaseTestCase.check_executed_tests.<locals>.plural  s    1*3,",r   c                    < \        V4      pR P                  \        V4      4      pWS! V4      3,          pV: RV: R2pV# ) z:\n    $)lenr   rE  )line_formattestsr  namesr  r  s   &&   r   
list_regex5BaseTestCase.check_executed_tests.<locals>.list_regex  s>    JEHHVE]+E&-"88E',e4ELr   z%s test%s skippedz%%s test%s skipped \(resource denied\)z%s test%s failedz;%s test%s altered the execution environment \(env changed\)z%s test%s omittedz%s re-run test%sz)Re-running 1 failed tests in verbose modezRe-running z in verbose modez \(matching: z\)z%s test%s run no testsz testz OK\.zAll %s)r  z(Test suite interrupted by signal SIGINT.zrun=,z \(filtered\)z	failures=zskipped=zTotal tests: r  /r  r  r  r  rT   r  =zTotal test files: FAILUREzENV CHANGEDINTERRUPTEDNO TESTS RANSUCCESS, z then zResult: )
isinstancerz   r{   r   r  r  appendr  r   r7   r_  r  r  r   r  	tests_runfailuresr  r   any)#r"   r  r  statsr  r  r  r  rT   r  r  rt   r  r  rB  r  r  rerun_failedexecutedtotal_testsr  r  goodtextpartslineruntotal_failedtotal_rerunreportr  nteststate	new_stater  s#   &&&$$$$$$$$$$$$$$                 @r   check_executed_tests!BaseTestCase.check_executed_tests[  s    eS!!GEgs##iGos++./Ofc""XFk3''&-Kgs##iGlC(((>LeS!!e$EI[jj\F===##EJJ/,,V45kuzz*S]C,<fEX{F;	-	 2G<EOOFE*GYEOOFE*16:EOOFE*  2*,E OOFE*2G<EOOFE*1EJJ<@EOOFE*!MMEOOFE*"5::,.>?E{{{!7-}B?OOFE*7FEOOFE*E
S\)C,@@3v;Ng,!$[!12474EF)-vd|<E6u}SWZ[S[ 5(OOFEO5OOF$NO eooa()fM*D>>>LL9U^^A$678===LL8EMM!#4560140 +_!55|,LKv;LKCcU|V1SZL)DfM*D|$C,-G%O 45k"S./
KD% uaw/0
 %SXXf%5$6740 LL#+LL'LL'D&w3 4 4LL(LL#		% %*]]]		IgVI;/E(5' 2>r   c                &   < V ^8  d   QhRS[ RS[ /# )r  r  return)rz   )r  r  s   "r   r  BaseTestCase.__annotate__  s        r   c                H    V P                  R V4      pVP                  ^4      # )zUsing random seed: (.*))r  r  )r"   r  r   s   && r   parse_random_seedBaseTestCase.parse_random_seed  s#    !!"<fE{{1~r   c                &   V'       g   R pRV9  d   \         P                  VR&   VP                  RR4      pVf,   \        \        P
                  4      pVP                  RR4       \         P                  ! V3RRRVR\         P                  RV/VB pVP                  V8w  dn   R	\        V4      : R
VP                  : RV: RVP                  : R2	pVP                  '       d   VRVP                  ,          ,          pV P                  V4       V# )r6   r   r|   Nrs   r  TinputstdoutzCommand z failed with exit code z, but exit code z expected!

stdout:
---
z
---
z
stderr:
---
%s---
)
subprocessSTDOUTpopdictr   environr  PIPE
returncoderz   r  r   r  )r"   r   r  exitcodekwr|   procr#   s   &&&&,   r   run_commandBaseTestCase.run_command  s    E2%,,BxLffUD!;rzz"CGG'.~~d $#'$$)$ &0__$ #&	$
 !#$ ??h& $i(DKKIC {{{  
 ++& ' IIcNr   c                   . pR \         P                  9   d   VP                  RR .4       \         P                  .VORNRNpV'       d   VP	                  R4       VP                  V4       V P
                  ! V3/ VB pVP                  # )uopsrR  faulthandlerz-I)sys	_xoptionsextend
executabler  r  r  )r"   r   isolatedr  	extraargscmdr  s   &&&,   r   
run_pythonBaseTestCase.run_python!  sz    	S]]"dF^,~~@	@4@@JJt

4*r*{{r   )r   r  )NNFTry  )Nr   )T)rz  r{  r|  r}  r  r  r  r  r  r  r  r  r  r	  r  r$  r  r  r  s   @r   r  r    s     N&O*N;<(8]?%']?02]?)+]?57]? $(]? 79]? .0	]?
 (-]?
 8=]?
 KP]? /4]? &+]? 6;]?~ !F
 
r   r  c                   &   a  ] tR tRt o R tRtV tR# )CheckActualTestsi.  c           	        . ROpV P                  V4      p\        VP                  4       4      p\        P                  P                  \        P                  ! \        P                  P                  \        4      4      R4      p\        \        P                  ! V4      4      pV P                  VV^	,          ^
,          RRP                  VP                  4       4       2R7       R# )-Wdztest*.pyz+Unexpectedly low number of tests found in:
r  )r#   N)r*  -E-bbr   test.regrtest--list-tests)r$  r  
splitlinesr   r   r   globr  r  r  assertGreater)r"   r   r  rough_number_of_tests_foundactual_testsuite_globrough_counted_test_py_filess   &     r   #test_finds_expected_number_of_tests4CheckActualTests.test_finds_expected_number_of_tests/  s     K&&)&*;*;*=&># "T[[9R-S-7!9&)$))4I*J&K# 	66q8"<M"ii(9(9(;<= ? 	 	@r   ry  N)rz  r{  r|  r}  r5  r  r  r  s   @r   r(  r(  .  s     @ @r   r(  c                   R  a a ] tR tRt o^tV 3R ltR tRR ltR tR t	R t
R tR	 tR
 tR t]P                   ! ]P$                  ! 4       R4      ]P                   ! ]P(                  R8H  R4      R 4       4       t]P                   ! ]P(                  R8H  R4      R 4       tRtVtV ;t# )ProgramsTestCaseiF  c                ~  < \         SV `  4        \        V P                  4       Uu. uF  qP	                  4       NK  	  upV n        . ROV n        RRRV P                  ,          .V n        V P                  P                  R4       \        P                  R8X  d   V P                  P                  R4       R# R# u upi )	r*  z-uallz-rwW--testdir=%swin32r  N)r*  r+  r,  )r1   3600z-j4)superr  rangeNTESTr  r  python_argsr  regrtest_argsr  r  platformr  )r"   index	__class__s   & r   r  ProgramsTestCase.setUpO  s     7<DJJ6GH6GU&&(6GH
/%v,t>@!!">?<<7"%%d+ # Is   B:c                    V P                  V4      pV P                  VP                  4       V4       V P                  WP                  R \        V P                  4      R7       R# )T)rt   r  N)r	  r>   isdigitr  r  r  )r"   r  randseeds   && r   check_outputProgramsTestCase.check_output\  sP    ))&1((*H5!!&**,0DJJ 	" 	Ir   c                N    V P                  WVR 7      pV P                  V4       R# )r|   r!  N)r$  rI  )r"   r   r|   r!  r  s   &&&& r   	run_testsProgramsTestCase.run_testsc  s"    B&!r   c                    \         P                  P                  V P                  R 4      p. V P                  OVNV P
                  OV P                  OpV P                  V4       R# )zregrtest.pyNr   r   r   r   r@  rA  r  rM  r"   scriptr   s   &  r   test_script_regrtest%ProgramsTestCase.test_script_regrtestg  sO    dllM:L!!L6LD,>,>LLtr   c                |    . V P                   OR NRNV P                  OV P                  OpV P                  V4       R# )r   testNr@  rA  r  rM  r"   r   s   & r   test_module_test!ProgramsTestCase.test_module_testn  sJ    2!! 24 2 2##2&*jj2tr   c                |    . V P                   OR NRNV P                  OV P                  OpV P                  V4       R# )r   r-  NrW  rX  s   & r   test_module_regrtest%ProgramsTestCase.test_module_regrtestt  J    2!! 24 2 2##2&*jj2tr   c                |    . V P                   OR NRNV P                  OV P                  OpV P                  V4       R# )r   ztest.autotestNrW  rX  s   & r   test_module_autotest%ProgramsTestCase.test_module_autotestz  r^  r   c                    R p. V P                   ORNVNV P                  OV P                  OpV P                  V4       R# )zfrom test import autotestz-cNrW  )r"   r  r   s   &  r   test_module_from_test_autotest/ProgramsTestCase.test_module_from_test_autotest  sO    *2!! 24 2 2##2&*jj2tr   c                    \         P                  P                  V P                  R 4      p. V P                  OVNV P
                  OV P                  OpV P                  V4       R# )zautotest.pyNrP  rQ  s   &  r   test_script_autotest%ProgramsTestCase.test_script_autotest  sO    dllM:L!!L6LD,>,>LLtr   c                b    V P                  VR R7      pV P                  VP                  4       R# )backslashreplace)errorsN)r  rI  r  )r"   r   r  s   &* r   	run_batchProgramsTestCase.run_batch  s2     (:   ; 	$++&r   z test.bat script is not installedr;  zWindows onlyc                v   \         P                  P                  \        R RR4      pRV P                  ,          .p\
        P                  ! 4       R8X  d   VP                  R4       M^\
        P                  ! 4       R8X  d   VP                  R4       M2\
        P                  ! 4       ^ ,          R8X  d   VP                  R	4       \        P                  '       g   VP                  R
4       \        P                  ! R4      '       d   VP                  R4       V P                  ! V.VOV P                  O5!   R# )Toolsbuildbotztest.batr:  ARM64-arm64ARM-arm3264bit-x64z+dPy_GIL_DISABLED--disable-gilN)r   r   r   ROOT_DIRr  rB  machiner  architecturer   r  r  get_config_varrk  r  )r"   rR  	test_argss   &  r   test_tools_buildbot_test)ProgramsTestCase.test_tools_buildbot_test  s    
 hZH#doo56	(X&5(X&""$Q'72V$T"##$566_-v7	7DJJ7r   c                   \         P                  P                  \        R 4      p\         P                  P	                  V4      '       g   V P                  RV R24       R.p\        P                  ! 4       R8X  d   VP                  R4       M^\        P                  ! 4       R8X  d   VP                  R4       M2\        P                  ! 4       ^ ,          R8X  d   VP                  R	4       \        P                  '       d   VP                  R
4       \        P                  ! R4      '       d   VP                  R4       V P                  ! V.VOV P                  OV P                   O5!   R# )zPCbuild\rt.batzFile "z" does not existr`   rp  rq  rr  rs  rt  ru  z-drv  rw  N)r   r   r   rx  isfiler  rB  ry  r  rz  r   r  r  r{  rk  rA  r  )r"   rR  rt_argss   &  r   test_pcbuild_rt ProgramsTestCase.test_pcbuild_rt  s     h(9:ww~~f%%MMF6(*:;<&(NN8$5(NN8$""$Q'72NN6"NN4 ##$566NN?+vJJ$*<*<JtzzJr   )r@  rA  r  )NT)rz  r{  r|  r}  r?  r  rI  rM  rS  rY  r\  r`  rc  rf  rk  r  r  r  r  r  rB  r}  r  r  r  __classcell__)rD  r  s   @@r   r8  r8  F  s      E,I"' 224;=0.A8 B=8  0.AK BK Kr   r8  c                   N  a  ] tR tR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]P$                  RR/R l4       t]P*                  ! ]P,                  R4      V 3R lR l4       tR tR t]P*                  ! ]P,                  R4      R 4       t]P*                  ! ]P,                  R4      R 4       tR tR t]P<                  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' t+R( t,R) t-R* t.R+ t/R, t0R- t1]P<                  R. 4       t2R/ t3R0 t4R1 t5R2 t6R3 t7R4 t8]Pr                  ! ]Pt                  R54      R6 4       t;R7 t<R8 t=V 3R9 lR: lt>R; t?R< t@R= tAR> tBR? tCR@ tD]Pr                  ! ]P                  RA4      RB 4       tFRC tGRD tHRE tIRF tJRGtKV tLRH# )IArgsTestCasei  c                X    R RRV P                   ,          .VOpV P                  ! V3/ VB # )r   rV  r:  )r  r$  )r"   testargsr  cmdargss   &*, r   rM  ArgsTestCase.run_tests  s0    $//!AMHMw-"--r   c                    \         P                  ! R 4      p\        ^^4       Uu. uF  q P                  RV 2VR7      NK  	  ppV P                  ! V!  pV P                  WC^\        V4      ,          R7       R# u upi )a  
            import unittest

            class PassingTests(unittest.TestCase):
                def test_test1(self):
                    pass

                def test_test2(self):
                    pass

                def test_test3(self):
                    pass
        okr  r  N)r  r  r>  r  rM  r  r  )r"   r  ir  r  s   &    r   test_successArgsTestCase.test_success  s{        AFaL1!!Bqc(!6L'!!&()CJ 	" 	8 Ms   A:c                    \         P                  ! R 4      pV P                  R4      pV P                  RVR7      pW#.pV P                  ! V!  pV P	                  WTV.^R7       R# )zQ
            import unittest
            raise unittest.SkipTest("nope")
        r  skipr  )r  r  Nr  r  r  rM  r  )r"   r  test_ok	test_skipr  r  s   &     r   r  ArgsTestCase.test_skip  so        ""4($$V$$7	$'!!&+4+() 	" 	+r   c           	         \         P                  ! R 4      pV P                  R4      pV P                  RVR7      pW#.pV P                  ! VR\        / pV P                  WTV\        ^^4      R7       R# )z
            import unittest

            class FailingTest(unittest.TestCase):
                def test_failing(self):
                    self.fail("bug")
        r  failingr  r  r  r  Nr  r  r  rM  EXITCODE_BAD_TESTr  r   )r"   r  r  test_failingr  r  s   &     r   test_failing_testArgsTestCase.test_failing_test  sx        ""4(''	'='C1BC!!&(1!Q 	" 	9r   c                   / pR
 F3  p\         P                  ! RV,          4      pV P                  W#4      W&   K5  	  \        VP	                  4       4      pV P
                  ! RR.VO5!  pV P                  WT^R7       V P
                  ! R.VO5!  pV P                  WTVR,          ^R7       V P
                  ! VR\        / pV P                  WTV^ R7       R	# )audior   a  
                        from test import support; support.requires(%r)
                        import unittest
                        class PassingTest(unittest.TestCase):
                            def test_pass(self):
                                pass
                    r   allr  z-uaudio)r  r  r  N)r  r   )r  r  r  rE  valuesrM  r  EXITCODE_NO_TESTS_RAN)r"   r  resourcer  
test_namesr  s   &     r   test_resourcesArgsTestCase.test_resources  s    ,H?? $ #$# $D #..x>EO - ELLN+
 e9j9!!&A!> 	7J7!!&27	2B() 	" 	+
 L6KL!!&2<() 	" 	+r   c                   \         P                  ! R 4      pV P                  RV4      pV P                  RV\        R7      pV P                  V4      pV P                  RV4      p\        VP                  ^4      4      pV P                  RRV 2V\        R7      pV P                  V4      pV P                  Wt4       V P                  RV4      p\        VP                  ^4      4      pV P                  W4       V P                  V\        R7      pV P                  V4      pV P                  VP                  4       V4       Rp	\        \        P                  V	R7      p
V P                  RV\        V
R7      pV P                  V4      pV P                  WI4       V P                  VR	4       \        \        P                  R
R7      p
V P                  RV\        V
R7      pV P                  V4      pV P                  VR
4       V P                  VR4       \        \        P                  RR7      p
V P                  RV\        V
R7      pV P                  V4      pV P                  VP                  4       V4       R# )za
            import random
            print("TESTRANDOM: %s" % random.randint(1, 1000))
        randomrp   r  zTESTRANDOM: ([0-9]+)--randseed=rr   )rs   r  r|   zTESTRANDOM: 520XYZzTESTRANDOM: 22r6   N)r  r  r  rM  r  r	  r  r{   r  r7   r>   rG  r  r   r  r  )r"   r  rV  r  rH  r   test_random	randseed2test_random2	timestampr|   s   &          r   r  ArgsTestCase.test_random  s=       $/ d5JK))&1!!"96B%++a.) H:&>)>   @**62	-!!"96B5;;q>*3 /DE))&1((*H5 !	2::;d5J$'   )))&1- 12 2::7d5J$'   )))&15) 01 2::4d5J$'   )))&1((*H5r   c                   \        ^4       Uu. uF  qP                  4       NK  	  pp\        P                  pV P	                  \        P
                  V4       \        VR4      ;_uu_ 4       pRp\        V^4       F@  w  rRW\        V4      V3,          pV'       d   VRV,          ,          p\        WtR7       TpKB  	  RRR4       V P                  RV4      p\        V4      p	V P                  WV	R7       \        VR4      ;_uu_ 4       p\        V^4       F'  w  r\        RV: R	\        V4      : R
V: 2VR7       K)  	  RRR4       V P                  RV4      pV P                  WV	R7       \        VR4      ;_uu_ 4       pV F  p\        WdR7       K  	  RRR4       V P                  RV4      pV P                  WV	R7       \        VR4      ;_uu_ 4       pV F  p\        RV,          VR7       K  	  RRR4       V P                  RV4      pV P                  WV	R7       R# u upi   + '       g   i     ELw; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     Lw; i)r   r   Nz00:00:%02i [%s/%s] %sz -- %s took 0 secr   r   r  [r  z] zLib/test/%s.py)r>  r  r   r   r   r   r   	enumerater  r   rM  r  )
r"   rC  r  r   r   previousr  r  r  r  s
   &         r   r   ArgsTestCase.test_fromfileL  s   16q:!!#:
 ##	(((3 (C  BH(2/ UT:;/(::Dd$  3 ! h7E
!!&u!= (C  B(2eSZ>RH  3 ! h7!!&u!= (C  Bd$  ! h7!!&u!= (C  B&-B7  ! h7!!&u!=[ ; !   !   !  ! s6   H(,AH-8III(-H>	I	I%	(I8	c                    \         pV P                  R VR7      pV P                  V\        R7      pV P	                  W2VR^ R7       R# )sigintr  r  Tr  r  r  N)TEST_INTERRUPTEDr  rM  EXITCODE_INTERRUPTEDr  r"   r  rV  r  s   &   r   test_interruptedArgsTestCase.test_interrupted}  sK    t4/CD!!&.2! 	" 	=r   c                   \        ^4       Uu. uF  qP                  4       NK  	  ppV P                  ! R.VO5!  pV P                  W2\	        V4      R7       RV P
                  : R\	        V4      : R2pV P                  W44       R# u upi )r   rg   r  z10 slowest tests:
(?:- z: .*
){}N)r>  r  rM  r  r  r  r  )r"   rC  r  r  r  s   &    r   ri   ArgsTestCase.test_slowest  sv    16q:!!#:4e4!!&s5z!B ''U5 	& ;s   B	c                X   \         pV P                  R VR7      pR
 Fv  pV P                  VR7      ;_uu_ 4        V'       d   RRV3pMRV3pV P                  ! VR\        / pV P                  WRVR^ R7       RpV P                  WV4       R	R	R	4       Kx  	  R	#   + '       g   i     K  ; i)r  r  T)multiprocessingrg   ru  r  r  z10 slowest tests:
Nr&  )r  r  r+   rM  r  r  r  )r"   r  rV  r  r   r  r  s   &      r   test_slowest_interrupted%ArgsTestCase.test_slowest_interrupted  s    t4,Oo>>"'5D'.DM8LM))&26D01 * 3 /. ?>  ->>>s   ABB)c                    V P                  R 4      pV P                  RV4      pV P                  W!.^R7       RpV P                  W#4       R# )coverager   r  zSlines +cov% +module +\(path\)\n(?: *[0-9]+ *[0-9]{1,2}\.[0-9]% *[^ ]+ +\([^)]+\)+)+N)r  rM  r  r  )r"   rV  r  r  s   &   r   test_coverageArgsTestCase.test_coverage  sK    
+d3!!&&!:I&r   c                t    V P                  R 4      pV P                  RVRR7      pV P                  VR4       R# )r?   r=   key)r  zPress any key to continueN)r  rM  r  )r"   rV  r  s   &  r   rA   ArgsTestCase.test_wait  s5    '$e< ;<r   c           
     f   \         P                  ! R 4      pV P                  RVR7      pV P                  RV\        R7      pV P                  W2.^,          V\        ^^4      RR7       V P                  RRV^ R7      pV P                  W2.^,          \        VRRR	7      \        ^^4      RR
7       R# )aL  
            import builtins
            import unittest

            class ForeverTester(unittest.TestCase):
                def test_run(self):
                    # Store the state in the builtins module, because the test
                    # module is reload at each run
                    if 'RUN' in builtins.__dict__:
                        builtins.__dict__['RUN'] += 1
                        if builtins.__dict__['RUN'] >= 3:
                            self.fail("fail at the 3rd runs")
                    else:
                        builtins.__dict__['RUN'] = 1
        r  r  r  r  T)r  r  r  rS   test_runr   r  )rT   r  r  N)r  r  r  rM  r  r  r   r  r  s   &   r   r  ArgsTestCase.test_forever  s        	5 T<MN!!&&(4(1!Q*. 	" 	0
 YqI!!&&((-d4>6:)< )2!Q*. 	" 	0r   run_workersFc               @   V P                  R VR7      pRpV P                  \        P                  V4       RR.pV'       d   VP	                  R4       VP	                  V4       V P
                  ! VR\        R\        P                  / pV P                  Wt.V^R7       R	pV P                  Wx4       V: R
V: R2p	V P                  W4       \        V4      ;_uu_ 4       p
V
P                  4       pV P                  W4       RRR4       R#   + '       g   i     R# ; i)r   r  r   r   3:3:r   r  r   r  z6beginning 6 repetitions. .*\n123:456\n[.0-9X]{3} 111\nz leaked [1, 1, 1] z, sum=3
N)r  r   r   r   r  rM  r  r  r  r  r  r    r   read)r"   r  whatr  rV  r   r#  r  r  line2r   reflogs   &&&$        r   
check_leakArgsTestCase.check_leak  s    48	(((3v&JJu

4 :)::'1'8'8: 	!!&&Q!GH%594@e$(^^rWWYFMM%( ^^^s    "DD	r   c                    < V ^8  d   QhRS[ /# r  r  r  )r  r  s   "r   r  ArgsTestCase.__annotate__  s     E Et Er   c               Z    \         P                  ! R 4      pV P                  VRVR7       R# )z
            import unittest

            GLOBAL_LIST = []

            class RefLeakTest(unittest.TestCase):
                def test_leak(self):
                    GLOBAL_LIST.append(object())
        
referencesr  Nr  r  r  )r"   r  r  s   &$ r   check_huntrleaksArgsTestCase.check_huntrleaks  s+         	lDr   c                *    V P                  R R7       R# Fr  Nr  r  s   &r   r   ArgsTestCase.test_huntrleaks  s    %0r   c                *    V P                  R R7       R# Tr  Nr  r  s   &r   test_huntrleaks_mpArgsTestCase.test_huntrleaks_mp  s    $/r   c                   \         P                  ! R 4      pV P                  RVR7      pRpV P                  \        P
                  V4       RRRV.pV P                  ! VR\        R\        P                  / pV P                  R	V 2V4       V P                  R	V R
2V4       V P                  RV4       V P                  RV R2V4       R# )ay  
            import unittest

            GLOBAL_LIST = []

            class RefLeakTest(unittest.TestCase):
                def test1(self):
                    pass

                def test2(self):
                    pass

                def test3(self):
                    GLOBAL_LIST.append(object())

                def test4(self):
                    pass
        r   r  r   r   r  rh  r  r   zBisect z: exit code 0zBisection completed inzTests (1):
* z.RefLeakTest.test3
N)r  r  r  r   r   r   rM  r  r  r  r    )r"   r  rV  r   r#  r  s   &     r   test_huntrleaks_bisect#ArgsTestCase.test_huntrleaks_bisect  s        & 48	(((3vz48 :)::'1'8'8: 	v&/v]3V< 	.7*,	r   c                V    \         P                  ! R 4      pV P                  VR4       R# )a  
            import os
            import unittest

            class FDLeakTest(unittest.TestCase):
                def test_leak(self):
                    fd = os.open(__file__, os.O_RDONLY)
                    # bug: never close the file descriptor
        zfile descriptorsNr  )r"   r  s   & r   test_huntrleaks_fd_leak$ArgsTestCase.test_huntrleaks_fd_leak(  s(         	01r   c                    \        ^4       Uu. uF  qP                  4       NK  	  ppV P                  ! R.VO5!  pV P                  VP	                  4       P                  4       V4       R# u upi )r   r.  N)r>  r  rM  r7   rstripr/  )r"   r  r  r  s   &   r   test_list_testsArgsTestCase.test_list_tests6  s[    -21X6X!!#X677335	  7s   A,c                Z   \         P                  ! R 4      pV P                  VR7      pRV,          RV,          .pV P                  RV4      pV P	                  VP                  4       V4       RV,          .pV P                  RRRV4      pV P	                  VP                  4       V4       R# )z
            import unittest

            class Tests(unittest.TestCase):
                def test_method1(self):
                    pass
                def test_method2(self):
                    pass
        r  z%s.Tests.test_method1z%s.Tests.test_method2z--list-casesr   test_method1N)r  r  r  rM  r7   r/  )r"   r  testnameall_methodsr  s   &    r   test_list_casesArgsTestCase.test_list_cases=  s        ###. /9.9;9**,k: /9: $n (* 	**,k:r   c                    R pV P                  RVR7      pV.pV P                  ! R.VO5R\        / pV P                  WCVR^ R7       R# )z,import faulthandler; faulthandler._sigsegv()crashr  r  ru  r  Tr  r  r  N)r  rM  r  r  )r"   r  
crash_testr  r  s   &    r   test_crashedArgsTestCase.test_crashedW  sZ     >%%7%>
JJ8IJ!!&
+/q 	" 	:r   c                    \         P                  ! R \         P                  R7      pVP                  V4       Uu. uF  q3P	                  ^4      NK  	  up# u upi )z^(test[^ ]+).*ok$flags)r  r  r  r  r  )r"   r  r  r   s   &&  r   parse_methodsArgsTestCase.parse_methodsb  s@    

.bllC,1NN6,BC,B5A,BCCCs   Ac                   \         P                  ! R 4      pV P                  VR7      p\        P                  pV P                  \        P                  V4       RRV,          .p\        VR4      ;_uu_ 4       pV F  p\        WeR7       K  	  RRR4       V P                  RRW24      pV P                  V4      pR	R
.pV P                  W4       R#   + '       g   i     LK; i)V  
            import unittest

            class Tests(unittest.TestCase):
                def test_method1(self):
                    pass
                def test_method2(self):
                    pass
                def test_method3(self):
                    pass
                def test_method4(self):
                    pass
        r  r  %s.Tests.test_method3r   r   NrL   r   test_method2test_method4)r  r  r  r   r   r   r   r   r   rM  r  r7   )	r"   r  r  r   subsetr   r  r  methodss	   &        r   test_ignorefileArgsTestCase.test_ignorefilef  s        ###. ##	(((3 #h.	0
 (C  Bd$  ! nhI$$V, .1) ! s   8CC!	c                8   \         P                  ! R 4      p. R
OpV P                  VR7      pV P                  RV4      pV P	                  V4      pV P                  WR4       \        P                  pV P                  \        P                  V4       RRV,          .p\        VR4      ;_uu_ 4       pV F  p	\        WR7       K  	  RRR4       V P                  RR	Wc4      pV P	                  V4      pRR.pV P                  WW4       R#   + '       g   i     LK; i)r  r  test_method3r  rL   r  r   r   Nr   )r  r  r  r  )r  r  r  rM  r  r7   r   r   r   r   r   r   )
r"   r  r  r  r  r  r   r  r   r  s
   &         r   test_matchfileArgsTestCase.test_matchfile  s      7###. h/$$V,. ##	(((3 #h.	0
 (C  Bd$  ! mXH$$V, .1) ! s   0D		D	c                f   \         P                  ! R 4      pV P                  VR7      pV P                  V4      pV P	                  W2.V^R7       V P                  RV\
        R7      pV P	                  W2.VR^R7       V P                  RV4      pV P	                  W2.V\        VRRR	7      ^R
7       R# )z
            import unittest

            class Tests(unittest.TestCase):
                def test_env_changed(self):
                    open("env_changed", "w").close()
        r  )r  r  --fail-env-changedr  Tr  rB  r  rS   Nr  )r  rT   r  )r  r  r  rM  r  EXITCODE_ENV_CHANGEDr  r"   r  r  r  s   &   r   test_env_changedArgsTestCase.test_env_changed  s        ###. )!!&*.6a 	" 	A  4h)=   ?!!&*(37q 	" 	B 	84!!&*.6(-h486:)< )* 	" 	+r   c           
         \         P                  ! R 4      pV P                  VR7      pV P                  RV\        R7      pV P                  W2.\        VRRR7      \        ^^4      R7       R# )	a  
            import unittest

            class Tests(unittest.TestCase):
                def test_succeed(self):
                    return

                def test_fail_always(self):
                    # test that always fails
                    self.fail("bug")
        r  rS   r  test_fail_alwaysF)r  rT   r  N)r  r  r  rM  r  r  r  r   r  s   &   r   test_rerun_failArgsTestCase.test_rerun_fail  sq     
  
 ###.	8>OP!!&*(-h.@6;)= )2!Q	 	" 	9r   c           
        \         P                  P                  R 4      pV P                  \        P
                  V4       V P                  \         P                  P                  V4      4       \        P                  ! RV: R24      pV P                  VR7      pV P                  RV^ R7      pV P                  WC.\        VRRR7      \        ^^4      R	7       \        P
                  ! V4       V P                  RR
V\        R7      pV P                  WC.\        VRRR7      \        ^^4      R	7       \        P
                  ! V4       R# )regrtest_marker_filenamezW
            import os.path
            import unittest

            marker_filename = aD  

            class Tests(unittest.TestCase):
                def test_succeed(self):
                    return

                def test_fail_once(self):
                    if not os.path.exists(marker_filename):
                        open(marker_filename, "w").close()
                        self.fail("bug")
        r  rS   r  test_fail_onceTr  r   z--fail-rerunN)r   r   r   r   r   r   rw   existsr  r  r  rM  r  r  r   EXITCODE_RERUN_FAIL)r"   marker_filenamer  r  r  s   &    r   test_rerun_successArgsTestCase.test_rerun_success  s6   ''//*DE	((/:89 $  /1 
2		   ###. 	8a@!!&*(-h4D6:)< )2!Q	 	" 	9
 	) 	>8)<   >!!&*(-h4D6:)< )2!Q	 	" 	9
 	)r   c                    \         P                  ! R 4      pV P                  VR7      pV P                  RV\        R7      pV P                  W2V.\        VRRR7      ^ R7       R# )	a  
            import unittest

            class ExampleTests(unittest.TestCase):
                @classmethod
                def setUpClass(self):
                    raise RuntimeError('Fail')

                def test_success(self):
                    return
        r  rS   r  ExampleTestsFr  r  rT   r  Nr  r  r  rM  r  r  r  r  s   &   r   #test_rerun_setup_class_hook_failure0ArgsTestCase.test_rerun_setup_class_hook_failure  n     
  
 ###.	8>OP!!&*2(-h4B6;)= )* 	" 	+r   c                    \         P                  ! R 4      pV P                  VR7      pV P                  RV\        R7      pV P                  W2V.\        VRRR7      ^R7       R# )	a  
            import unittest

            class ExampleTests(unittest.TestCase):
                @classmethod
                def tearDownClass(self):
                    raise RuntimeError('Fail')

                def test_success(self):
                    return
        r  rS   r  r,  Fr  r-  Nr.  r  s   &   r   &test_rerun_teardown_class_hook_failure3ArgsTestCase.test_rerun_teardown_class_hook_failure'  r1  r   c                    \         P                  ! R 4      pV P                  VR7      pV P                  RV\        R7      pV P                  W2V.\        VRRR7      ^ R7       R# )z
            import unittest

            def setUpModule():
                raise RuntimeError('Fail')

            class ExampleTests(unittest.TestCase):
                def test_success(self):
                    return
        r  rS   r  NFr  r-  r.  r  s   &   r   $test_rerun_setup_module_hook_failure1ArgsTestCase.test_rerun_setup_module_hook_failure>  sn     	  	 ###.	8>OP!!&*2(-h486;)= )* 	" 	+r   c                    \         P                  ! R 4      pV P                  VR7      pV P                  RV\        R7      pV P                  W2.V.\        VRRR7      ^R7       R# )z
            import unittest

            def tearDownModule():
                raise RuntimeError('Fail')

            class ExampleTests(unittest.TestCase):
                def test_success(self):
                    return
        r  rS   r  NFr  r-  r.  r  s   &   r   'test_rerun_teardown_module_hook_failure4ArgsTestCase.test_rerun_teardown_module_hook_failureT  sp     	  	 ###.	8>OP!!&**2(-h486;)= )* 	" 	+r   c                    \         P                  ! R 4      pV P                  VR7      pV P                  RV\        R7      pV P                  W2V.\        VRRR7      ^R7       R# )	z
            import unittest

            class ExampleTests(unittest.TestCase):
                def setUp(self):
                    raise RuntimeError('Fail')

                def test_success(self):
                    return
        r  rS   r  r  Fr  r-  Nr.  r  s   &   r   test_rerun_setup_hook_failure*ArgsTestCase.test_rerun_setup_hook_failurej  n     	  	 ###.	8>OP!!&*2(-h4B6;)= )* 	" 	+r   c                    \         P                  ! R 4      pV P                  VR7      pV P                  RV\        R7      pV P                  W2V.\        VRRR7      ^R7       R# )	z
            import unittest

            class ExampleTests(unittest.TestCase):
                def tearDown(self):
                    raise RuntimeError('Fail')

                def test_success(self):
                    return
        r  rS   r  r  Fr  r-  Nr.  r  s   &   r    test_rerun_teardown_hook_failure-ArgsTestCase.test_rerun_teardown_hook_failure  r>  r   c           
         \         P                  ! R 4      pV P                  VR7      pV P                  RV\        R7      pV P                  W2\        VRRR7      ^R7       R# )	a  
            import unittest

            class ExampleTests(unittest.IsolatedAsyncioTestCase):
                async def asyncSetUp(self):
                    raise RuntimeError('Fail')

                async def test_success(self):
                    return
        r  rS   r  r  Fr  r   Nr.  r  s   &   r   #test_rerun_async_setup_hook_failure0ArgsTestCase.test_rerun_async_setup_hook_failure  si     	  	 ###.	8>OP!!&(-h4B6;)= )*	 	" 	+r   c                    \         P                  ! R 4      pV P                  VR7      pV P                  RV\        R7      pV P                  W2V.\        VRRR7      ^R7       R# )	a  
            import unittest

            class ExampleTests(unittest.IsolatedAsyncioTestCase):
                async def asyncTearDown(self):
                    raise RuntimeError('Fail')

                async def test_success(self):
                    return
        r  rS   r  r  Fr  r-  Nr.  r  s   &   r   &test_rerun_async_teardown_hook_failure3ArgsTestCase.test_rerun_async_teardown_hook_failure  r>  r   c                    \         P                  ! R 4      pV P                  VR7      pV P                  VRR\        R7      pV P                  W2.V^ RR7       R# 
            import unittest

            class Tests(unittest.TestCase):
                def test_bug(self):
                    pass
        r  r   
nosuchtestr  Tr  r  r  Nr  r  r  rM  r  r  r  s   &   r   test_no_tests_ranArgsTestCase.test_no_tests_ran  sf        ###.$)>   @!!&*/7()D 	" 	:r   c           	         \         P                  ! R 4      pV P                  VR7      pV P                  V4      pV P	                  W2.\        ^^R7      R7       R# )z
            import unittest

            class Tests(unittest.TestCase):
                def test_skipped(self):
                    self.skipTest("because")
        r  )r  r  N)r  r  r  rM  r  r   r  s   &   r   test_no_tests_ran_skip#ArgsTestCase.test_no_tests_ran_skip  sZ        ###.)!!&*(1!Q(? 	" 	Ar   c                    \         P                  ! R 4      pV P                  VR7      pV P                  VR7      pV P                  W#RR\        R7      pV P                  WBV.W#.^ RR7       R# rI  rM  )r"   r  r  	testname2r  s   &    r   ,test_no_tests_ran_multiple_tests_nonexistent9ArgsTestCase.test_no_tests_ran_multiple_tests_nonexistent  s        ###.$$$$/	T<)>   @!!&Y*?08/D()D 	" 	:r   c           
        \         P                  ! R 4      pV P                  VR7      p\         P                  ! R4      pV P                  VR7      pV P                  W$RRRR^ R7      pV P	                  WRV.V.^RR7       R	# )
rJ  r  z
            import unittest

            class Tests(unittest.TestCase):
                def test_other_bug(self):
                    pass
        r   rK  test_other_bugr  TrL  Nr  )r"   r  r  
other_coderT  r  s   &     r   )test_no_test_ran_some_test_exist_some_not6ArgsTestCase.test_no_test_ran_some_test_exist_some_not  s        ###.__ & 
 $$*$5	T< $&6   D!!&Y*?08z()D 	" 	:r   c                    \         P                  ! R 4       \        P                  ! R4      pV P	                  VR7      pV P                  RV\        R7      pV P                  W2.V.R^R7       R# )	_testcapia  
            import _testcapi
            import gc
            import unittest

            @_testcapi.with_tp_del
            class Garbage:
                def __tp_del__(self):
                    pass

            class Tests(unittest.TestCase):
                def test_garbage(self):
                    # create an uncollectable object
                    obj = Garbage()
                    obj.ref_cycle = obj
                    obj = None
        r  r  r  Tr  N)r   import_moduler  r  r  rM  r  r  r  s   &   r   test_uncollectableArgsTestCase.test_uncollectable  sw     	##K0   " ###. 4h)=   ?!!&*/7j37() 	" 	+r   c                *   \         P                  ! R 4      pV P                  VR7      pV P                  RRV\        R7      pV P                  W2.V^ R7       V P                  V\        P                  ! RV,          \        P                  4      4       R# )aa  
            import time
            import unittest
            try:
                import faulthandler
            except ImportError:
                faulthandler = None

            class Tests(unittest.TestCase):
                # test hangs and so should be stopped by the timeout
                def test_sleep(self):
                    # we want to test regrtest multiprocessing timeout,
                    # not faulthandler timeout
                    if faulthandler is not None:
                        faulthandler.cancel_dump_traceback_later()

                    time.sleep(60 * 5)
        r  ru  z--timeout=1.0r  r  z%s timed outN)
r  r  r  rM  r  r  r  r  r  r  r  s   &   r   test_multiprocessing_timeout)ArgsTestCase.test_multiprocessing_timeout'  s       $ ###.):   <!!&*)1 	" 	<NX$=r||L	Nr   c                    \         P                  ! R 4      pV P                  VR7      pV P                  RRV\        R7      pV P                  W2.V.R^R7       V P                  RV4       V P                  RV4       R	# )
a  
            import unittest
            import weakref
            from test.support import captured_stderr

            class MyObject:
                pass

            def weakref_callback(obj):
                raise Exception("weakref callback bug")

            class Tests(unittest.TestCase):
                def test_unraisable_exc(self):
                    obj = MyObject()
                    ref = weakref.ref(obj, weakref_callback)
                    with captured_stderr() as stderr:
                        # call weakref_callback() which logs
                        # an unraisable exception
                        obj = None
                    self.assertEqual(stderr.getvalue(), '')
        r  r  rL   r  Tr  zWarning -- Unraisable exceptionzException: weakref callback bugNr  r  r  rM  r  r  r    r  s   &   r   test_unraisable_exc ArgsTestCase.test_unraisable_excC  s        * ###. 4dH)=   ?!!&*/7j37() 	" 	+ 	7@7@r   c                    \         P                  ! R 4      pV P                  VR7      pV P                  RRV\        R7      pV P                  W2.V.R^R7       V P                  RV4       V P                  RV4       R	# )
a[  
            import threading
            import unittest
            from test.support import captured_stderr

            class MyObject:
                pass

            def func_bug():
                raise Exception("bug in thread")

            class Tests(unittest.TestCase):
                def test_threading_excepthook(self):
                    with captured_stderr() as stderr:
                        thread = threading.Thread(target=func_bug)
                        thread.start()
                        thread.join()
                    self.assertEqual(stderr.getvalue(), '')
        r  r  rL   r  Tr  z$Warning -- Uncaught thread exceptionzException: bug in threadNre  r  s   &   r   test_threading_excepthook&ArgsTestCase.test_threading_excepthookf  s        & ###. 4dH)=   ?!!&*/7j37() 	" 	+ 	<fE0&9r   c                ^   \         P                  ! R 4      pV P                  VR7      pRpR	 Fh  pV P                  VR7      ;_uu_ 4        RWB.pV P                  ! VR\
        / pV P                  Wb.V.R^R7       V P                  Wc4       RRR4       Kj  	  R#   + '       g   i     K  ; i)
a%  
            import sys
            import unittest
            from test import support

            class MyObject:
                pass

            def func_bug():
                raise Exception("bug in thread")

            class Tests(unittest.TestCase):
                def test_print_warning(self):
                    print("msg1: stdout")
                    support.print_warning("msg2: print_warning")
                    # Fail with ENV CHANGED to see print_warning() log
                    support.environment_altered = True
        r  zFtest_print_warning.*msg1: stdout\nWarning -- msg2: print_warning\nok\n)optionr  r  Tr  N)rL   rY   )r  r  r  r+   rM  r  r  r  )r"   r  r  r  rl  r#  r  s   &      r   test_print_warningArgsTestCase.test_print_warning  s        $ ###. #FV,,+V>L7KL))&*7?j;?01 * 3   / -, #,,,s   
ABB,c                    \         P                  P                  \        P                  4      pV P                  V\        P                   R 24       VP                  4       '       d   V P                  R4       R# R# )z not setzModified guardN)r   r  getr	   UNICODE_GUARD_ENVrn  isasciir  )r"   guards   & r   test_unicode_guard_env#ArgsTestCase.test_unicode_guard_env  sW    

u667Uu'>'>&?x$HI==?? MM*+ r   c                   \         P                  P                  V P                  R 4      p\         P                  ! V4       \         P                  P                  V P                  R4      p\        VR4      P                  4        W.pRRRV P                  ,          R.pV P                  V4       V F2  pV P                  \         P                  P                  V4      V4       K4  	  R# )test_python_123test_python_456wbr   rV  z--tempdir=%sz	--cleanupN)
r   r   r   r  mkdirr   closer$  rw   r&  )r"   r  r   r  r  r  s   &     r   test_cleanupArgsTestCase.test_cleanup  s    '',,t0AB
77<<1BCXt""$#!DOO3  	 DRWW^^D148 r   z.checking temp files is not implemented on WASIc           
     @   \         P                  ! R 4      p\        ^4       Uu. uF  q P                  VR7      NK  	  ppV P                  ! . ROVO5R\
        / pV P                  WCVRR\        V4      R7       V F  pV P                  RV R2V4       K  	  R# u upi )	am  
            import os.path
            import tempfile
            import unittest

            class FileTests(unittest.TestCase):
                def test_leak_tmp_file(self):
                    filename = os.path.join(tempfile.gettempdir(), 'mytmpfile')
                    with open(filename, "wb") as fp:
                        fp.write(b'content')
        r  r  T)r  rB  r  r  zWarning -- z& leaked temporary files (1): mytmpfileN)r  rL   ru  )	r  r  r>  r  rM  r  r  r  r    )r"   r  _	testnamesr  r  s   &     r   test_leak_tmp_fileArgsTestCase.test_leak_tmp_file  s      
  
 ;@(C(Q%%4%0(	C ?I ?)=?!!&.737+/(+I	 	" 	8
 "HMMKz 21 2 " " Ds   Bc                   \         P                  R 8X  d   \        P                  ! 4       pMM\         P                  P
                  pVf0   \         P                  P
                  pVf   V P                  R4       \        R \        ^R4       4       4      pRV3,          pRpW4P                  R4      ,          p VP                  V4       V P                  V R24       VP                  VR	4      p\        P                  ! R
V: R24      pV P                  VR7      pV P!                  RRRV4      pV P#                  W.R^R7       V P%                  WRR7       R#   \         d     Li ; i)r;  Nz#cannot get regrtest worker encodingc              3   $   "   T F  qx  K  	  R # 5ir   ry  )r  chs   & r   r  8ArgsTestCase.test_worker_decode_error.<locals>.<genexpr>  s     6oos      s   nonascii:%s
z*Assertion failed: tstate_is_alive(tstate)
z	utf-16-lez can decode non-ASCII bytesri  z
            import sys
            import unittest

            class Tests(unittest.TestCase):
                def test_pass(self):
                    pass

            # bytes which cannot be decoded from UTF-8
            corrupted_output = ze
            sys.stdout.buffer.write(corrupted_output)
            sys.stdout.buffer.flush()
        r  r  rL   r   T)r  r  F)r  )r  rB  localegetencodingr  r  
__stdout__r  bytesr>  encodedecodeUnicodeDecodeErrorr  r  r  rM  r  r  )	r"   r  nonasciicorrupted_outputassertion_failedexpected_liner  r  r  s	   &        r   test_worker_decode_error%ArgsTestCase.test_worker_decode_error  sb   <<7"))+Hzz**H>>22#MM"GH6eCo66+xk9 I33K@@	D##H- MMXJ&ABC(//:LM 	%  !13 4	   ###. 4dE8L!!&*+/() 	" 	+ 	U;5 " 		s   9E E)(E)c                    \         P                  ! R 4      pV P                  VR7      pV P                  RRRV\        R7      pV P                  W2.V.R\        ^^^ 4      R7       R# )	aX  
            import doctest
            import sys
            from test import support

            def my_function():
                """
                Pass:

                >>> 1 + 1
                2

                Failure:

                >>> 2 + 3
                23
                >>> 1 + 1
                11

                Skipped test (ignored):

                >>> id(1.0)  # doctest: +SKIP
                7948648
                """

            def load_tests(loader, tests, pattern):
                tests.addTest(doctest.DocTestSuite())
                return tests
        r  r  rL   r   r  Tr  Nr  r  s   &   r   test_doctestArgsTestCase.test_doctest  st       : ###. 4dE8):   <!!&**2+/(1!Q(: 	" 	<r   c                    < V ^8  d   QhRS[ /# r  r  )r  r  s   "r   r  r  9  s      ;  ;d  ;r   c                j   \         P                  ! R 4      p\        ^^4       Uu. uF  pV P                  RV 2VR7      NK  	  ppRpRRV 2.pV'       d   VP	                  R\        V4       24       VP                  V4       V P                  ! V!  p\        P                  ! V4       \        ^
4       Uu. uF  p\        P                  ! ^ R4      NK  	  p	pRV	 2p
R	p\        P                  ! W\        P                  R
7      pV P                  W.\        V4      ,          4       R# u upi u upi )a   
            import random
            import unittest

            class RandomSeedTest(unittest.TestCase):
                def test_randint(self):
                    numbers = [random.randint(0, 1000) for _ in range(10)]
                    print(f"Random numbers: {numbers}")
        r  r   iJ3rq   r  r   r
  zRandom numbers: z^Random numbers: .*$r  N)r  r  r>  r  r  r  r  rM  r  seedrandintr  findallr  r7   )r"   r  r  r  r  ry   r#  r  r  numbersr   r  matchess   &&           r   _check_random_seedArgsTestCase._check_random_seed9  s         3-)'Q !!QC'8t!D' 	 ) "K=9:JJCJ<()

5%K  5:"I>Iq6>>!T*I>%gY/'**U",,?*s5z"9:)) ?s   D+8 D0c                *    V P                  R R7       R# r  r  r  s   &r   test_random_seedArgsTestCase.test_random_seed[  s    E2r   c                *    V P                  R R7       R# r  r  r  s   &r   test_random_seed_workers%ArgsTestCase.test_random_seed_workers^  s    D1r   c                F   \         P                  ! R 4      p\        ^4       Uu. uF  q P                  VR7      NK  	  pp\        P
                  RR.p\        P                  ! V4      pV P                  ! RVR.VO5!  pV P                  WS\        V4      RR7       R# u upi )	z
            import sys
            import unittest

            class WorkerTests(unittest.TestCase):
                def test_dev_mode(self):
                    self.assertTrue(sys.flags.dev_mode)
        r  rR  rS  rP  z-j0Tr  r  N)r  r  r>  r  r  r   shlexr   rM  r  r  )r"   r  r  r  rT  r  s   &     r   test_python_command ArgsTestCase.test_python_commanda  s        7<Ah?h!!t!,h? nndE2
 ZZ
+

JFF!!&(+E
T 	" 	C @s   Bc                &   \         P                  P                  \         P                  P                  \        4      R R4      pR Uu. uF  pRV 2NK
  	  ppRRRRRRV,          .VOpV P                  V4      pV P                  WS^R	7       R
# u upi )regrtestdataimport_from_testsr  r*  r+  r,  r   rV  r:  r  N)abc)r   r   r   r  r  r$  r  )r"   r   r  r  r   r  s   &     r   test_unload_testsArgsTestCase.test_unload_testsv  s     '',,rwwx8-/BD5DE_T>$(_EtUD&.72JSUS&!!&q!9 Fs   Bc                n   \         P                  ! R 4       \        P                  ! R4      pV P	                  VR7      p\
        P                  RRVRV P                   2V.p\        P                  ! V\        P                  \        P                  RR7      pV P                  VP                  ^ V4       R# )	_testinternalcapia'  
            import sys
            import unittest
            from test import support
            try:
                from _testcapi import config_get
            except ImportError:
                config_get = None

            # WASI/WASM buildbots don't use -E option
            use_environment = (support.is_emscripten or support.is_wasi)

            class WorkerTests(unittest.TestCase):
                @unittest.skipUnless(config_get is None, 'need config_get()')
                def test_config(self):
                    config = config_get()
                    # -u option
                    self.assertEqual(config_get('buffered_stdio'), 0)
                    # -W default option
                    self.assertTrue(config_get('warnoptions'), ['default'])
                    # -bb option
                    self.assertTrue(config_get('bytes_warning'), 2)
                    # -E option
                    self.assertTrue(config_get('use_environment'), use_environment)

                def test_python_opts(self):
                    # -u option
                    self.assertTrue(sys.__stdout__.write_through)
                    self.assertTrue(sys.__stderr__.write_through)

                    # -W default option
                    self.assertTrue(sys.warnoptions, ['default'])

                    # -bb option
                    self.assertEqual(sys.flags.bytes_warning, 2)

                    # -E option
                    self.assertEqual(not sys.flags.ignore_environment,
                                     use_environment)
        r  r   rV  z
--testdir=T)r  r   r  N)r   r^  r  r  r  r  r   r  r  r  r  r  r7   r  )r"   rl  r  r  r#  r  s   &&    r   check_add_python_opts"ArgsTestCase.check_add_python_opts  s     	##$78 '  'P ###. ~~VVDOO,- ~~c%/__%/%6%6#') 	!T2r   c                    R F7  pV P                  VR7      ;_uu_ 4        V P                  V4       RRR4       K9  	  R#   + '       g   i     KN  ; i)rI  r)   N)rI  r[  )r+   r  )r"   r*   s   & r   test_add_python_opts!ArgsTestCase.test_add_python_opts  s=    -C#&&**3/ '& .&&&s   A  Az(raising SIGSEGV on Android is unreliablec                   \         P                  ! R 4       \        P                  ! R4      pV P	                  VR7      p\        \        P                  4      pRp\        P                  ! W44       V P                  RV\        VR7      pV P                  WRV.^ RR7       \        P                  '       g1   \        \        P                   4      ) pV P#                  RV R	2V4       V P%                  VR
RRR7       R# )r  ak  
            import faulthandler
            import unittest
            from test import support

            class CrashTests(unittest.TestCase):
                def test_crash(self):
                    print("just before crash!", flush=True)

                    with support.SuppressCrashReport():
                        faulthandler._sigsegv(True)
        r  zhandle_segv=0r   r  T)r  r  r  z
Exit code z
 (SIGSEGV)zjust before crash!F)r  r  N)r   r^  r  r  r  r  r   r  r   set_sanitizer_env_varrM  r  r  
MS_WINDOWSr{   signalSIGSEGVr    r  )r"   r  r  r|   rl  r  r  s   &      r   test_worker_output_on_failure*ArgsTestCase.test_worker_output_on_failure  s     	##N3    ###. 2:: %%c2x):$'   ) 	!!&*2()D 	" 	: !!!FNN++HMMJxj
;VD 44uMr   c                j   \         P                  ! R 4      pV P                  VR7      pV P                  RV4      pV P	                  W2^R7       V P                  RV4       \        P                  '       d>   V P                  RRRRV4      pV P	                  W2^RR	7       V P                  RV4       R
# R
# )z
            import unittest
            from test import support

            class VerboseTests(unittest.TestCase):
                def test_pass(self):
                    print("SPAM SPAM SPAM")
        r  rZ   r  zSPAM SPAM SPAMr   z3:3r   Tr  N)r  r  r  rM  r  assertNotInr   r  r  s   &   r   r\   ArgsTestCase.test_verbose3  s        ###. h7!!&!!<)62 ^^D%hOF%%fa$%O-v6	 r   c           
     2   \         P                  ! R 4      pV P                  VR7      p\        P                  pV P                  \        P                  V4       V P                  VRV\        R7      pV P                  WBV\        ^^^ 4      R7       \        VRR7      ;_uu_ 4       pVP                  4       pRRR4       \        P                  ! X4      pV P                  \!        VP#                  R4      4      ^4       V P                  \!        VP#                  R	4      4      ^ 4       V P                  \!        VP#                  R
4      4      ^4       V^ ,          ^ ,          pV P                  VP#                  R4      R4       V P                  VP#                  R4      R4       V P%                  \'        VP#                  R4      4      ^ 4       VP)                  R4       F  p	V P                  V	P*                  R4       K!  	  R#   + '       g   i     ELW; i)z
            import unittest

            class VerboseTests(unittest.TestCase):
                def test_failed(self):
                    print("abc \x1b def")
                    self.fail()
        r  z--junit-xmlr  r  utf8r  Nr  rj  r  statusr  result	completedtimez
system-outzabc \x1b def)r  r  r  r   r   r   r   rM  r  r  r   r   r  r   
fromstringr7   r{   rp  r1  floatiterr  )
r"   r  r  r   r  r   content	testsuitetestcaser-   s
   &         r   test_xmlArgsTestCase.test_xml	  s       ###. ##	(((3-):   <!!&)1(1!Q(: 	" 	<
 (V,,ggiG -  **73	Y]]734a8Y]]845q9Y]]:67;Q<?h/7h/=5f!56:==.CSXX7 / -,,s   &HH	c                  a a \         P                  ! R 4      pS P                  VR7      o\        \        P
                  4      pRVR&   V V3R lpS P                  RSVRR7      pV! V4       S P                  RRSVRR7      pV! V4       R	# )
a  
            import unittest

            class NonASCIITests(unittest.TestCase):
                def test_docstring(self):
                    '''docstring:\u20ac'''

                def test_subtest(self):
                    with self.subTest(param='subtest:\u20ac'):
                        pass

                def test_skip(self):
                    self.skipTest('skipped:\u20ac')
        r  asciiPYTHONIOENCODINGc           	         < SP                  V S\        ^^ ^4      R7       SP                  RV 4       SP                  RV 4       R# )r   r  zdocstring:\u20aczskipped:\u20acN)r  r   r    )r  r"   r  s   &r   check)ArgsTestCase.test_nonascii.<locals>.check>	  s?    %%fhi1a>P%QMM-v6MM+V4r   rL   FrL  r   N)r  r  r  r  r   r  rM  )r"   r  r|   r  r  r  s   f    @r   test_nonasciiArgsTestCase.test_nonascii*	  s        ###.2::")	5 hC%Hf tX3Ofr   c                D   V P                  R R4      pVP                  4       P                  4       pV P                  R RRR4      pVP                  4       P                  4       pV P                  RV4       V P	                  \        V4      \        V4      ^,
          4       R# )z--pgor.  r   test_reN)rM  stripsplitr  r7   r  )r"   r  	pgo_testsr  s   &   r   test_pgo_excludeArgsTestCase.test_pgo_excludeK	  s}    8LLN((*	 yI$$&E*US^a%78r   ry  N)Mrz  r{  r|  r}  rM  r  r  r  r  r  r   r  ri   r  r  rA   r  r   requires_jit_disabledr  r  r  r  r  r   r  r  r  r  r  cpython_onlyr  r  r  r  r  r!  r)  r/  r3  r6  r9  r<  r@  rC  rF  rN  rQ  rU  rZ  r_  rb  rf  ri  rm  rt  r|  skipIfis_wasir  r  r  r  r  r  r  r  r  r  
is_androidr  r\   r  r  r  r  r  r  s   @r   r  r    sY    .8(+9"+>36j/>b='/&'= 0D "")E ) #)0 ))+?@E AE10 ))+?@& A&P ))+?@2 A2 ;4 : :D *D'*R+<9,)*V+.+.+,+,+,+,+*+,: A:":0 + +<N8!AF:B'0R,9 __W__EG"G"4-<^%<N ;  ;D32C*:&93v0 __W''?A NA ND7.#8JB	9 	9r   r  c                   >   a  ] tR tRt o R tR tR tR tR tRt	V t
R# )		TestUtilsiW	  c                   V P                  \        P                  ! ^ 4      R4       V P                  \        P                  ! R4      R4       V P                  \        P                  ! R4      R4       V P                  \        P                  ! R4      R4       V P                  \        P                  ! ^4      R4       V P                  \        P                  ! ^x4      R	4       V P                  \        P                  ! ^y4      R
4       V P                  \        P                  ! R4      R4       V P                  \        P                  ! R4      R4       V P                  \        P                  ! R4      R4       R# )r   z0 msg&.>z1 msg{Gz?z10 msg      ?z1.5 secz1.0 secz2 minz2 min 1 secz3 hourz3 hour 2 minz3 hour 1 secNi0*  i*  i1*  )r7   r
   format_durationr  s   &r   test_format_durationTestUtils.test_format_durationX	  s/   ..q1	!..t4	!..u5 	"..s3"	$..q1"	$..v6 	"..z:&	(..x8!	#../EF'	)..|<'	)r   c                   \         pV P                  V! R 4      R4       V P                  V! RRR7      R4       V P                  V! RRR7      R4       V P                  V! RRR7      4       V P                  V! R	RR7      4       R
# )z0test_access (test.test_os.FileTests.test_access)test_accessz(setUpClass (test.test_os.ChownFileTests)T)is_errorChownFileTestsz6test_success (test.test_bug.ExampleTests.test_success)r  zsetUpModule (test.test_x)z!tearDownModule (test.test_module)N)r   r7   r  )r"   	normalizes   & r   test_normalize_test_name"TestUtils.test_normalize_test_namen	  s    '	#UV&	(#MX\])	+#[fjk'	))$?$OP)$GRVWXr   c                   \         P                  p\         P                  pV P                  V! R	4      R4       V P                  V! R
4      R4       V P                  V! V4      R4       T P                  T! \        ;QJ d    . R V 4       F  NK  	  5M! R V 4       4      4      R4       V P                  V! . VORN54      R4       R# )r   zresources (1): networkz$resources (3): audio,decimal,networkzresources: allc              3   8   "   T F  pVR 8w  g   K  Vx  K  	  R# 5i)rJ  Nry  )r  r  s   & r   r  2TestUtils.test_format_resources.<locals>.<genexpr>	  s      #5MD&*em $(4Ms   	
zresources: all,-cpur   zresources: all,tzdataN)r   )r  decimalr   )r
   format_resourcesr   r7   tuple)r"   r  r   s   &  r   test_format_resourcesTestUtils.test_format_resourcesy	  s     11++\*$	& 	<=2	4 	]+	 	UU #5M #5UU #5M #5 5 6!	# 	7}7h78#	%r   c                    ! R  R4      p\        4       pV P                  \        V4       V! R4      pV! R4      pV! R4      p\        P                  ! \        RR	4      ;_uu_ 4        \        . 4       V P                  \        V4      4       V P                  \        V4      4       \        R4       V P                  \        V4      4       V P                  \        V4      4       \        VP                  4       R3.4       V P                  \        V4      4       V P                  \        V4      4       \        R
.4       V P                  \        V4      4       V P                  \        V4      4       V P                  \        V4      4       \        R.4       V P                  \        V4      4       V P                  \        V4      4       \        R.4       V P                  \        V4      4       \        R.4       V P                  \        V4      4       \        R.4       V P                  \        V4      4       V P                  \        V4      4       V P                  \        V4      4       \        VP                  4       R3VP                  4       R3.4       V P                  \        V4      4       V P                  \        V4      4       V P                  \        V4      4       \        RR.4       V P                  \        V4      4       V P                  \        V4      4       RRR4       \        P                  ! \        RR	4      ;_uu_ 4        \        VP                  4       R3.4       V P                  \        V4      4       V P                  \        V4      4       \        R.4       V P                  \        V4      4       V P                  \        V4      4       V P                  \        V4      4       \        R.4       V P                  \        V4      4       V P                  \        V4      4       \        R.4       V P                  \        V4      4       \        R.4       V P                  \        V4      4       \        R.4       V P                  \        V4      4       V P                  \        V4      4       V P                  \        V4      4       \        VP                  4       R3VP                  4       R3.4       V P                  \        V4      4       V P                  \        V4      4       V P                  \        V4      4       \        RR.4       V P                  \        V4      4       V P                  \        V4      4       RRR4       \        P                  ! \        RR	4      ;_uu_ 4        \        RR.4       V P                  \        V4      4       V P                  \        V4      4       V P                  \        V4      4       \        RR.4       V P                  \        V4      4       V P                  \        V4      4       V P                  \        V4      4       RRR4       R#   + '       g   i     ELo; i  + '       g   i     EL
; i  + '       g   i     R# ; i)c                   ,   a  ] tR tRt o R tR tRtV tR# )'TestUtils.test_match_test.<locals>.Testi	  c                    Wn         R # r   test_id)r"   r  s   &&r   __init__0TestUtils.test_match_test.<locals>.Test.__init__	  s    &r   c                    V P                   # r   r  r  s   &r   id*TestUtils.test_match_test.<locals>.Test.id	  s    ||#r   r  N)rz  r{  r|  r}  r  r  r  r  r  s   @r   Testr  	  s     '$ $r   r  z"test.test_os.FileTests.test_accessz'test.test_os.Win32ErrorTests.test_chdirz#test.test_shutil.TestCopy.test_copy_test_matchersNTFry  )test_osT)test_*T)	filetestsT)	FileTestsT)*test_os.*.test_*T)r  T)	DONTMATCHT)r
  F)r  F)r  F)r  F)r  F)r  F)r  F)*test_osF)r  T)	r   r   r   r   	swap_attrr>   r   r  rw   )r"   r  patternsr  
test_chdir	test_copys   &     r   test_match_testTestUtils.test_match_test	  s0   	$ 	$ #$2?@CD
>?	 w(8"==BOOJ{34OOJz23 D!OOJ{34OOJz23 knn.567OOJ{34Z
34 ./0OOJ{34OOJz23Z	23 -./OOJ{34OOJz23 012Z45012OOJ{34 89:OOJ{34OOJz23Z	23 knn.5
7NOPOOJ{34OOJz23Z	2324GHIOOJ{34Z
34_ >d w(8"==knn.678Z45OOJz23 /01Z45Z
34OOJy12 ./0Z45Z
34 123OOJ{34123Z45 9:;Z45Z
34OOJy12 knn.6%8PQRZ45Z
34OOJy1235IJKZ45OOJz23K >P w(8"==02GHIOOJ{34Z
34OOJy12/1GHIZ45OOJz23Z	23 >=u >==d >==P >==s'   'KZIZ,B7[ Z)	,Z=	 [	c                F   \         P                  pV P                  V! R 4      R4       V P                  V! R4      R4       V P                  V! R4      R4       V P                  V! R4      R4       V P                  V! R4      R4       V P                  V! R	4      R	4       R
# )z
abc  defzabc \x1b\x1f defznul: , bell:znul:\x00, bell:\x07u   surrogate:zsurrogate:\udc80u   illegal ￾ and ￿zillegal \ufffe and \uffffza
	bu   valid téxt €N)r
   sanitize_xmlr7   )r"   r  s   & r   test_sanitize_xmlTestUtils.test_sanitize_xml
  s    )) 	&89,	.&;</	1&89,	.&AB5	7 	h/!	#&<=/	1r   ry  N)rz  r{  r|  r}  r  r  r  r  r  r  r  r  s   @r   r  r  W	  s&     ),	Y%(t4l1 1r   r  )TestResultsc                   &   a  ] tR tRt o R tRtV tR# )TestColorizedi
  c                @   \         P                  P                  p\         P                  P                  p\         P                  P                  p\         P                  P
                  p\        4       pR R.Vn        \        4       pRR.Vn        \        4       p. Vn        \        4       pRVn	        \        4       p	RV	n	        RV	n
        WQ RV 23Wb RV 23Wt RV 23W RV 23V	V RV R	V R
V 233 F~  w  rV P                  WR7      ;_uu_ 4        \        P                  P                  RRR7      ;_uu_ 4        V
P                  RR7      pRRR4       V P!                  XV4       RRR4       K  	  R#   + '       g   i     L0; i  + '       g   i     K  ; i)good1good2bad1bad2Tr  r  r  r  r  z
WORKER BUG)resultsr   z_colorize.can_colorize)return_valueF)rB  N)	_colorize
ANSIColorsGREENBOLD_REDRESETYELLOWr  r  badr  
worker_bugr+   r  mockpatch	get_stater7   )r"   greenredresetyellowgood_resultsbad_results
no_resultsinterrupted_resultsinterrupted_worker_bugr#  r   r  s   &            r   test_test_result_get_state(TestColorized.test_test_result_get_state
  s   $$**""++$$**%%,,"}$g.!m!6* ]

)m*.'!,-1*,0) WGE734E018<w78 HKw"?@&(+eWBse:eWE	"
G gAA]]((,4 )   %...FF   2 BA	"
  BAAs$   *F>E9F9F	FFry  N)rz  r{  r|  r}  r9  r  r  r  s   @r   r  r  
  s     %3 %3r   r  __main__)passedr  r  r  zenv changedz	timed outzran no testszworker non-zero exit code)Ir%  r  dataclassesr0  r  r  os.pathr   rB  r  r  r  r  r  r  r  r  r  r  unittest.mock	xml.etreer   rV  r   test.supportr   r   test.libregrtestr   r   r	   r
   test.libregrtest.filterr   r   r   test.libregrtest.resultr   test.libregrtest.utilsr   has_subprocess_supportSkipTestr   r   r  r  rx  r   normpathr  r  r  r  r  r'  r  r  r  TestCaser   	dataclassr  r  r(  force_not_colorized_test_classr8  r  r  test.libregrtest.resultsr  r  rz  setup_processry  r   r   <module>rN     s       	     	    
      !  & " $ ! " " P P - 6%%%


=
>>77<<14>77??277++H56E
	 chh|,-Q/     ?? $ 	 K1)) K1\ T"  #M8$$ M`@| @0 	''qK| qK (qKh 	''X9< X9 (X9v,}1!! }1@ 1&3H%% &3R z	MMO r   