+
    Bi                     &   ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIt^ RIH	t	 ^ RI
HtHtHt R tR t ! R R]4      t]R	8w  d
   ]R
,           MR R2tR tRR lt ! R R4      t ! R R4      t ! R R4      t ! R R4      t ! R R]P4                  4      t]P8                   ! R R]P4                  4      4       t]P8                   ! R R]P4                  4      4       t ! R R]P4                  4      t]R	8X  d   ]P@                  ! 4        R# R# )    N)support)_Outcome)BufferedWriterLoggingResult#ResultWithNoStartTestRunStopTestRunc                  ,    \         P                  ! 4       # N)unittest
TestResult)_s   *5/usr/lib/python3.14/test/test_unittest/test_runner.pyresultFactoryr      s          c                  `    \         P                  ! \        \        P                  ! 4       R 7      # ))resultclassstream)r
   TextTestRunnerr   ioStringIO r   r   	getRunnerr      s     ""}*,++-9 9r   c                       ] tR t^tRtR# )CustomErrorr   N__name__
__module____qualname____firstlineno____static_attributes__r   r   r   r   r          r   r   __main__. c                     \         P                  ! 4       pV  F3  p\         P                  P                  V4      pVP	                  V4       K5  	  \        4       p\         P                  ! 4       pVP                  V4       VP                  \         P                  ! 4       4       VP                  \         P                  ! 4       4       VP                  V4      # r	   )r
   	TestSuitedefaultTestLoaderloadTestsFromTestCaseaddTestsr   addTestrun)casessuitecasetestsrunner	realSuites   *     r   runTestsr1   "   s     E**@@Fu  [F ""$Ie	MM($$&'h((*+::i  r   c                 p    V'       g   V P                  R 4       R# V P                  R4       \        R4      h)cleanup_goodcleanup_exc
CleanUpExcNappendr   )orderingblowUps   &&r   cleanupr:   3   s(    '&,''r   c                   6   a  ] tR t^;t o RR ltR tR tRtV tR# )TestCMNc                    Wn         W n        R # r	   )r8   enter_result)selfr8   r>   s   &&&r   __init__TestCM.__init__<   s     (r   c                P    V P                   P                  R 4       V P                  # )enter)r8   r7   r>   r?   s   &r   	__enter__TestCM.__enter__@   s     W%   r   c                <    V P                   P                  R 4       R# )exitN)r8   r7   r?   exc_infos   &*r   __exit__TestCM.__exit__D   s    V$r   )r>   r8   r	   )	r   r   r   r   r@   rE   rK   r   __classdictcell____classdict__s   @r   r<   r<   ;   s     )!% %r   r<   c                       ] tR t^HtRtR# )LacksEnterAndExitr   Nr   r   r   r   rQ   rQ   H   r    r   rQ   c                   &   a  ] tR t^Jt o R tRtV tR# )
LacksEnterc                    R # r	   r   rI   s   &*r   rK   LacksEnter.__exit__K       r   r   N)r   r   r   r   rK   r   rM   rN   s   @r   rS   rS   J         r   rS   c                   &   a  ] tR t^Mt o R tRtV tR# )	LacksExitc                    R # r	   r   rD   s   &r   rE   LacksExit.__enter__N   rV   r   r   N)r   r   r   r   rE   r   rM   rN   s   @r   rY   rY   M   rW   r   rY   c                   b   a  ] tR t^Rt o R t]P                  R 4       tR tR t	R t
R tRtV tR# )	TestCleanUpc                  a  ! R  R\         P                  4      pV! R4      pV P                  VP                  . 4       . oV3R lpV3R lpVP	                  V^^^RRR7       VP	                  V4       V P                  VP                  VR	\        RRR7      3VR
/ 3.4       V P                  VP                  4       4       V P                  S^R
/ 3^R	\        RRR7      3.4       R# )c                   &   a  ] tR t^Tt o R tRtV tR# )-TestCleanUp.testCleanUp.<locals>.TestableTestc                    R # r	   r   rD   s   &r   testNothing9TestCleanUp.testCleanUp.<locals>.TestableTest.testNothingU       r   r   Nr   r   r   r   rb   r   rM   rN   s   @r   TestableTestr`   T         r   rf   rb   c                  .   < SP                  ^W34       R#    Nr7   argskwargscleanupss   *,r   cleanup1)TestCleanUp.testCleanUp.<locals>.cleanup1]       OOQ-.r   c                  .   < SP                  ^W34       R# )   Nrk   rl   s   *,r   cleanup2)TestCleanUp.testCleanUp.<locals>.cleanup2`   rr   r   hellogoodbyefourfiveNrj   rt      r   )r
   TestCaseassertEqual	_cleanups
addCleanupdict
assertTrue
doCleanups)r?   rf   testrp   ru   ro   s   &    @r   testCleanUpTestCleanUp.testCleanUpS   s    	8,, 	 M*,	/	/ 	!QiH!#Y'	0RS#R,.	/ 	)*QBK!Y'Xa@b1c#der   c                  a
a  ! R  R\         P                  4      pV! R4      p\         P                  ! 4       p\        VR7      ;qBn        \        R4      o
\        R4      oV
3R lpV3R lpVP                  V4       VP                  V4       V P                  VP                  4       4       V P                  VP                  4       VP                  w  w  rxw  ryV P                  RV	4       V P                  R	V	4       V P                  \         R
2V	4       V P                  RV4       V P                  RV4       V P                  \         R2V4       R# )c                   &   a  ] tR t^ot o R tRtV tR# )7TestCleanUp.testCleanUpWithErrors.<locals>.TestableTestc                    R # r	   r   rD   s   &r   rb   CTestCleanUp.testCleanUpWithErrors.<locals>.TestableTest.testNothingp   rd   r   r   Nre   rN   s   @r   rf   r   o   rg   r   rf   rb   resultfoobarc                     < S hr	   r   r5   s   r   rp   3TestCleanUp.testCleanUpWithErrors.<locals>.cleanup1y   s	    r   c                     < S hr	   r   )exc2s   r   ru   3TestCleanUp.testCleanUpWithErrors.<locals>.cleanup2|   s    Jr   zin cleanup1zraise CleanUpExcz: foozin cleanup2z
raise exc2z: barN)r
   r~   r   r   _outcomer   r   assertFalser   successerrorsassertInCustomErrorRepr)r?   rf   r   r   outcomerp   ru   r   msg2msg1r5   r   s   &         @@r   testCleanUpWithErrors!TestCleanUp.testCleanUpWithErrorsm   s   	8,, 	 M*$$&"*&"99- '
5!		 	!!*+)%}}	9AmT*($/)/6mT*lD))/6r   c                  a aaaaa	 R o. o ! VVVVV	3R lR\         P                  4      pV! R4      o	V3R lpV3R loV3R loS	P                  V4       VV V	3R lp\         P                  ! 4       pW4n        S	P                  V4       S P                  S. R
O4       Ro. oV! R4      o	S	P                  V4       S	P                  V4       S P                  S. RO4       R	# )Fc                   P   <a  ] tR t^t o VVVV3R ltVVV3R ltV3R ltRtV tR# )2TestCleanUp.testCleanupInRun.<locals>.TestableTestc                r   < SP                  R 4       SP                  S4       S'       d   \        R4      hR# )setUpr   N)r7   r   r   )r?   r9   ru   r8   r   s   &r   r   8TestCleanUp.testCleanupInRun.<locals>.TestableTest.setUp   s.    ()%e,, r   c                L   < SP                  R 4       SP                  S4       R# r   Nr7   r   )r?   cleanup3r8   r   s   &r   rb   >TestCleanUp.testCleanupInRun.<locals>.TestableTest.testNothing       ')r   c                *   < SP                  R 4       R# tearDownNrk   r?   r8   s   &r   r   ;TestCleanUp.testCleanupInRun.<locals>.TestableTest.tearDown       
+r   r   N	r   r   r   r   r   rb   r   r   rM   )rO   r9   ru   r   r8   r   s   @r   rf   r      s     - -*, ,r   rf   rb   c                  *   < S P                  R 4       R# rp   Nrk   r8   s   r   rp   .TestCleanUp.testCleanupInRun.<locals>.cleanup1       OOJ'r   c                  *   < S P                  R 4       R# ru   Nrk   r   s   r   ru   .TestCleanUp.testCleanupInRun.<locals>.cleanup2   r   r   c                  *   < S P                  R 4       R# r   Nrk   r   s   r   r   .TestCleanUp.testCleanupInRun.<locals>.cleanup3   r   r   c                 N   < SP                  V S4       SP                  R 4       R# )r   N)r   r7   )	some_testr8   r?   r   s   &r   r   -TestCleanUp.testCleanupInRun.<locals>.success   s    Y-OOI&r   TN)r   r   r   r   ru   rp   r   )r   ru   rp   )r
   r~   r   r   
addSuccessr*   r   )
r?   rf   rp   r   r   r9   ru   r   r8   r   s
   f    @@@@@r   testCleanupInRunTestCleanUp.testCleanupInRun   s    	, 	,8,, 	, M*	(	(	(!	' $$&# $G 	H M*!#DEr   c                   aaaaaa . o ! VVVVV3R  lR\         P                  4      pV! R4      oVVV3R loV3R loV3R loV3R loSP                  4        V P                  S. RO4       R# )	c                   N   <a  ] tR t^t o VV3R ltVV3R ltVVV3R ltRtV tR# )CTestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.TestableTestc                L   < SP                  R 4       V P                  S4       R# r   Nr   )r?   rp   r8   s   &r   r   ITestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.TestableTest.setUp       ()r   c                L   < SP                  R 4       V P                  S4       R# r   r   r?   r   r8   s   &r   rb   OTestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.TestableTest.testNothing   r   r   c                L   < SP                  R 4       SP                  S4       R# r   r   )r?   cleanup4r8   r   s   &r   r   LTestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.TestableTest.tearDown   s    
+)r   r   Nr   )rO   rp   r   r   r8   r   s   @r   rf   r      s     *** *r   rf   rb   c                  L   < SP                  R 4       SP                  S 4       R# r   r   )ru   r8   r   s   r   rp   ?TestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.cleanup1   s    OOJ'OOH%r   c                  *   < S P                  R 4       R# r   rk   r   s   r   ru   ?TestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.cleanup2   r   r   c                  *   < S P                  R 4       R# r   rk   r   s   r   r   ?TestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.cleanup3   r   r   c                  *   < S P                  R 4       R# )r   Nrk   r   s   r   r   ?TestCleanUp.testTestCaseDebugExecutesCleanups.<locals>.cleanup4   r   r   N)r   r   r   r   r   rp   ru   )r
   r~   debugr   )r?   rf   rp   ru   r   r   r8   r   s   & @@@@@@r   !testTestCaseDebugExecutesCleanups-TestCleanUp.testTestCaseDebugExecutesCleanups   sa    	* 	*8,, 	* M*	&	(	(	( 	

 $H 	Ir   c                |    ! R  R\         P                  4      pV! R4      p. pVP                  VP                  R4       \	        V^*4      pV P                  VP                  V4      ^*4       VP                  VP                  R4       V P                  VP                  4       4       V P                  V. RO4       R# )c                   &   a  ] tR t^t o R tRtV tR# )3TestCleanUp.test_enterContext.<locals>.TestableTestc                    R # r	   r   rD   s   &r   rb   ?TestCleanUp.test_enterContext.<locals>.TestableTest.testNothing   rd   r   r   Nre   rN   s   @r   rf   r      rg   r   rf   rb   rp   ru   NrC   ru   rH   rp   )	r
   r~   r   r7   r<   r   enterContextr   r   )r?   rf   r   ro   cms   &    r   test_enterContextTestCleanUp.test_enterContext   s    	8,, 	 M*4Hb!**2.34)*#LMr   c                r    ! R  R\         P                  4      pV! R4      pV P                  \        R4      ;_uu_ 4        VP	                  \        4       4       RRR4       V P                  \        R4      ;_uu_ 4        VP	                  \        4       4       RRR4       V P                  \        R4      ;_uu_ 4        VP	                  \        4       4       RRR4       V P                  VP                  . 4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     LT; i)c                   &   a  ] tR t^t o R tRtV tR# )>TestCleanUp.test_enterContext_arg_errors.<locals>.TestableTestc                    R # r	   r   rD   s   &r   rb   JTestCleanUp.test_enterContext_arg_errors.<locals>.TestableTest.testNothing   rd   r   r   Nre   rN   s   @r   rf   r      rg   r   rf   rb   the context managerN)
r
   r~   assertRaisesRegex	TypeErrorr   rQ   rS   rY   r   r   )r?   rf   r   s   &  r   test_enterContext_arg_errors(TestCleanUp.test_enterContext_arg_errors   s    	8,, 	 M*##I/DEE/12 F##I/DEEjl+ F##I/DEEik* F 	, FEEEEEs$    D  D D& D	D#	&D6	r   N)r   r   r   r   r   r   force_not_colorizedr   r   r   r   r   r   rM   rN   s   @r   r]   r]   R   sC     f4   7 !7>,F\IBN - -r   r]   c                   t   a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tRtV tR# )TestClassCleanupc                  a  ! R  R\         P                  4      pV! R4      pV P                  VP                  . 4       . oV3R lpV3R lpVP	                  V^^^RRR7       VP	                  V4       V P                  VP                  VR	\        RRR7      3VR
/ 3.4       VP                  4        V P                  S^R
/ 3^R	\        RRR7      3.4       R# )c                   &   a  ] tR tRt o R tRtV tR# );TestClassCleanup.test_addClassCleanUp.<locals>.TestableTest   c                    R # r	   r   rD   s   &r   rb   GTestClassCleanup.test_addClassCleanUp.<locals>.TestableTest.testNothing  rd   r   r   Nre   rN   s   @r   rf   r      rg   r   rf   rb   c                  .   < SP                  ^W34       R# r}   Nrk   rm   rn   class_cleanupss   *,r   class_cleanup1=TestClassCleanup.test_addClassCleanUp.<locals>.class_cleanup1      !!1d"34r   c                  .   < SP                  ^W34       R#    Nrk   r   s   *,r   class_cleanup2=TestClassCleanup.test_addClassCleanUp.<locals>.class_cleanup2
  r  r   rw   rx   ry   Nr|   r   )r
   r~   r   _class_cleanupsaddClassCleanupr   doClassCleanups)r?   rf   r   r   r  r   s   &    @r   test_addClassCleanUp%TestClassCleanup.test_addClassCleanUp   s    	8,, 	 M*--r2	5	5 	$$^Q1*1	 	% 	C$$^4--)9W9=?)2r24	5
 	$$&1b"+9*.G)*L8N *O 	Pr   c                   aa . oR o ! VV3R lR\         P                  4      p\        V4       V P                  SRR.4       . oRo\        V4       V P                  S. RO4       R# )Tc                   \   <a  ] tR tRt o ]VV3R l4       tV3R lt]V3R l4       tRtV t	R# )=TestClassCleanup.test_run_class_cleanUp.<locals>.TestableTesti  c                z   < SP                  R 4       V P                  \        S4       S'       d   \        4       hR# 
setUpClassNr7   r  r:   r   clsr9   r8   s   &r   r  HTestClassCleanup.test_run_class_cleanUp.<locals>.TestableTest.setUpClass  /    -##GX6%-' r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   ITestClassCleanup.test_run_class_cleanUp.<locals>.TestableTest.testNothing%      'r   c                *   < SP                  R 4       R# tearDownClassNrk   r  r8   s   &r   r  KTestClassCleanup.test_run_class_cleanUp.<locals>.TestableTest.tearDownClass'      0r   r   N
r   r   r   r   classmethodr  rb   r  r   rM   rO   r9   r8   s   @r   rf   r    s.     ( (
(1 1r   rf   r  r3   FNr  r   r  r3   r
   r~   r1   r   r?   rf   r9   r8   s   & @@r   test_run_class_cleanUp'TestClassCleanup.test_run_class_cleanUp  si    	1 	18,, 	1 	L.#ABP	Rr   c                   aa . oR o ! VV3R lR\         P                  4      p\        V4       V P                  SRR.4       . oRo\        V4       V P                  S. RO4       R# )Tc                   `   <a  ] tR tRt o ]VV3R l4       tV3R lt]]R 4       4       tRt	V t
R# )STestClassCleanup.test_run_class_cleanUp_without_tearDownClass.<locals>.TestableTesti8  c                z   < SP                  R 4       V P                  \        S4       S'       d   \        4       hR# r  r  r  s   &r   r  ^TestClassCleanup.test_run_class_cleanUp_without_tearDownClass.<locals>.TestableTest.setUpClass9  r  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   _TestClassCleanup.test_run_class_cleanUp_without_tearDownClass.<locals>.TestableTest.testNothing?  r  r   c                    \         hr	   )AttributeError)r  s   &r   r  aTestClassCleanup.test_run_class_cleanUp_without_tearDownClass.<locals>.TestableTest.tearDownClassA  s
     %$r   r   N)r   r   r   r   r!  r  rb   propertyr  r   rM   r"  s   @r   rf   r*  8  s6     ( (
(%  %r   rf   r  r3   FN)r  r   r3   r$  r%  s   & @@r   ,test_run_class_cleanUp_without_tearDownClass=TestClassCleanup.test_run_class_cleanUp_without_tearDownClass4  si    	% 	%8,, 	% 	L.#AB?	Ar   c                  aa . oR o ! VV3R lR\         P                  4      p\         P                  P                  V4      pVP	                  4        V P                  S. RO4       . oRo\         P                  P                  V4      pV P                  \        4      ;_uu_ 4       pVP	                  4        RRR4       V P                  \        XP                  4      R4       V P                  S. RO4       R#   + '       g   i     LK; i)Fc                   \   <a  ] tR tRt o ]VV3R l4       tV3R lt]V3R l4       tRtV t	R# )GTestClassCleanup.test_debug_executes_classCleanUp.<locals>.TestableTestiS  c                Z   < SP                  R 4       V P                  \        SSR7       R# r  r9   Nr7   r  r:   r  s   &r   r  RTestClassCleanup.test_debug_executes_classCleanUp.<locals>.TestableTest.setUpClassT  $    -##GXf#Er   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   STestClassCleanup.test_debug_executes_classCleanUp.<locals>.TestableTest.testNothingX  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  UTestClassCleanup.test_debug_executes_classCleanUp.<locals>.TestableTest.tearDownClassZ  r  r   r   Nr   r"  s   @r   rf   r7  S  s0     F F(1 1r   rf   TNr5   r#  )r  r   r  r4   )
r
   r~   r&   r'   r   r   assertRaisesr   str	exceptionr?   rf   r,   r   r9   r8   s   &   @@r    test_debug_executes_classCleanUp1TestClassCleanup.test_debug_executes_classCleanUpO  s    		1 		18,, 		1 **@@NP	R **@@N{++rKKM ,R\\*L9O	Q ,+s   'C;;D	c                  aa . oR o ! VV3R lR\         P                  4      p\         P                  P                  V4      pV P	                  \
        4      ;_uu_ 4       pVP                  4        RRR4       V P                  \        XP                  4      R4       V P                  S. RO4       V P                  VP                  4       VP                  P                  4        . oRo\         P                  P                  V4      pV P	                  \
        4      ;_uu_ 4       pVP                  4        RRR4       V P                  \        VP                  4      R4       V P                  S. RO4       V P                  VP                  4       VP                  P                  4        R#   + '       g   i     ELH; i  + '       g   i     L; i)Fc                   \   <a  ] tR tRt o ]VV3R l4       tV3R lt]V3R l4       tRtV t	R# )_TestClassCleanup.test_debug_executes_classCleanUp_when_teardown_exception.<locals>.TestableTestip  c                Z   < SP                  R 4       V P                  \        SSR7       R# r9  r;  r  s   &r   r  jTestClassCleanup.test_debug_executes_classCleanUp_when_teardown_exception.<locals>.TestableTest.setUpClassq  r=  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   kTestClassCleanup.test_debug_executes_classCleanUp_when_teardown_exception.<locals>.TestableTest.testNothingu  r  r   c                <   < SP                  R 4       \        R4      h)r  TearDownClassExcr6   r  s   &r   r  mTestClassCleanup.test_debug_executes_classCleanUp_when_teardown_exception.<locals>.TestableTest.tearDownClassw  s    0!"455r   r   Nr   r"  s   @r   rf   rJ  p  s0     F F(6 6r   rf   NrP  T)r  r   r  )r
   r~   r&   r'   rB  r   r   r   rC  rD  r   r  clearrE  s   &   @@r   8test_debug_executes_classCleanUp_when_teardown_exceptionITestClassCleanup.test_debug_executes_classCleanUp_when_teardown_exceptionl  sQ   
	6 
	68,, 
	6 **@@N{++rKKM ,R\\*,>?#JK445$$**,**@@N{++rKKM ,R\\*,>?#JK445$$**, ,++ ,+s    F0'G0G	G	c                
    ! R  R\         P                  4      pR pR pVP                  V4       VP                  V4       VP                  4        V P	                  \        VP                  4      ^4       VP                  w  rEV P                  V^,          \        4       V P	                  \        V^,          4      R4       V P                  V^,          \        4       V P	                  \        V^,          4      R4       R# )c                   &   a  ] tR tRt o R tRtV tR# )WTestClassCleanup.test_doClassCleanups_with_errors_addClassCleanUp.<locals>.TestableTesti  c                    R # r	   r   rD   s   &r   rb   cTestClassCleanup.test_doClassCleanups_with_errors_addClassCleanUp.<locals>.TestableTest.testNothing  rd   r   r   Nre   rN   s   @r   rf   rW    rg   r   rf   c                      \        R 4      h)rp   r   r   r   r   rp   STestClassCleanup.test_doClassCleanups_with_errors_addClassCleanUp.<locals>.cleanup1      j))r   c                      \        R 4      h)ru   r[  r   r   r   ru   STestClassCleanup.test_doClassCleanups_with_errors_addClassCleanUp.<locals>.cleanup2  r]  r   ru   rp   N)
r
   r~   r  r	  r   lentearDown_exceptionsassertIsInstancer   rC  )r?   rf   rp   ru   e1e2s   &     r   0test_doClassCleanups_with_errors_addClassCleanUpATestClassCleanup.test_doClassCleanups_with_errors_addClassCleanUp  s    	8,, 		*	* 	$$X.$$X.$$&\==>B11be[1RUZ0be[1RUZ0r   c                  a . o ! V3R  lR\         P                  4      p\        V4      pV P                  VP                  ^ ,          ^,          P                  4       R,          \         R24       V P                  S. RO4       R# )c                   `   <a  ] tR tRt o ]V3R l4       tV3R ltR t]V3R l4       tRt	V t
R# )BTestClassCleanup.test_with_errors_addCleanUp.<locals>.TestableTesti  c                V   < SP                  R 4       V P                  \        S4       R# r  r;  r  s   &r   r  MTestClassCleanup.test_with_errors_addCleanUp.<locals>.TestableTest.setUpClass      -##GX6r   c                Z   < SP                  R 4       V P                  \        SRR7       R# r   Tr:  Nr7   r   r:   r   s   &r   r   HTestClassCleanup.test_with_errors_addCleanUp.<locals>.TestableTest.setUp  !    ($?r   c                    R # r	   r   rD   s   &r   rb   NTestClassCleanup.test_with_errors_addCleanUp.<locals>.TestableTest.testNothing  rd   r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  PTestClassCleanup.test_with_errors_addCleanUp.<locals>.TestableTest.tearDownClass  r  r   r   Nr   r   r   r   r!  r  r   rb   r  r   rM   rO   r8   s   @r   rf   ri    s4     7 7@1 1r   rf   : CleanUpExcN)r  r   r4   r  r3   r
   r~   r1   r   r   
splitlinesr   r?   rf   r   r8   s   &  @r   test_with_errors_addCleanUp,TestClassCleanup.test_with_errors_addCleanUp  sr    	18,, 	1 ,'q)!,779"=+,L9	;;	<r   c                  a . o ! V3R  lR\         P                  4      p\        V4      pV P                  VP                  ^ ,          ^,          P                  4       R,          \         R24       V P                  S. RO4       R# )c                   f   <a  ] tR tRt o ]V3R l4       tV3R ltV3R lt]V3R l4       tRt	V t
R# )KTestClassCleanup.test_run_with_errors_addClassCleanUp.<locals>.TestableTesti  c                Z   < SP                  R 4       V P                  \        SRR7       R# r  Tr:  Nr;  r  s   &r   r  VTestClassCleanup.test_run_with_errors_addClassCleanUp.<locals>.TestableTest.setUpClass  $    -##GXd#Cr   c                V   < SP                  R 4       V P                  \        S4       R# r   ro  r   s   &r   r   QTestClassCleanup.test_run_with_errors_addClassCleanUp.<locals>.TestableTest.setUp  s    (2r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   WTestClassCleanup.test_run_with_errors_addClassCleanUp.<locals>.TestableTest.testNothing  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  YTestClassCleanup.test_run_with_errors_addClassCleanUp.<locals>.TestableTest.tearDownClass  r  r   r   Nrv  rw  s   @r   rf   r    s5     D D3(1 1r   rf   rx  Nry  )r  r   r   r3   r  r4   rz  r|  s   &  @r   $test_run_with_errors_addClassCleanUp5TestClassCleanup.test_run_with_errors_addClassCleanUp  sr    	18,, 	1 ,'q)!,779"=+,L9	;:	;r   c                  aaa . oR oR o ! VVV3R lR\         P                  4      p\        V4      pV P                  VP                  ^ ,          ^,          P                  4       R
,          \         R24       V P                  S. RO4       . oRoR o\        V4      pV P                  VP                  ^ ,          ^,          P                  4       R
,          \         R24       V P                  VP                  ^,          ^,          P                  4       R
,          \         R24       V P                  SRR.4       . oR oRo\        V4      pV P                  VP                  ^ ,          ^,          P                  4       R
,          \         R24       V P                  VP                  ^,          ^,          P                  4       R
,          \         R24       V P                  S. RO4       R	# )Fc                   j   <a  ] tR tRt o ]VV3R l4       tVV3R ltV3R lt]V3R l4       tRt	V t
R# )UTestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps.<locals>.TestableTesti  c                   < SP                  R 4       V P                  \        SRR7       S'       d   \        R4      hR# )r  Tr:  ClassExcNr  r  class_blow_upr8   s   &r   r  `TestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps.<locals>.TestableTest.setUpClass  s7    -##GXd#C %j11 !r   c                P   < SP                  R 4       S'       d   \        R4      hR# r   	MethodExcNr6   r?   method_blow_upr8   s   &r   r   [TestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps.<locals>.TestableTest.setUp  "    (!%k22 "r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   aTestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps.<locals>.TestableTest.testNothing  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  cTestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps.<locals>.TestableTest.tearDownClass  r  r   r   Nrv  rO   r  r  r8   s   @r   rf   r    s3     2 2
3(1 1r   rf   rx  r  r4   T
: ClassExc: MethodExcNry  )r  r   r   r  r4   )r  r   r  r4   rz  )r?   rf   r   r  r  r8   s   &  @@@r   .test_with_errors_in_addClassCleanup_and_setUps?TestClassCleanup.test_with_errors_in_addClassCleanup_and_setUps  s   	1 	18,, 	1" ,'q)!,779"=+,L9	;:	; ,'q)!,779"=+,J7	9q)!,779"=+,L9	;&6	8 ,'q)!,779"=+,K8	:q)!,779"=+,L9	;)	*r   c                  a . o ! V3R  lR\         P                  4      p\        V4      pV P                  VP                  ^ ,          ^,          P                  4       R,          \         R24       V P                  S. RO4       R# )c                   Z   <a  ] tR tRt o ]V3R l4       tV3R lt]V3R l4       tRtV t	R# )HTestClassCleanup.test_with_errors_in_tearDownClass.<locals>.TestableTesti	  c                V   < SP                  R 4       V P                  \        S4       R# r  r;  r  s   &r   r  STestClassCleanup.test_with_errors_in_tearDownClass.<locals>.TestableTest.setUpClass
  rl  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   TTestClassCleanup.test_with_errors_in_tearDownClass.<locals>.TestableTest.testNothing  r  r   c                <   < SP                  R 4       \        R4      h)r  TearDownExcr6   r  s   &r   r  VTestClassCleanup.test_with_errors_in_tearDownClass.<locals>.TestableTest.tearDownClass  s    0!-00r   r   Nr   rw  s   @r   rf   r  	  s.     7 7(1 1r   rf   z: TearDownExcNry  r#  rz  r|  s   &  @r   !test_with_errors_in_tearDownClass2TestClassCleanup.test_with_errors_in_tearDownClass  sq    
	18,, 
	1 ,'q)!,779"=+,M:	<P	Rr   c                N    ! R  R\         P                  4      p. pVP                  VP                  R4       \	        V^*4      pV P                  VP                  V4      ^*4       VP                  VP                  R4       VP                  4        V P                  V. RO4       R# )c                   &   a  ] tR tRt o R tRtV tR# )=TestClassCleanup.test_enterClassContext.<locals>.TestableTesti  c                    R # r	   r   rD   s   &r   rb   ITestClassCleanup.test_enterClassContext.<locals>.TestableTest.testNothing  rd   r   r   Nre   rN   s   @r   rf   r    rg   r   rf   rp   ru   Nr   )r
   r~   r  r7   r<   r   enterClassContextr	  )r?   rf   ro   r   s   &   r   test_enterClassContext'TestClassCleanup.test_enterClassContext  s    	8,, 	 $$X__jAHb!77;R@$$X__jA$$&#LMr   c                b    ! R  R\         P                  4      pV P                  \        R4      ;_uu_ 4        VP	                  \        4       4       RRR4       V P                  \        R4      ;_uu_ 4        VP	                  \        4       4       RRR4       V P                  \        R4      ;_uu_ 4        VP	                  \        4       4       RRR4       V P                  VP                  . 4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     LT; i)c                   &   a  ] tR tRt o R tRtV tR# )HTestClassCleanup.test_enterClassContext_arg_errors.<locals>.TestableTesti+  c                    R # r	   r   rD   s   &r   rb   TTestClassCleanup.test_enterClassContext_arg_errors.<locals>.TestableTest.testNothing,  rd   r   r   Nre   rN   s   @r   rf   r  +  rg   r   rf   r   N)
r
   r~   r   r   r  rQ   rS   rY   r   r  r?   rf   s   & r   !test_enterClassContext_arg_errors2TestClassCleanup.test_enterClassContext_arg_errors*  s    	8,, 	 ##I/DEE**+<+>? F##I/DEE**:<8 F##I/DEE**9;7 F 	55r: FEEEEEs#   C88D8D8D	D	D.	c                   aa . o ! V3R  lR\         P                  4      o ! VV3R lR\         P                  4      p\        V4       V P                  S. RO4       R# )c                   D   <a  ] tR tRt o ]V3R l4       tV3R ltRtV tR# )8TestClassCleanup.test_run_nested_test.<locals>.InnerTesti;  c                b   < SP                  R 4       V P                  SP                   R4       R# )inner setupinner cleanupNr7   r  r  s   &r   r  CTestClassCleanup.test_run_nested_test.<locals>.InnerTest.setUpClass<  #    .##HOO_Er   c                *   < SP                  R 4       R# )
inner testNrk   r   s   &r   r   =TestClassCleanup.test_run_nested_test.<locals>.InnerTest.test@  s    -r   r   N	r   r   r   r   r!  r  r   r   rM   rw  s   @r   	InnerTestr  ;  s#     F F. .r   r  c                   F   <a  ] tR tRt o ]V3R l4       tVV3R ltRtV tR# )8TestClassCleanup.test_run_nested_test.<locals>.OuterTestiC  c                b   < SP                  R 4       V P                  SP                   R4       R# )outer setupouter cleanupNr  r  s   &r   r  CTestClassCleanup.test_run_nested_test.<locals>.OuterTest.setUpClassD  r  r   c                b   < SP                  R 4       \        S4       SP                  R4       R# )start outer testend outer testN)r7   r1   )r?   r  r8   s   &r   r   =TestClassCleanup.test_run_nested_test.<locals>.OuterTest.testH  s%     23# 01r   r   Nr  )rO   r  r8   s   @r   	OuterTestr  C  s#     F F2 2r   r  N)r  r  r  r  r  r  r  r$  )r?   r  r  r8   s   & @@r   test_run_nested_test%TestClassCleanup.test_run_nested_test8  sP    	.)) 	.	2 	2)) 	2 	 $3 	4r   c                     ! R  R\         P                  4      p\         P                  P                  V4      p\	        4       pVP                  V4       V P                  RVP                  P                  4       4       R# )c                       ] tR tRtRtR# )FTestClassCleanup.test_run_empty_suite_error_message.<locals>.EmptyTestiT  r   Nr   r   r   r   	EmptyTestr  T      r   r  z
NO TESTS RAN
N)	r
   r~   r&   r'   r   r*   r   r   getvalue)r?   r  r,   r/   s   &   r   "test_run_empty_suite_error_message3TestClassCleanup.test_run_empty_suite_error_messageS  s[    	)) 	 **@@K

5(&--*@*@*BCr   r   N)r   r   r   r   r
  r&  r3  rF  rS  re  r}  r  r  r  r  r  r  r  r   rM   rN   s   @r   r   r      sZ     P6R4A6Q: -D1.<.;.2*hR(N;46D Dr   r   c                      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R tR tR tR tRtV tR# )TestModuleCleanUpi^  c                  aaa . oV3R  loV3R lo ! VV3R lR\         4      pV P                  \        P                  P                  SR\        RRR7      3SR	/ 3.4       \        P                  P                  4        V P                  S^R	/ 3^R\        RRR7      3.4       V P                  \        P                  P                  . 4       R# )
c                  .   < SP                  ^W34       R# r   rk   rm   rn   module_cleanupss   *,r   module_cleanup1HTestModuleCleanUp.test_add_and_do_ModuleCleanup.<locals>.module_cleanup1c      ""At#45r   c                  .   < SP                  ^W34       R# r  rk   r  s   *,r   module_cleanup2HTestModuleCleanUp.test_add_and_do_ModuleCleanup.<locals>.module_cleanup2f  r  r   c            	       p   < ] tR tRt]P
                  !  Z ^^^RRR7       ]P
                  !  Z4       RtR# )?TestModuleCleanUp.test_add_and_do_ModuleCleanup.<locals>.Moduleii  rw   rx   ry   r   Nr   r   r   r   r
   addModuleCleanupr   )r  r  s   r   Moduler  i  s0    %%oq!Q+2D%%o66r   r  rw   rx   ry   Nr|   r   )objectr   r
   r-   _module_cleanupsr   doModuleCleanups)r?   r  r  r  r  s   & @@@r   test_add_and_do_ModuleCleanup/TestModuleCleanUp.test_add_and_do_ModuleCleanup`  s    	6	6	7 	7V 	7
 	77*IW9=?*B35	6
 	&&(Ar2;I*.G)*L9N +O 	P77<r   c           
       aaa . oV3R  loR o ! VV3R lR\         4      pV P                  \        P                  P                  SR	\        RRR7      3SR
/ 3.4       V P                  \        4      ;_uu_ 4       p\        P                  P                  4        RRR4       V P                  \        XP                  4      R4       V P                  \        P                  P                  . 4       R#   + '       g   i     La; i)c                  .   < SP                  ^W34       R# r   rk   r  s   *,r   module_cleanup_goodcTestModuleCleanUp.test_doModuleCleanup_with_errors_in_addModuleCleanup.<locals>.module_cleanup_good{  r  r   c                      \        R 4      hr   r[  )rm   rn   s   *,r   module_cleanup_badbTestModuleCleanUp.test_doModuleCleanup_with_errors_in_addModuleCleanup.<locals>.module_cleanup_bad~  s    l++r   c            	       p   < ] tR tRt]P
                  !  Z^^^RRR7       ]P
                  !  Z 4       RtR# )VTestModuleCleanUp.test_doModuleCleanup_with_errors_in_addModuleCleanup.<locals>.Modulei  rw   rx   ry   r   Nr  )r   r  s   r   r  r    s2    %%&91a+2D%%&899r   r  rw   rx   ry   Nr5   r|   r   )r  r   r
   r-   r  r   rB  r   r  rC  rD  )r?   r  er   r  r  s   &  @@@r   4test_doModuleCleanup_with_errors_in_addModuleCleanupFTestModuleCleanUp.test_doModuleCleanup_with_errors_in_addModuleCleanupx  s    	6	,	: 	:V 	: 	77.	W9=?-r268	9 {++qMM**, ,Q[[)<877< ,+s   <C44D	c                   a aa . oV3R  lo ! VV 3R lR\         4      p\        P                  P                  4        S P	                  SRRR/3.4       R# )c                  ,   < SP                  W34       R # r	   rk   rl   s   *,r   r:   CTestModuleCleanUp.test_addModuleCleanup_arg_errors.<locals>.cleanup      OOTN+r   c                   p  < ] tR tRt]P
                  !  Z ^^RR7        ZP                  ]4      ;_uu_ 4        ]P
                  !  Z RR7       RRR4        ZP                  ]4      ;_uu_ 4        ]P
                  ! 4        RRR4       RtR#   + '       g   i     LH; i  + '       g   i     RtR# ; i)BTestModuleCleanUp.test_addModuleCleanup_arg_errors.<locals>.Modulei  rw   )functionr  argNr   )	r   r   r   r   r
   r  rB  r   r   )r:   r?   s   r   r  r    su    %%gq!gF""9--))7H .""9--))+ .- .----s   B1B"B	"B5	r  r  rw   Nrj   rt   )r  r
   r-   r  r   )r?   r  r:   ro   s   f @@r    test_addModuleCleanup_arg_errors2TestModuleCleanUp.test_addModuleCleanup_arg_errors  sP    	,	, 	,V 	, 	&&(!J#89:	<r   c                  aa R o. o ! VV3R lR\         4      p ! V3R lR\        P                  4      pRVn        V\        P
                  R&   \        V4      pV P                  SRR.4       V P                  VP                  ^ ,          ^,          P                  4       R
,          \         R24       . oRo\        V4       V P                  S. RO4       V P                  \        P                  P                  . 4       R	# )Tc                   P   <a  ] tR tRt o ]VV3R l4       t]V3R l4       tRtV tR# )9TestModuleCleanUp.test_run_module_cleanUp.<locals>.Modulei  c                    < SP                  R 4       \        P                  ! \        S4       S '       d   \	        R4      hR# )setUpModulezsetUpModule ExcNr7   r
   r  r:   r   r9   r8   s   r   r  ETestModuleCleanUp.test_run_module_cleanUp.<locals>.Module.setUpModule  s3    .))'8<%&788 r   c                 *   < S P                  R 4       R# tearDownModuleNrk   r   s   r   r  HTestModuleCleanUp.test_run_module_cleanUp.<locals>.Module.tearDownModule       01r   r   N	r   r   r   r   staticmethodr  r  r   rM   r"  s   @r   r  r    s+     9 9
 2 2r   r  c                   Z   <a  ] tR tRt o ]V3R l4       tV3R lt]V3R l4       tRtV t	R# )?TestModuleCleanUp.test_run_module_cleanUp.<locals>.TestableTesti  c                *   < SP                  R 4       R# r  rk   r  s   &r   r  JTestModuleCleanUp.test_run_module_cleanUp.<locals>.TestableTest.setUpClass      -r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   KTestModuleCleanUp.test_run_module_cleanUp.<locals>.TestableTest.testNothing  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  MTestModuleCleanUp.test_run_module_cleanUp.<locals>.TestableTest.tearDownClass  r  r   r   Nr   rw  s   @r   rf   r#    .     . .(1 1r   rf   r  r3   z: setUpModule ExcFNry  r  r  r   r  r  r3   r  r
   r~   r   sysmodulesr1   r   r   r{  r   r-   r  )r?   r  rf   r   r9   r8   s   &   @@r   test_run_module_cleanUp)TestModuleCleanUp.test_run_module_cleanUp  s    		2 		2V 		2	18,, 	1 #+ &H,'M>#BCq)!,779"=+,,=>	@ <	= 	77<r   c                b  aaa R oRo. o ! VV3R lR\         4      p ! VV3R lR\         4      p ! V3R lR\        P                  4      p ! V3R lR	\        P                  4      pRVn        V\        P
                  R&   RVn        V\        P
                  R&   \        W44       V P                  S. RO4       . oRoR o\        W44       V P                  S. RO4       . oRoRo\        W44       V P                  S. RO4       V P                  \        P                  P                  . 4       R
# )TFc                   P   <a  ] tR tRt o ]VV3R l4       t]V3R l4       tRtV tR# )CTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module1i  c                    < SP                  R 4       \        P                  ! \        S4       S '       d   \	        4       hR# r  Nr  r  s   r   r  OTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module1.setUpModule  s/    .))'8<%-' r   c                 *   < S P                  R 4       R# r  rk   r   s   r   r  RTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module1.tearDownModule  r  r   r   Nr   r"  s   @r   Module1r4    s+     ( (
 2 2r   r:  c                   P   <a  ] tR tRt o ]VV3R l4       t]V3R l4       tRtV tR# )CTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module2i  c                    < SP                  R 4       \        P                  ! \        S4       S '       d   \	        4       hR# )setUpModule2Nr  )blowUp2r8   s   r   r  OTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module2.setUpModule  s/    /))'8<%-' r   c                 *   < S P                  R 4       R# )tearDownModule2Nrk   r   s   r   r  RTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.Module2.tearDownModule  s     12r   r   Nr   )rO   r?  r8   s   @r   Module2r<    s+     ( (
 3 3r   rD  c                   Z   <a  ] tR tRt o ]V3R l4       tV3R lt]V3R l4       tRtV t	R# )HTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTesti  c                *   < SP                  R 4       R# r  rk   r  s   &r   r  STestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest.setUpClass  r&  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   TTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest.testNothing  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  VTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest.tearDownClass  r  r   r   Nr   rw  s   @r   rf   rF    r+  r   rf   c                   Z   <a  ] tR tRt o ]V3R l4       tV3R lt]V3R l4       tRtV t	R# )ITestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest2i  c                *   < SP                  R 4       R# )setUpClass2Nrk   r  s   &r   r  TTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest2.setUpClass  s    .r   c                *   < SP                  R 4       R# test2Nrk   r   s   &r   rb   UTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest2.testNothing      (r   c                *   < SP                  R 4       R# )tearDownClass2Nrk   r  s   &r   r  WTestModuleCleanUp.test_run_multiple_module_cleanUp.<locals>.TestableTest2.tearDownClass  r  r   r   Nr   rw  s   @r   TestableTest2rN    s.     / /)2 2r   rZ  N)r  r3   r>  rP  rT  rX  rB  r3   )r  r  r   r  r  r3   r>  r3   )r  r  r   r  r  r3   r>  rP  rT  rX  rB  r3   
r  r
   r~   r   r.  r/  r1   r   r-   r  )r?   r:  rD  rf   rZ  r9   r?  r8   s   &    @@@r    test_run_multiple_module_cleanUp2TestModuleCleanUp.test_run_multiple_module_cleanUp  s   		2 		2f 		2		3 		3f 		3	18,, 	1	2H-- 	2 #,!(I#, !(I- $4 	5 - $4 	5
 -=	>
 	77<r   c                .  a . o ! V3R  lR\         4      p ! V3R lR\        P                  4      pRVn        V\        P
                  R&   \        V4       V P                  S. RO4       V P                  \        P                  P                  . 4       R# )c                   8   <a  ] tR tRt o ]V3R l4       tRtV tR# )JTestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.Modulei  c                 `   < S P                  R 4       \        P                  ! \        S 4       R# r6  r7   r
   r  r:   r   s   r   r  VTestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.Module.setUpModule      .))'8<r   r   N)r   r   r   r   r!  r  r   rM   rw  s   @r   r  r`    s     = =r   r  c                   Z   <a  ] tR tRt o ]V3R l4       tV3R lt]V3R l4       tRtV t	R# )PTestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.TestableTesti  c                *   < SP                  R 4       R# r  rk   r  s   &r   r  [TestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.TestableTest.setUpClass  r&  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   \TestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.TestableTest.testNothing  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  ^TestModuleCleanUp.test_run_module_cleanUp_without_teardown.<locals>.TestableTest.tearDownClass  r  r   r   Nr   rw  s   @r   rf   rf    r+  r   rf   N)r  r  r   r  r3   r[  )r?   r  rf   r8   s   &  @r   (test_run_module_cleanUp_without_teardown:TestModuleCleanUp.test_run_module_cleanUp_without_teardown  sw    	=V 	=	18,, 	1 #+ &H $E 	F77<r   c                  a . o ! V3R  lR\         4      p ! V3R lR\        P                  4      pRVn        V\        P
                  R&   \        V4      pV P                  VP                  ^ ,          ^,          P                  4       R,          \         R24       V P                  S. RO4       V P                  \        P                  P                  . 4       R# )c                   N   <a  ] tR tRt o ]V3R l4       t]V3R l4       tRtV tR# )QTestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.Modulei*  c                 `   < S P                  R 4       \        P                  ! \        S 4       R# r6  rb  r   s   r   r  ]TestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.Module.setUpModule+  rd  r   c                 <   < S P                  R 4       \        R4      h)r  r5   r6   r   s   r   r  `TestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.Module.tearDownModule/  s     01!,//r   r   Nr   rw  s   @r   r  rq  *  s+     = = 0 0r   r  c                   Z   <a  ] tR tRt o ]V3R l4       tV3R lt]V3R l4       tRtV t	R# )WTestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.TestableTesti4  c                *   < SP                  R 4       R# r  rk   r  s   &r   r  bTestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.TestableTest.setUpClass5  r&  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   cTestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.TestableTest.testNothing8  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  eTestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception.<locals>.TestableTest.tearDownClass:  r  r   r   Nr   rw  s   @r   rf   rw  4  r+  r   rf   rx  Nry  r,  r-  r?   r  rf   r   r8   s   &   @r   /test_run_module_cleanUp_when_teardown_exceptionATestModuleCleanUp.test_run_module_cleanUp_when_teardown_exception(  s    	0V 	0	18,, 	1 #+ &H,'q)!,779"=+,L9	; $4 	5 	77<r   c                  aa . oR o ! VV3R lR\         4      p ! V3R lR\        P                  4      pRVn        V\        P
                  R&   \        P                  P                  V4      pVP                  4        V P                  S. RO4       V P                  \        P                  P                  . 4       . oRo\        P                  P                  V4      pV P                  \        4      ;_uu_ 4       pVP                  4        RRR4       V P                  \        XP                  4      R4       V P                  S. R	O4       V P                  \        P                  P                  . 4       R#   + '       g   i     Lu; i)
Fc                   P   <a  ] tR tRt o ]VV3R l4       t]V3R l4       tRtV tR# )DTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.ModuleiK  c                 d   < SP                  R 4       \        P                  ! \        SS R7       R# r  r:  Nrb  r  s   r   r  PTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.Module.setUpModuleL  !    .))'8FKr   c                 *   < S P                  R 4       R# r  rk   r   s   r   r  STestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.Module.tearDownModuleP  r  r   r   Nr   r"  s   @r   r  r  K  s-     L L 2 2r   r  c                   Z   <a  ] tR tRt o ]V3R l4       tV3R lt]V3R l4       tRtV t	R# )JTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.TestableTestiT  c                *   < SP                  R 4       R# r  rk   r  s   &r   r  UTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.TestableTest.setUpClassU  r&  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   VTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.TestableTest.testNothingX  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  XTestModuleCleanUp.test_debug_module_executes_cleanUp.<locals>.TestableTest.tearDownClassZ  r  r   r   Nr   rw  s   @r   rf   r  T  r+  r   rf   TNr5   r,  )r  r  r   r  r  r4   )r  r
   r~   r   r.  r/  r&   r'   r   r   r-   r  rB  r   rC  rD  r?   r  rf   r,   r   r9   r8   s   &    @@r   "test_debug_module_executes_cleanUp4TestModuleCleanUp.test_debug_module_executes_cleanUpH  s,   	2 	2V 	2	18,, 	1 #+ &H**@@N<	= 	77<**@@N{++rKKM ,R\\*L9 $V 	W77< ,+s   =E;;F	c                v  aa . oR o ! VV3R lR\         4      p ! V3R lR\        P                  4      pRVn        V\        P
                  R&   \        P                  P                  V4      pV P                  \        4      ;_uu_ 4       pVP                  4        RRR4       V P                  \        XP                  4      R4       V P                  S. RO4       V P                  \        P                  P                   4       \        P                  P                   P#                  4        . oRo\        P                  P                  V4      pV P                  \        4      ;_uu_ 4       pVP                  4        RRR4       V P                  \        VP                  4      R4       V P                  S. RO4       V P                  \        P                  P                   4       \        P                  P                   P#                  4        R#   + '       g   i     EL; i  + '       g   i     L; i)	Fc                   P   <a  ] tR tRt o ]VV3R l4       t]V3R l4       tRtV tR# )STestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.Moduleit  c                 d   < SP                  R 4       \        P                  ! \        SS R7       R# r  rb  r  s   r   r  _TestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.Module.setUpModuleu  r  r   c                 <   < S P                  R 4       \        R4      h)r  TearDownModuleExcr6   r   s   r   r  bTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.Module.tearDownModuley  s     01!"566r   r   Nr   r"  s   @r   r  r  t  s-     L L 7 7r   r  c                   Z   <a  ] tR tRt o ]V3R l4       tV3R lt]V3R l4       tRtV t	R# )YTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.TestableTesti~  c                *   < SP                  R 4       R# r  rk   r  s   &r   r  dTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.TestableTest.setUpClass  r&  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   eTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.TestableTest.testNothing  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  gTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exception.<locals>.TestableTest.tearDownClass  r  r   r   Nr   rw  s   @r   rf   r  ~  r+  r   rf   Nr  T)r  r  r   r  r  )r  r
   r~   r   r.  r/  r&   r'   rB  r   r   r   rC  rD  r   r-   r  rR  r  s   &    @@r   1test_debug_module_cleanUp_when_teardown_exceptionCTestModuleCleanUp.test_debug_module_cleanUp_when_teardown_exceptionq  s   	7 	7V 	7	18,, 	1 #+ &H**@@N{++rKKM ,R\\*,?@ $G 	H667&&,,.**@@N{++rKKM ,R\\*,?@ $G 	H667&&,,.# ,++ ,+s   H/H(H%	(H8	c                  a aa . oV3R  lo ! VV 3R lR\         P                  4      pS P                  \        4      ;_uu_ 4        VP	                  4        RRR4       S P                  \        4      ;_uu_ 4        \         P                  P                  V! 4       SR7       RRR4       \        V4       S P                  SRR^R^/3.4       R#   + '       g   i     L; i  + '       g   i     LI; i)c                  ,   < SP                  W34       R # r	   rk   rl   s   *,r   r:   BTestModuleCleanUp.test_addClassCleanup_arg_errors.<locals>.cleanup  r
  r   c                   @   <a  ] tR tRt o ]VV3R l4       tR tRtV tR# )GTestModuleCleanUp.test_addClassCleanup_arg_errors.<locals>.TestableTesti  c                   < V P                  S^^^^R7       SP                  \        4      ;_uu_ 4        V P                  SRR7       RRR4       R#   + '       g   i     R# ; i)rj   )r  r  rw   r  N)r  rB  r   )r  r:   r?   s   &r   r  RTestModuleCleanUp.test_addClassCleanup_arg_errors.<locals>.TestableTest.setUpClass  sO    ##GQA1#E&&y11''g'F 2111   AA$	c                    R # r	   r   rD   s   &r   rb   STestModuleCleanUp.test_addClassCleanup_arg_errors.<locals>.TestableTest.testNothing  rd   r   r   N)	r   r   r   r   r!  r  rb   r   rM   rO   r:   r?   s   @r   rf   r    s#     G G r   rf   N)r  r  r  r  r  )r
   r~   rB  r   r  r   r1   r   r?   rf   r:   ro   s   f @@r   test_addClassCleanup_arg_errors1TestModuleCleanUp.test_addClassCleanup_arg_errors  s    	,	 	8,, 	 y))((* *y))((\^g(N *!J5!#<=>	@ *)))s   C<'C$C!	$C4	c                  a aa . oV3R  lo ! VV 3R lR\         P                  4      pS P                  \        4      ;_uu_ 4        V! 4       P	                  4        RRR4       S P                  \        4      ;_uu_ 4        \         P                  P	                  V! 4       SR7       RRR4       \        V4       S P                  SRR^R^/3.4       R#   + '       g   i     L; i  + '       g   i     LI; i)c                  ,   < SP                  W34       R # r	   rk   rl   s   *,r   r:   =TestModuleCleanUp.test_addCleanup_arg_errors.<locals>.cleanup  r
  r   c                   6   <a  ] tR tRt o VV3R ltR tRtV tR# )BTestModuleCleanUp.test_addCleanup_arg_errors.<locals>.TestableTesti  c                   < V P                  S^^^^R7       SP                  \        4      ;_uu_ 4        V P                  SRR7       RRR4       R#   + '       g   i     R# ; i)rj   )r  r?   rw   r  N)r   rB  r   )self2r:   r?   s   &r   r   HTestModuleCleanUp.test_addCleanup_arg_errors.<locals>.TestableTest.setUp  sO      !Q C&&y11$$g7$C 2111r  c                    R # r	   r   rD   s   &r   rb   NTestModuleCleanUp.test_addCleanup_arg_errors.<locals>.TestableTest.testNothing  rd   r   r   N)r   r   r   r   r   rb   r   rM   r  s   @r   rf   r    s     D r   rf   N)r?   r  r  r?   r  )r
   r~   rB  r   r   r1   r   r  s   f @@r   test_addCleanup_arg_errors,TestModuleCleanUp.test_addCleanup_arg_errors  s    	,	 	8,, 	 y))N%%' *y))((lnw(O *!J61#=>?	A *)))s   C'C)C&	)C9	c                f  a . o ! V3R  lR\         4      p ! V3R lR\        P                  4      pRVn        V\        P
                  R&   \        V4      pV P                  VP                  ^ ,          ^,          P                  4       R,          \         R24       V P                  S. RO4       R# )c                   N   <a  ] tR tRt o ]V3R l4       t]V3R l4       tRtV tR# )ETestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.Modulei  c                 `   < S P                  R 4       \        P                  ! \        S 4       R# r6  rb  r   s   r   r  QTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.Module.setUpModule  rd  r   c                 *   < S P                  R 4       R# r  rk   r   s   r   r  TTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.Module.tearDownModule  r  r   r   Nr   rw  s   @r   r  r    +     = = 2 2r   r  c                   Z   <a  ] tR tRt o ]V3R l4       tV3R lt]V3R l4       tRtV t	R# )KTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.TestableTesti  c                Z   < SP                  R 4       V P                  \        SRR7       R# r  r;  r  s   &r   r  VTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.TestableTest.setUpClass  r  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   WTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.TestableTest.testNothing  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  YTestModuleCleanUp.test_with_errors_in_addClassCleanup.<locals>.TestableTest.tearDownClass  r  r   r   Nr   rw  s   @r   rf   r    s0     D D(1 1r   rf   rx  Nry  )r  r  r   r  r4   r  r3   r  r
   r~   r   r.  r/  r1   r   r   r{  r   r~  s   &   @r   #test_with_errors_in_addClassCleanup5TestModuleCleanUp.test_with_errors_in_addClassCleanup  s    	2V 	2		18,, 		1 #+ &H,'q)!,779"=+,L9	;K	Lr   c                f  a . o ! V3R  lR\         4      p ! V3R lR\        P                  4      pRVn        V\        P
                  R&   \        V4      pV P                  VP                  ^ ,          ^,          P                  4       R,          \         R24       V P                  S. RO4       R# )c                   N   <a  ] tR tRt o ]V3R l4       t]V3R l4       tRtV tR# )@TestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.Modulei  c                 `   < S P                  R 4       \        P                  ! \        S 4       R# r6  rb  r   s   r   r  LTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.Module.setUpModule  rd  r   c                 *   < S P                  R 4       R# r  rk   r   s   r   r  OTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.Module.tearDownModule  r  r   r   Nr   rw  s   @r   r  r    r  r   r  c                   F   <a  ] tR tRt o V3R ltV3R ltV3R ltRtV tR# )FTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.TestableTesti  c                Z   < SP                  R 4       V P                  \        SRR7       R# rn  ro  r   s   &r   r   LTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.TestableTest.setUp  rq  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   RTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.TestableTest.testNothing  r  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   r   OTestModuleCleanUp.test_with_errors_in_addCleanup.<locals>.TestableTest.tearDown  r   r   r   Nr   rw  s   @r   rf   r    s     @(, ,r   rf   rx  Nry  )r  r   r   r   r4   r  r3   r  r~  s   &   @r   test_with_errors_in_addCleanup0TestModuleCleanUp.test_with_errors_in_addCleanup  s    	2V 	2	,8,, 	, #+ &H,'q)!,779"=+,L9	;K	Lr   c                  aaaa . oR oR oR o ! VV3R lR\         4      p ! VVV3R lR\        P                  4      pRVn        V\        P
                  R&   \        V4      pV P                  VP                  ^ ,          ^,          P                  4       R,          \         R24       V P                  S. RO4       . oRoR oR o\        V4      pV P                  VP                  ^ ,          ^,          P                  4       R,          \         R	24       V P                  VP                  ^,          ^,          P                  4       R,          \         R24       V P                  SRR.4       . oR oRoR o\        V4      pV P                  VP                  ^ ,          ^,          P                  4       R,          \         R
24       V P                  VP                  ^,          ^,          P                  4       R,          \         R24       V P                  S. RO4       . oR oR oRo\        V4      pV P                  VP                  ^ ,          ^,          P                  4       R,          \         R24       V P                  VP                  ^,          ^,          P                  4       R,          \         R24       V P                  S. RO4       R# )Fc                   P   <a  ] tR tRt o ]VV3R l4       t]V3R l4       tRtV tR# )QTestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.Modulei  c                    < SP                  R 4       \        P                  ! \        SRR7       S '       d   \	        R4      hR# )r  Tr:  	ModuleExcNr  )module_blow_upr8   s   r   r  ]TestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.Module.setUpModule  s4    .))'8DI!%k22 "r   c                 *   < S P                  R 4       R# r  rk   r   s   r   r  `TestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.Module.tearDownModule  r  r   r   Nr   )rO   r  r8   s   @r   r  r    s+     3 3
 2 2r   r  c                   j   <a  ] tR tRt o ]VV3R l4       tVV3R ltV3R lt]V3R l4       tRt	V t
R# )WTestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.TestableTesti  c                P   < SP                  R 4       S'       d   \        R4      hR# )r  r  Nr6   r  s   &r   r  bTestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.TestableTest.setUpClass  s"    - %j11 !r   c                P   < SP                  R 4       S'       d   \        R4      hR# r  r6   r  s   &r   r   ]TestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.TestableTest.setUp  r  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   cTestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.TestableTest.testNothing"  r  r   c                *   < SP                  R 4       R# r  rk   r  s   &r   r  eTestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps.<locals>.TestableTest.tearDownClass$  r  r   r   Nrv  r  s   @r   rf   r    s3     2 23(1 1r   rf   rx  r  r4   Tz: ModuleExcr  r  Nry  )r  r  r   r   r  r  r4   )r  r  r  r4   )r  r  r   r  r  r4   r  )r?   r  rf   r   r  r  r  r8   s   &   @@@@r   /test_with_errors_in_addModuleCleanup_and_setUpsATestModuleCleanUp.test_with_errors_in_addModuleCleanup_and_setUps  s   		2 		2V 		2	1 	18,, 	1  #+ &H,'q)!,779"=+,L9	;)	*
 ,'q)!,779"=+,K8	:q)!,779"=+,L9	;M=#AB,'q)!,779"=+,J7	9q)!,779"=+,L9	; $E 	F ,'q)!,779"=+,K8	:q)!,779"=+,L9	; $3 	4r   c                P  aaaa . oV3R  loV3R loV3R lo ! VV3R lR\         4      p ! VV3R lR\        P                  4      p ! VV3R lR\        P                  4      pRVn        RVn        V\        P
                  R&   \        W#4       V P                  S. R
O4       R	# )c                  *   < S P                  R 4       R# r   rk   r   s   r   rp   MTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.cleanup1Y  r   r   c                  *   < S P                  R 4       R# r   rk   r   s   r   ru   MTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.cleanup2\  r   r   c                  *   < S P                  R 4       R# r   rk   r   s   r   r   MTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.cleanup3_  r   r   c                   P   <a  ] tR tRt o ]VV3R l4       t]V3R l4       tRtV tR# )KTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.Moduleib  c                 V   < SP                  R 4       \        P                  ! S 4       R# r6  )r7   r
   r  )rp   r8   s   r   r  WTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.Module.setUpModulec  s    .))(3r   c                 *   < S P                  R 4       R# r  rk   r   s   r   r  ZTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.Module.tearDownModuleg  r  r   r   Nr   )rO   rp   r8   s   @r   r  r  b  s+     4 4 2 2r   r  c                   H   <a  ] tR tRt o VV3R ltV3R ltV3R ltRtV tR# )QTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.TestableTestik  c                L   < SP                  R 4       V P                  S4       R# r   r   )r?   ru   r8   s   &r   r   WTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.TestableTest.setUpl  r   r   c                *   < SP                  R 4       R# r   rk   r   s   &r   rb   ]TestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.TestableTest.testNothingo  r  r   c                *   < SP                  R 4       R# r   rk   r   s   &r   r   ZTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.TestableTest.tearDownq  r   r   r   Nr   )rO   ru   r8   s   @r   rf   r  k  s     *(, ,r   rf   c                   H   <a  ] tR tRt o VV3R ltV3R ltV3R ltRtV tR# )VTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.OtherTestableTestit  c                L   < SP                  R 4       V P                  S4       R# )setUp2Nr   r   s   &r   r   \TestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.OtherTestableTest.setUpu  s    ))r   c                *   < SP                  R 4       R# rS  rk   r   s   &r   rb   bTestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.OtherTestableTest.testNothingx  rV  r   c                *   < SP                  R 4       R# )	tearDown2Nrk   r   s   &r   r   _TestModuleCleanUp.test_module_cleanUp_with_multiple_classes.<locals>.OtherTestableTest.tearDownz  s    ,r   r   Nr   )rO   r   r8   s   @r   OtherTestableTestr  t  s     *)- -r   r  N)r  r   r   r   ru   r  rT  r  r   r  rp   )r  r
   r~   r   r.  r/  r1   r   )r?   r  rf   r  rp   ru   r   r8   s   &   @@@@r   )test_module_cleanUp_with_multiple_classes;TestModuleCleanUp.test_module_cleanUp_with_multiple_classesW  s    	(	(	(	2 	2V 	2	, 	,8,, 	,	- 	- 1 1 	- #+'/$ &H1D	Er   c                V   . p\         P                  ! VP                  R 4       \        V^*4      pV P	                  \         P
                  ! V4      ^*4       \         P                  ! VP                  R4       \         P                  P                  4        V P	                  V. RO4       R# )rp   ru   Nr   )r
   r  r7   r<   r   enterModuleContextr-   r  )r?   ro   r   s   &  r   test_enterModuleContext)TestModuleCleanUp.test_enterModuleContext  sw    !!(//:>Hb!44R8"=!!(//:>&&(#LMr   c                    ! R  R\         P                  4      pV P                  \        R4      ;_uu_ 4        \         P                  ! \        4       4       RRR4       V P                  \        R4      ;_uu_ 4        \         P                  ! \        4       4       RRR4       V P                  \        R4      ;_uu_ 4        \         P                  ! \        4       4       RRR4       V P                  \         P                  P                  . 4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lb; i)c                   &   a  ] tR tRt o R tRtV tR# )JTestModuleCleanUp.test_enterModuleContext_arg_errors.<locals>.TestableTesti  c                    R # r	   r   rD   s   &r   rb   VTestModuleCleanUp.test_enterModuleContext_arg_errors.<locals>.TestableTest.testNothing  rd   r   r   Nre   rN   s   @r   rf   r"    rg   r   rf   r   N)r
   r~   r   r   r  rQ   rS   rY   r   r-   r  r  s   & r   "test_enterModuleContext_arg_errors4TestModuleCleanUp.test_enterModuleContext_arg_errors  s    	8,, 	 ##I/DEE''(9(;< F##I/DEE''
5 F##I/DEE''	4 F 	77< FEEEEEs#   D=D(D;D%	(D8	;E	r   N)r   r   r   r   r  r  r  r0  r\  rm  r  r  r  r  r  r  r  r  r  r  r%  r   rM   rN   s   @r   r  r  ^  so     =0=,<%=NI=V=2=@'=R+/Z@,A*LBL<M4^-E^	N= =r   r  c                      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]P"                  ]P$                  ! 4       R 4       4       tR tR tR tRtV tR# )Test_TextTestRunneri  zTests for TextTestRunner.c                    \         P                  P                  R 4      V n        V P                  '       d   \         P                  R  R# R# PYTHONWARNINGSN)osenvirongetpythonwarningsrD   s   &r   r   Test_TextTestRunner.setUp  s8     !jjnn-=>

+, r   c                h    V P                   '       d    V P                   \        P                  R &   R# R# r*  )r/  r,  r-  rD   s   &r   r   Test_TextTestRunner.tearDown  s(    +/+>+>BJJ'( r   c                   \         P                  ! 4       pV P                  VP                  4       V P                  VP                  4       V P                  VP                  ^4       V P                  VP                  R4       V P                  VP                  4       V P                  VP                  \         P                  4       V P                  VP                  4       V P                  VP                  4       R# ri   )r
   r   r   failfastbufferr   	verbositywarningsr   descriptionsr   TextTestResult	tb_localsassertIsNone	durations)r?   r/   s   & r   	test_initTest_TextTestRunner.test_init  s    ((*)'))1-$/++,++X-D-DE))*&**+r   c                   a  ! V3R  lR\         P                  4      o ! R R\         P                  S4      pV! RR^4       R# )c                   6   <a a ] tR tRt oVV 3R ltRtVtV ;t# )>Test_TextTestRunner.test_multiple_inheritance.<locals>.AResulti  c                (   < \         SV `  WV4       R # r	   )superr@   )r?   r   r8  r6  AResult	__class__s   &&&&r   r@   GTest_TextTestRunner.test_multiple_inheritance.<locals>.AResult.__init__  s    gt-fINr   r   )r   r   r   r   r@   r   rM   __classcell__)rE  rO   rD  s   @@r   rD  rA    s     O Or   rD  c                       ] tR tRtRtR# )BTest_TextTestRunner.test_multiple_inheritance.<locals>.ATextResulti  r   Nr   r   r   r   ATextResultrI    r  r   rJ  N)r
   r   r9  )r?   rJ  rD  s   & @r   test_multiple_inheritance-Test_TextTestRunner.test_multiple_inheritance  s9    	Oh)) 	O	(117 	
 	D$"r   c                l  a  ! R  R\         P                  4      p\         P                  ! 4       o\         P                  ! \        P
                  ! 4       RRR7      pV3R lVn        VP                  V! R4      4       V P                  SP                  4       V P                  SP                  4       R# )c                   &   a  ] tR tRt o R tRtV tR# )7Test_TextTestRunner.testBufferAndFailfast.<locals>.Testi  c                    R # r	   r   rD   s   &r   testFoo?Test_TextTestRunner.testBufferAndFailfast.<locals>.Test.testFoo  rd   r   r   Nr   r   r   r   rQ  r   rM   rN   s   @r   TestrO    rg   r   rT  T)r   r4  r5  c                     < S # r	   r   r   s   r   <lambda>;Test_TextTestRunner.testBufferAndFailfast.<locals>.<lambda>      Vr   rQ  N)r
   r~   r   r   r   r   _makeResultr*   r   r4  r5  )r?   rT  r/   r   s   &  @r   testBufferAndFailfast)Test_TextTestRunner.testBufferAndFailfast  s|    	8$$ 	 $$&((046 ,

4	?#(&r   c                    \         P                  ! \        P                  ! 4       R R7      pVP	                  \         P
                  ! 4       4      pV P                  R VP                  4       R# )T)r   r:  N)r
   r   r   r   r*   r%   r   r:  )r?   r/   r   s   &  r   test_localsTest_TextTestRunner.test_locals  sG    ((NH..01v//0r   c                  a aa  ! R  R\         P                  4      p\         P                  P                  oV3R lpS P	                  V4       \         P
                  ! 4       o\         P                  ! \        P                  ! 4       R7      pV3R lVn	        ^ S n
        VV 3R lpV\         P                  n        VP                  \         P                  ! 4       4       S P                  S P                  ^4       R# )c                   &   a  ] tR tRt o R tRtV tR# );Test_TextTestRunner.testRunnerRegistersResult.<locals>.Testi  c                    R # r	   r   rD   s   &r   rQ  CTest_TextTestRunner.testRunnerRegistersResult.<locals>.Test.testFoo  rd   r   r   NrS  rN   s   @r   rT  ra    rg   r   rT  c                  2   < S \         P                  n        R # r	   )r
   r/   registerResult)originalRegisterResults   r   r:   >Test_TextTestRunner.testRunnerRegistersResult.<locals>.cleanup  s    -CHOO*r   )r   c                     < S # r	   r   r   s   r   rV  ?Test_TextTestRunner.testRunnerRegistersResult.<locals>.<lambda>  rX  r   c                 ^   < S;P                   ^,          un         SP                  V S4       R# ri   )wasRegisteredr   )
thisResultr   r?   s   &r   fakeRegisterResultITest_TextTestRunner.testRunnerRegistersResult.<locals>.fakeRegisterResult  s$    !#Z0r   N)r
   r~   r/   re  r   r   r   r   r   rY  rk  r*   r%   r   )r?   rT  r:   r/   rm  rf  r   s   f    @@r   testRunnerRegistersResult-Test_TextTestRunner.testRunnerRegistersResult  s    	8$$ 	 "*!?!?	D $$&((>+	1 *<&

8%%'(++Q/r   c                   aa  ! R  R\         4      o ! VV3R lR\        P                  4      oS! 4       pVP                  \        P                  ! 4       4       R# )c                   *   a  ] tR tRt o RtR tRtV tR# )bTest_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun.<locals>.OldTextResulti  r#   c                    R # r	   r   rD   s   &r   printErrorsnTest_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun.<locals>.OldTextResult.printErrors  rd   r   r   Nr   r   r   r   
separator2ru  r   rM   rN   s   @r   OldTextResultrs         J r   ry  c                   B   <a a ] tR tRt oVV 3R ltV3R ltRtVtV ;t# )[Test_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun.<locals>.Runneri  c                L   < \         SV `  \        P                  ! 4       4       R # r	   )rC  r@   r   r   )r?   RunnerrE  s   &r   r@   dTest_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun.<locals>.Runner.__init__  s    fd,R[[];r   c                   < S! 4       # r	   r   )r?   ry  s   &r   rY  gTest_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun.<locals>.Runner._makeResult  s    $&r   r   	r   r   r   r   r@   rY  r   rM   rG  )rE  rO   ry  r~  s   @@r   r~  r|    s     <' 'r   r~  N)r   r
   r   r*   r%   )r?   r/   ry  r~  s   & @@r   7test_works_with_result_without_startTestRun_stopTestRunKTest_TextTestRunner.test_works_with_result_without_startTestRun_stopTestRun  sE    	? 	
	' 	'X,, 	' 

8%%'(r   c                   aa  ! R  R\         4      o ! VV3R lR\        P                  4      o. pS! V4      pVP                  \        P                  ! 4       4       RR.pV P                  W4       R# )c                   *   a  ] tR tRt o RtR tRtV tR# )STest_TextTestRunner.test_startTestRun_stopTestRun_called.<locals>.LoggingTextResulti  r#   c                    R # r	   r   rD   s   &r   ru  _Test_TextTestRunner.test_startTestRun_stopTestRun_called.<locals>.LoggingTextResult.printErrors  rd   r   r   Nrw  rN   s   @r   LoggingTextResultr    rz  r   r  c                   B   <a a ] tR tRt oVV 3R ltV3R ltRtVtV ;t# )OTest_TextTestRunner.test_startTestRun_stopTestRun_called.<locals>.LoggingRunneri  c                X   < \         SV `  \        P                  ! 4       4       Wn        R # r	   )rC  r@   r   r   _events)r?   eventsLoggingRunnerrE  s   &&r   r@   XTest_TextTestRunner.test_startTestRun_stopTestRun_called.<locals>.LoggingRunner.__init__  s    mT3BKKMB%r   c                (   < S! V P                   4      # r	   r  )r?   r  s   &r   rY  [Test_TextTestRunner.test_startTestRun_stopTestRun_called.<locals>.LoggingRunner._makeResult  s    (66r   r  r  )rE  rO   r  r  s   @@r   r  r    s     &7 7r   r  startTestRunstopTestRunN)r   r
   r   r*   r%   r   )r?   r  r/   expectedr  r  s   &   @@r   $test_startTestRun_stopTestRun_called8Test_TextTestRunner.test_startTestRun_stopTestRun_called   sd    	 	
	7 	7H33 	7 v&

8%%'("M2*r   c                v   \         P                  ! R 4      p\        P                  ! V4      p\	        ^\
        P                  ^,           4       Fg  p\
        P                  ! W#4      p\
        P                  ! V4      pV P                  VP                  P                  4       VP                  4       4       Ki  	  R# )r   N)r   r   r
   r   rangepickleHIGHEST_PROTOCOLdumpsloadsr   r   r  )r?   r   r/   protocolsobjs   &     r   test_pickle_unpickle(Test_TextTestRunner.test_pickle_unpickle  s}     U#((0a!8!81!<=HV.A,,q/CSZZ002FOO4EF	 >r   c                   R  p\        4       p\        4       p\        4       p\        P                  ! W#VVR7      pV P                  VP                  V4       VP
                  W43pV P                  VP                  4       V4       R# )c                      V # r	   r   )rm   s   *r   MockResultClass=Test_TextTestRunner.test_resultclass.<locals>.MockResultClass   s    Kr   )r   N)r  r
   r   r   r   r   rY  )r?   r  STREAMDESCRIPTIONS	VERBOSITYr/   expectedresults   &      r   test_resultclass$Test_TextTestRunner.test_resultclass  sq    	xH	((y5DF++_= --A++-~>r   c                    R p\        \        P                  \        P                  \        P                  P                  \        4      R7      p\        P                  ! \        P                  RR.3/ VB pV;_uu_ 4        V! V4      w  rERRR4       V P                  RX4       V P                  \        X4      ^
4       R F$  pV P                  VP                  V4      ^4       K&  	  R F$  pV P                  VP                  V4      ^4       K&  	  \        P                  RR.\        P                  RRR.\        P                  R	R.3pV Fd  p\        P                  ! V3/ VB pV;_uu_ 4        V! V4      w  rERRR4       V P                  RV4       V P                  \        V4      ^ 4       Kf  	  \        P                  ! \        P                  RR
.3/ VB pV;_uu_ 4        V! V4      w  rERRR4       V P                  RV4       V P                  \        V4      ^4       R F$  pV P                  VP                  V4      ^4       K&  	  R#   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i)z`
Check that warnings argument of TextTestRunner correctly affects the
behavior of the warnings.
c                 f    V P                  4        Uu. uF  qP                  4       NK  	  up# u upi r	   )communicater{  )pbs   & r   get_parse_out_err<Test_TextTestRunner.test_warnings.<locals>.get_parse_out_err5  s$    ,-MMO<OqLLNO<<<s   .)stdoutstderrcwdz-Ez_test_warnings.pyNs   OKignorez-Waz-Wialways)   dw   iw   uw)   rw)r  r  r  r  )r   
subprocessPIPEr,  pathdirname__file__Popenr.  
executabler   r   r`  count)	r?   r  optsr  outerrmsg	args_listrm   s	   &        r   test_warnings!Test_TextTestRunner.test_warnings,  s   	=:??:??13 cnnd4GHQDQQ(+HC eS!S2&(CSYYs^Q/ )CSYYs^Q/ 
 ^^0(;^^U$7B^^U$78
	 D  ..A,Q/ MM%%SXq)  cnn.A8L %#%Q(+HC eS!S2&/CSYYs^Q/ 0I QQ,  Qs$   I4I**I=I'	*I:=J	c                   \         P                  p\        P                  ! 4       pV\         n         \        P
                  ! 4       pV P                  VP                  P                  VJ 4       V\         n        R #   T\         n        i ; ir	   )r.  r  r   r   r
   r   r   r   )r?   
old_stderrfr/   s   &   r   %testStdErrLookedUpAtInstantiationTime9Test_TextTestRunner.testStdErrLookedUpAtInstantiationTimec  sZ    ZZ
KKM
	$,,.FOOFMM00A56#CJCJs   <A; ;Bc                    \         P                  ! 4       p\        P                  ! V4      pV P	                  VP
                  P
                  VJ 4       R # r	   )r   r   r
   r   r   r   )r?   r  r/   s   &  r   testSpecifiedStreamUsed+Test_TextTestRunner.testSpecifiedStreamUsedn  s8    KKM((+,,12r   c                  a  R R/V 3R llp ! R R\         P                  4      pV! V! R4      RR7        ! R R\         P                  4      pV! V! R4      RR7        ! R R\         P                  4      pV! V! R4      RR7        ! R	 R\         P                  4      pV! V! R4      RR7        ! R
 R\         P                  4      pV! V! R4      RR7       R# )expect_durationsTc                   < \        4       p\        P                  ! V^^R7      pVP                  V 4      pSP	                  VP
                  ^4       VP                  4        VP                  4       pRpV'       dK   SP	                  \        VP                  4      ^4       SP                  RV4       SP                  WV4       R# SP	                  \        VP                  4      ^ 4       SP                  RV4       SP                  WV4       R# )   )r   r<  r6  z\n\d+.\d\d\dszSlowest test durationsN)r   r
   r   r*   r   r<  flushr  r`  collectedDurationsr   assertRegexassertNotInassertNotRegex)r   r  r   r/   r   textregexr?   s   &$     r   r*   /Test_TextTestRunner.test_durations.<locals>.runu  s    #%F,,FaSTUFZZ%FV--q1LLN??$D$E  V%>%>!?C6=  -  V%>%>!?C  !94@##D0r   c                   &   a  ] tR tRt o R tRtV tR# )/Test_TextTestRunner.test_durations.<locals>.Fooi  c                    R # r	   r   rD   s   &r   test_16Test_TextTestRunner.test_durations.<locals>.Foo.test_1  rd   r   r   Nr   r   r   r   r  r   rM   rN   s   @r   Foor    rg   r   r  r  )r  c                   &   a  ] tR tRt o R tRtV tR# )r  i  c                *    V P                  ^ ^4       R# )r   N)r   rD   s   &r   r  r    s      A&r   r   Nr  rN   s   @r   r  r    s     ' 'r   c                   &   a  ] tR tRt o R tRtV tR# )r  i  c                    ^^ ,           R# ri   r   rD   s   &r   r  r        Ar   r   Nr  rN   s   @r   r  r    s      r   c                   0   a  ] tR tRt o R t]tR tRtV tR# )r  i  c                    ^^ ,           R# ri   r   rD   s   &r   r   5Test_TextTestRunner.test_durations.<locals>.Foo.setUp  r  r   c                    R # r	   r   rD   s   &r   r  r    rd   r   r   N)	r   r   r   r   r   r   r  r   rM   rN   s   @r   r  r    s     H r   c                   P   a  ] tR tRt o ]P
                  ! R4      R 4       tRtV tR# )r  i  reasonc                    R # r	   r   rD   s   &r   r  r    s    r   r   N)	r   r   r   r   r
   skipr  r   rM   rN   s   @r   r  r    s      ]]8$ %r   FN)r
   r~   )r?   r*   r  s   f  r   test_durations"Test_TextTestRunner.test_durationst  s    	1$ 	1$	(## 	 	CMD1	'(## 	' 	CMD1	(## 	 	CMD1	(## 	 	CMD1	(## 	
 	CME2r   )r/  rk  N)r   r   r   r   __doc__r   r   r=  rK  rZ  r]  ro  r  r  r  r  r   r   requires_subprocessr  r  r  r  r   rM   rN   s   @r   r(  r(    s     #-?
	,
#'1
0.) +(	G?     "30 # !30j	$383 83r   r(  )F)!r   r,  r.  r  r  r   r   r
   unittest.caser   test.test_unittest.supportr   r   r   r   r   	Exceptionr   r   r   r1   r:   r<   rQ   rS   rY   r~   r]   force_not_colorized_test_classr   r  r(  mainr   r   r   <module>r     s&   	 	 
     " !9
	) 	 (0:'=X^2FkR!"(
% 
%	 	  
h-(## h-V 	'']Dx(( ]D (]D@ 	''~=)) ~= (~=BL3(++ L3` zMMO r   