+
    Bi=                     >   ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t
 ^ RIHt ^ RIHt R tR t ! R R]P                   P"                  4      t ! R	 R
]P&                  4      t ! R R]4      t ! R R]4      t]R8X  d   ]P0                  ! 4        R# R# )    N)utils)mock)patchc                  D    \         P                  P                  R 4       R # N)asyncioevents_set_event_loop_policy     5/usr/lib/python3.14/test/test_asyncio/test_runners.pytearDownModuler      s    NN))$/r   c                  0    \         P                  ! 4        R # r   )_threadinterrupt_mainr   r   r   interrupt_selfr      s    r   c                   8   a  ] tR t^t o R tR tR tR tRtV t	R# )
TestPolicyc                     Wn         R V n        R # r   )loop_factoryloop)selfr   s   &&r   __init__TestPolicy.__init__   s    (	r   c                    \         hr   )RuntimeErrorr   s   &r   get_event_loopTestPolicy.get_event_loop   s    r   c                "    V P                  4       # r   r   r   s   &r   new_event_loopTestPolicy.new_event_loop    s      ""r   c                    Ve	   Wn         R # R # r   r   )r   r   s   &&r   set_event_loopTestPolicy.set_event_loop#   s     I r   )r   r   N)
__name__
__module____qualname____firstlineno__r   r   r"   r&   __static_attributes____classdictcell____classdict__s   @r   r   r      s     # r   r   c                   D   a a ] tR t^*t oR tV 3R ltV 3R ltRtVtV ;t	# )BaseTestc                N  a \         P                  ! 4       o\        P                  ! 4       Sn        \        P                  ! 4       Sn        R SP
                  n        \        P                  ! 4       Sn        RSP                  P                  n        RSn	        V3R lpVSn
        S# )NFc                     <"   R S n         R# 5iTN)shutdown_ag_runr%   s   r   shutdown_asyncgens-BaseTest.new_loop.<locals>.shutdown_asyncgens6   s     #'D s   
r   )r   BaseEventLoopr   Mock_process_events_write_to_selfreturn_value	_selectorselectr5   r6   )r   r6   r   s   & @r   new_loopBaseTest.new_loop,   st    $$&#yy{"iik+/(-/*$	("4r   c                   < \         SV `  4        \        V P                  4      p\        P
                  P                  V4       R # r   )supersetUpr   r?   r   r	   r
   r   policy	__class__s   & r   rC   BaseTest.setUp<   s,    DMM*--f5r   c                V  < \         P                  P                  4       pVP                  eO   V P	                  VP                  P                  4       4       V P	                  VP                  P                  4       \         P                  P                  R 4       \        SV `%  4        R # r   )
r   r	   _get_event_loop_policyr   
assertTrue	is_closedr5   r
   rB   tearDownrD   s   & r   rL   BaseTest.tearDownB   sk    668;;"OOFKK1134OOFKK778--d3r   r   )
r(   r)   r*   r+   r?   rC   rL   r,   r-   __classcell__rF   r/   s   @@r   r1   r1   *   s      6 r   r1   c                   h   a  ] tR t^Lt 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V tR# )RunTestsc                b    R  pV P                  \        P                  ! V! 4       4      ^*4       R# )c                  N   "   \         P                  ! ^ 4      G Rj  xL
  ^*#  L5ir   Nr   sleepr   r   r   main.RunTests.test_asyncio_run_return.<locals>.mainO        --""" #   %#%N)assertEqualr   runr   rW   s   & r   test_asyncio_run_return RunTests.test_asyncio_run_returnN   s$    	 	TV,b1r   c                    R  pV P                  \        R4      ;_uu_ 4        \        P                  ! V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                  `   "   \         P                  ! ^ 4      G Rj  xL
  \        R4      h L5i)r   Nspam)r   rV   
ValueErrorr   r   r   rW   .RunTests.test_asyncio_run_raises.<locals>.mainV   s'     --"""V$$ #s   .,.rb   N)assertRaisesRegexrc   r   r\   r]   s   & r   test_asyncio_run_raises RunTests.test_asyncio_run_raisesU   s9    	% ##J77KK 8777s   AA	c           
     ,   ^R 0 Fc  pV P                  VR7      ;_uu_ 4        V P                  \        R4      ;_uu_ 4        \        P                  ! V4       RRR4       RRR4       Ke  	  R#   + '       g   i     L; i  + '       g   i     K  ; i)   c                      R # r   r   r   r   r   <lambda>5RunTests.test_asyncio_run_only_coro.<locals>.<lambda>^   s    Tr   )objan awaitable is requiredN)subTestre   	TypeErrorr   r\   )r   os   & r   test_asyncio_run_only_coro#RunTests.test_asyncio_run_only_coro]   sn    \"A!$$**9+EG GAG %$ #G G %$$s#   BA/B/A?:BBc                f  a  V 3R  lp\         P                  ! V! R4      RR7       \         P                  ! V! R4      RR7       \        P                  ! RR 4      ;_uu_ 4        \         P                  ! V! R4      4       \         P                  ! V! R4      RR7       RRR4       \        P                  ! RR 4      ;_uu_ 4        \         P                  ! V! R4      RR7       \         P                  ! V! R4      4       RRR4       R#   + '       g   i     Lu; i  + '       g   i     R# ; i)c                 z   <"   \         P                  ! 4       pSP                  VP                  4       V 4       R # 5ir   )r   r   assertIs	get_debug)expectedr   r   s   & r   rW   -RunTests.test_asyncio_run_debug.<locals>.maine   s)     ))+DMM$..*H5s   8;FdebugTz!asyncio.coroutines._is_debug_modec                      R # )Tr   r   r   r   rk   1RunTests.test_asyncio_run_debug.<locals>.<lambda>k   s    Tr   Nc                      R # )Fr   r   r   r   rk   r}   n   s    Ur   )r   r\   r   r   r]   s   f r   test_asyncio_run_debugRunTests.test_asyncio_run_debugd   s    	6 	DKu-DJd+ZZ;\JJKKT
#KKU51 K ZZ;]KKKKT
$/KKU$ LK KJ LKKs   $;D;DD	D0	c                   a V3R  loV P                  \        R4      ;_uu_ 4        \        P                  ! S! 4       4       RRR4       R#   + '       g   i     R# ; i)c                     <"   S! 4       p  \         P                  ! V 4       V P                  4        R #   T P                  4        i ; i5ir   )r   r\   close)cororW   s    r   rW   9RunTests.test_asyncio_run_from_running_loop.<locals>.mains   s0     6DD!



s   A	4 A	AA	zcannot be called from a runningN)re   r   r   r\   r]   s   &@r   "test_asyncio_run_from_running_loop+RunTests.test_asyncio_run_from_running_loopr   sK    	 ##L$EG GKKG G G Gs   AA	c                   aa R oR oVV3R lpV P                  \        P                  ! V! 4       4      ^{4       V P                  SP	                  4       4       R # )Nc                  N   "   \         P                  ! R 4      G Rj  xL
  R#  L5i皙?NrU   r   r   r   leftoverARunTests.test_asyncio_run_cancels_hanging_tasks.<locals>.leftover   s     --$$$rZ   c                  F   <"   \         P                  ! S ! 4       4      o^{# 5i{   )r   create_task)r   lo_tasks   r   rW   =RunTests.test_asyncio_run_cancels_hanging_tasks.<locals>.main   s     ))(*5Gs   !)r[   r   r\   rJ   done)r   rW   r   r   s   & @@r   &test_asyncio_run_cancels_hanging_tasks/RunTests.test_asyncio_run_cancels_hanging_tasks~   sA    	%	
 	TV,c2'r   c           
     j  aaa R o\         P                  ! 4       oR oVVV3R lpV P                  \        P                  ! V! 4       4      ^{4       V P                  SP                  4       4       SP                  R\        P                  ! R4      RSR\        P                  ! \        4      /4       R # )Nc                     "    \         P                  ! R 4      G Rj  xL
  R#  L  \         P                   d    ^^ ,            R# i ; i5ir   )r   rV   CancelledErrorr   r   r   r   HRunTests.test_asyncio_run_reports_hanging_tasks_errors.<locals>.leftover   s9     mmC((()) As1   A& $& A& AAAAc                  ~   <"   \         P                  ! 4       p SV n        \         P                  ! S! 4       4      o^{# 5ir   )r   get_running_loopcall_exception_handlerr   )r   call_exc_handler_mockr   r   s    r   rW   DRunTests.test_asyncio_run_reports_hanging_tasks_errors.<locals>.main   s3     ++-D*?D' ))(*5Gs   :=messagezasyncio.run.*shutdowntask	exception)r   r9   r[   r   r\   rJ   r   assert_called_with
test_utilsMockPatternMockInstanceOfZeroDivisionError)r   rW   r   r   r   s   & @@@r   -test_asyncio_run_reports_hanging_tasks_errors6RunTests.test_asyncio_run_reports_hanging_tasks_errors   s     $				 	TV,c2'00z--.FGG223DE2
 	r   c                  aaaaa R oR o ! R R\         4      oR oVV3R loVVV3R lpV P                  S4      ;_uu_ 4        \        P                  ! V! 4       4       R R R 4       V P	                  SP                  4       4       V P                  SP                  4       V P                  SP                  4       R #   + '       g   i     Lg; i)Nc                       ] tR t^tRtR# )SRunTests.test_asyncio_run_closes_gens_after_hanging_tasks_errors.<locals>.FancyExitr   N)r(   r)   r*   r+   r,   r   r   r   	FancyExitr      s    r   r   c                 Z   "    ^5x  \         P                  ! ^4      G Rj  xL
  K&   L5ir4   rU   r   r   r   fidgetPRunTests.test_asyncio_run_closes_gens_after_hanging_tasks_errors.<locals>.fidget   s     mmA&&&s    +)+c                     <"   S! 4       o S  R j  xL
  p K   LDR #   \         P                   d    ^^ ,            R # i ; i5ir   )r   r   )the_meaning_of_lifer   spinners    r   spinNRunTests.test_asyncio_run_closes_gens_after_hanging_tasks_errors.<locals>.spin   sI     hG18  -)) As<   A   AAA AAc                     <"   \         P                  ! 4       p \        P                  ! 4       V n        \         P
                  ! S! 4       4      oSh5ir   )r   r   r   r9   r   r   )r   r   lazyboyr   s    r   rW   NRunTests.test_asyncio_run_closes_gens_after_hanging_tasks_errors.<locals>.main   s;     ++-D*.))+D' ))$&1GOs   AA)
	ExceptionassertRaisesr   r\   rJ   r   assertIsNoneag_frameassertFalse
ag_running)r   rW   r   r   r   r   r   s   & @@@@@r   7test_asyncio_run_closes_gens_after_hanging_tasks_errors@RunTests.test_asyncio_run_closes_gens_after_hanging_tasks_errors   s    		 		'
		 y))KK * 	''**+++, *)s   B??C	c                    R  p\         P                  P                  4       p\        P                  ! 4       Vn        \         P                  ! V! 4       4       V P                  VP
                  P                  4       R# )c                  N   "   \         P                  ! ^ 4      G Rj  xL
  ^*#  L5irT   rU   r   r   r   rW   6RunTests.test_asyncio_run_set_event_loop.<locals>.main   rY   rZ   N)	r   r	   rI   r   r9   r&   r\   rJ   called)r   rW   rE   s   &  r   test_asyncio_run_set_event_loop(RunTests.test_asyncio_run_set_event_loop   sO    	 668 $		DF--445r   c                @  a a  ! R  R4      oR pVV 3R lp\         P                  P                  \        V4      4       S P	                  \         P
                  4      ;_uu_ 4        \         P                  ! V! 4       4       RRR4       R#   + '       g   i     R# ; i)c                   l   a  ] tR t^t o R tR tR tR t]R 4       t	R t
R tR tR	 tR
 tR tRtV tR# )8RunTests.test_asyncio_run_without_uncancel.<locals>.Taskc                B    \         P                  ! V3R V/VB V n        R# )r   N)r   Task_task)r   r   r   kwargss   &&&,r   r   ARunTests.test_asyncio_run_without_uncancel.<locals>.Task.__init__   s    $\\$DTDVD
r   c                :    V P                   P                  ! V/ VB # r   )r   cancelr   argsr   s   &*,r   r   ?RunTests.test_asyncio_run_without_uncancel.<locals>.Task.cancel       zz(($9&99r   c                :    V P                   P                  ! V/ VB # r   )r   add_done_callbackr   s   &*,r   r   JRunTests.test_asyncio_run_without_uncancel.<locals>.Task.add_done_callback   s    zz33TDVDDr   c                :    V P                   P                  ! V/ VB # r   )r   remove_done_callbackr   s   &*,r   r   MRunTests.test_asyncio_run_without_uncancel.<locals>.Task.remove_done_callback   s    zz66GGGr   c                .    V P                   P                  # r   )r   _asyncio_future_blockingr   s   &r   r   QRunTests.test_asyncio_run_without_uncancel.<locals>.Task._asyncio_future_blocking   s    zz:::r   c                :    V P                   P                  ! V/ VB # r   )r   resultr   s   &*,r   r   ?RunTests.test_asyncio_run_without_uncancel.<locals>.Task.result   r   r   c                :    V P                   P                  ! V/ VB # r   )r   r   r   s   &*,r   r   =RunTests.test_asyncio_run_without_uncancel.<locals>.Task.done   s    zz777r   c                :    V P                   P                  ! V/ VB # r   )r   	cancelledr   s   &*,r   r   BRunTests.test_asyncio_run_without_uncancel.<locals>.Task.cancelled       zz++T<V<<r   c                :    V P                   P                  ! V/ VB # r   )r   r   r   s   &*,r   r   BRunTests.test_asyncio_run_without_uncancel.<locals>.Task.exception   r   r   c                :    V P                   P                  ! V/ VB # r   )r   get_loopr   s   &*,r   r   ARunTests.test_asyncio_run_without_uncancel.<locals>.Task.get_loop       zz**D;F;;r   c                :    V P                   P                  ! V/ VB # r   )r   set_namer   s   &*,r   r   ARunTests.test_asyncio_run_without_uncancel.<locals>.Task.set_name   r   r   )r   N)r(   r)   r*   r+   r   r   r   r   propertyr   r   r   r   r   r   r   r,   r-   r.   s   @r   r   r      sS     E:EH ; ;:8==<< <r   r   c                  |   "   \        4        \        P                  ! 4       P                  4       G R j  xL
  R #  L5ir   )r   r   Eventwaitr   r   r   rW   8RunTests.test_asyncio_run_without_uncancel.<locals>.main   s#     --/&&(((s   1<:<c                  J   < SP                  4       p V P                  S4       V # r   )r?   set_task_factory)r   r   r   s    r   r"   BRunTests.test_asyncio_run_without_uncancel.<locals>.new_event_loop  s!    ==?D!!$'Kr   N)r   r	   r
   r   r   r   r\   )r   rW   r"   r   s   f  @r   !test_asyncio_run_without_uncancel*RunTests.test_asyncio_run_without_uncancel   se    !	< !	<F	)	
 	--j.HIw5566KK 7666s   &BB	c                   a a \         P                  ! 4       pS P                  4       ;oVn        VV 3R  lp\        P
                  ! V! 4       VR7       VP                  4        R# )c                  Z   <"   SP                  \        P                  ! 4       S 4       R # 5ir   )r[   r   r   )r   r   s   r   rW   4RunTests.test_asyncio_run_loop_factory.<locals>.main  s     W557>s   (+r!   N)r   r9   r?   r<   r   r\   assert_called_once_with)r   factoryrW   r   s   f  @r   test_asyncio_run_loop_factory&RunTests.test_asyncio_run_loop_factory
  sD    ))+&*mmo5w#	? 	DF1'')r   c                j   a  V 3R  lp\         P                  ! V! 4       \         P                  R7       R# )c                  
  <"   \         P                  R 8X  d6   S P                  \        P                  ! 4       \        P
                  4       R# S P                  \        P                  ! 4       \        P                  4       R# 5i)win32N)sysplatformassertIsInstancer   r   ProactorEventLoopSelectorEventLoopr   s   r   rW   ;RunTests.test_loop_factory_default_event_loop.<locals>.main  sP     ||w&%%g&>&>&@'B[B[\%%g&>&>&@'B[B[\s   B Br!   N)r   r\   	EventLoopr]   s   f r   $test_loop_factory_default_event_loop-RunTests.test_loop_factory_default_event_loop  s!    	] 	DF):):;r   r   N)r(   r)   r*   r+   r^   rf   rr   r   r   r   r   r   r   r   r   r  r,   r-   r.   s   @r   rQ   rQ   L   sH     2 %
 (6#-J
60 d*< <r   rQ   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RtV tR# )RunnerTestsi  c                    \         P                  ! R R7      ;_uu_ 4       pV P                  VP                  4       P	                  4       4       RRR4       R#   + '       g   i     R# ; i)Frz   N)r   Runnerr   r   rw   r   runners   & r   test_non_debugRunnerTests.test_non_debug!  s@    ^^%((FV__.88:; )(((   .AA)	c                    \         P                  ! R R7      ;_uu_ 4       pV P                  VP                  4       P	                  4       4       RRR4       R#   + '       g   i     R# ; i)Trz   N)r   r  rJ   r   rw   r  s   & r   
test_debugRunnerTests.test_debug%  s>    ^^$''6OOFOO-779: ('''r  c                   a \         P                  ! 4       o\        P                  ! V3R  lR7      ;_uu_ 4       pV P	                  VP                  4       S4       RRR4       R#   + '       g   i     R# ; i)c                     < S # r   r   r%   s   r   rk   1RunnerTests.test_custom_factory.<locals>.<lambda>+  s    r   r!   N)r   r9   r   r  rv   r   r   r  r   s   & @r   test_custom_factoryRunnerTests.test_custom_factory)  sC    yy{^^66&MM&//+T2 7666s   !A%%A6	c           	        R  p\         P                  ! 4       ;_uu_ 4       pV P                  RVP                  V! 4       4      4       VP	                  4       pRRR4       V P                  \        R4      ;_uu_ 4        XP	                  4        RRR4       V P                  XP                  4       4       R#   + '       g   i     Lh; i  + '       g   i     LD; i)c                  N   "   \         P                  ! ^ 4      G Rj  xL
  R#  L5i)r   Nr   rU   r   r   r   fRunnerTests.test_run.<locals>.f/  s     --""" #rZ   r   NRunner is closed)	r   r  r[   r\   r   re   r   rJ   rK   )r   r!  r  r   s   &   r   test_runRunnerTests.test_run.  s    	 ^^VVZZ_5??$D  ##
 
 OO	
 	() 
 
s   7B8>C8C	C	c           	        \         P                  ! 4       ;_uu_ 4       pV P                  \        R 4      ;_uu_ 4        VP	                  ^{4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)rn   N)r   r  re   rp   r\   r  s   & r   test_run_non_coroRunnerTests.test_run_non_coro?  s[    ^^''*  

3	   s"   A4A!	A4!A1,A44B	c                   \         P                  ! 4       ;_uu_ 4       pVP                  4       P                  4       pVP	                  R 4       V P                  R VP                  V4      4       RRR4       R#   + '       g   i     R# ; i)r   N)r   r  r   create_future
set_resultr[   r\   )r   r  futs   &  r   test_run_futureRunnerTests.test_run_futureG  sY    ^^//#113CNN6"VVZZ_5 s   AA99B
	c           	          ! R  R4      p\         P                  ! 4       ;_uu_ 4       pV P                  RVP                  V! 4       4      4       RRR4       R#   + '       g   i     R# ; i)c                   6   a  ] tR tRt o R t]R 4       tRtV tR# )3RunnerTests.test_run_awaitable.<locals>.MyAwaitableiN  c                >    V P                  4       P                  4       # r   )r\   	__await__r   s   &r   r3  =RunnerTests.test_run_awaitable.<locals>.MyAwaitable.__await__O  s    xxz++--r   c                    "   R # 5i)r   r   r   r   r   r\   7RunnerTests.test_run_awaitable.<locals>.MyAwaitable.runR  s        r   N)	r(   r)   r*   r+   r3  staticmethodr\   r,   r-   r.   s   @r   MyAwaitabler1  N  s     .  r   r9  r   N)r   r  r[   r\   )r   r9  r  s   &  r   test_run_awaitableRunnerTests.test_run_awaitableM  sG    	 	 ^^VVZZ%>? s   'AA*	c                B   \         P                  ! 4       pVP                  4       pVP                  4        V P	                  \
        R 4      ;_uu_ 4        VP                  4        RRR4       V P                  VP                  4       4       R#   + '       g   i     L1; i)r#  N)r   r  r   r   re   r   rJ   rK   r  s   &  r   test_explicit_closeRunnerTests.test_explicit_closeY  sm    ! ##"
 
 OO	
 	()
 
s   BB	c                   \         P                  ! 4       pVP                  4       pVP                  4        V P	                  VP                  4       4       VP                  4        V P	                  VP                  4       4       R # r   )r   r  r   r   rJ   rK   r  s   &  r   test_double_closeRunnerTests.test_double_closee  sT    ! () 	()r   c           	       a . oV3R  lp\         P                  ! 4       pV;_uu_ 4        VP                  V! ^4      4       RRR4       V P                  \        R4      ;_uu_ 4        V;_uu_ 4        VP                  V! ^4      4       RRR4       RRR4       V P                  ^.S4       R#   + '       g   i     Lv; i  + '       g   i     L@; i  + '       g   i     LK; i)c                 2   <"   SP                  V 4       R # 5ir   )append)argrets   &r   r!  4RunnerTests.test_second_with_block_raises.<locals>.fs  s     JJsOs   Nr#  )r   r  r\   re   r   r[   )r   r!  r  rF  s   &  @r   test_second_with_block_raises)RunnerTests.test_second_with_block_raisesp  s    	 !VJJqt  ##
 
 

1Q4  	
 	!c" V 	
 
s/   B/'C2C	
C/B?	CCC%	c           
       a \         P                  ! R RR7      oV3R lpR p\        P                  ! 4       ;_uu_ 4       pV P	                  RVP                  V! ^4      4      4       V P	                  ^VP                  V! ^4      4      4       V P	                  ^VP                  V! 4       4      P                  S4      4       RRR4       R#   + '       g   i     R# ; i)cvar)defaultc                    <"   SP                  4       p\        P                  ! ^ 4      G Rj  xL
  SP                  V 4       V#  L5irT   )getr   rV   set)valoldrK  s   & r   r!  -RunnerTests.test_run_keeps_context.<locals>.f  s8     ((*C--"""HHSMJ #s   *AAAc                  4   "   \         P                  ! 4       # 5ir   )contextvarscopy_contextr   r   r   get_context7RunnerTests.test_run_keeps_context.<locals>.get_context  s     ++--s   N)rT  
ContextVarr   r  r[   r\   rN  )r   r!  rV  r  rK  s   &   @r   test_run_keeps_context"RunnerTests.test_run_keeps_context  s    %%fb9		. ^^RAaD!12Q

1Q4 01Q

;= 9 = =d CD	 s    BCC	c                  aa R  oVV3R lp\         P                  ! 4       ;_uu_ 4       oV P                  \        R4      ;_uu_ 4        V P	                  \
        \        P                  ! R4      4      ;_uu_ 4        SP                  V! 4       4       RRR4       RRR4       RRR4       R#   + '       g   i     L"; i  + '       g   i     L-; i  + '       g   i     R# ; i)c                     "   R # 5ir   r   r   r   r   g)RunnerTests.test_recursive_run.<locals>.g       r7  c                  <   <"   SP                  S ! 4       4       R # 5ir   )r\   )r^  r  s   r   r!  )RunnerTests.test_recursive_run.<locals>.f  s     JJqsOs   zcoroutine .+ was never awaitedz7Runner.run() cannot be called from a running event loopN)	r   r  assertWarnsRegexRuntimeWarningre   r   reescaper\   )r   r!  r^  r  s   & @@r   test_recursive_runRunnerTests.test_recursive_run  s    		 ^^&&0  ++ IIQ  JJqsO	 
 	  s;   C	3C 	<B-C 	C-B=8C 	 CCC$	c           	     n  a  V 3R  lp\         P                  ! 4       ;_uu_ 4       pVP                  4       P                  R\        4       S P                  \        4      ;_uu_ 4        VP                  V! 4       4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)c                     <"   S P                  \        P                  4      ;_uu_ 4         \        P                  ! ^ 4      G Rj  xL
  K!   L  + '       g   i     M; i\        P                  ! 4       h5ir4   )r   r   r   rV   r   s   r   r   2RunnerTests.test_interrupt_call_soon.<locals>.coro  sL     ""7#9#9::!--*** ;: ((**s"   (A7AAAA	A7r   N)r   r  r   
call_laterr   r   KeyboardInterruptr\   r   r   r  s   f  r   test_interrupt_call_soon$RunnerTests.test_interrupt_call_soon  sp    
	+ ^^OO((n=""#455

46" 6 55 s$   AB#'B	>B#B B##B4	c           	       a  V 3R  lp\         P                  ! 4       ;_uu_ 4       pVP                  4       P                  4       pVP                  4       P	                  R\
        4       S P                  \        4      ;_uu_ 4        VP                  V! V4      4       RRR4       S P                  VP                  4       4       RRR4       R#   + '       g   i     L9; i  + '       g   i     R# ; i)c                    <"   SP                  \        P                  4      ;_uu_ 4        V G R j  xL
  R R R 4       \        P                  ! 4       h L!  + '       g   i     L'; i5ir   )r   r   r   )r,  r   s   &r   r   -RunnerTests.test_interrupt_wait.<locals>.coro  sE     ""7#9#9::		 ;((**  ;:s+   (A(AAAA(AA%	 A(r   N)r   r  r   r*  rl  r   r   rm  r\   rJ   r   )r   r   r  r,  s   f   r   test_interrupt_waitRunnerTests.test_interrupt_wait  s    	+
 ^^//#113COO((n=""#455

49% 6 OOCMMO,  65	 s$   A C!C	'C!CC!!C2	c           	     @  a R  oV3R lp\         P                  ! 4       ;_uu_ 4       pV P                  \         P                  4      ;_uu_ 4        VP	                  V! 4       4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)c                    "   \         P                  ! ^ 4      G Rj  xL
  V P                  4        \        4        R#  L 5irT   )r   rV   r   r   )r   s   &r   subtask:RunnerTests.test_interrupt_cancelled_task.<locals>.subtask  s+     --"""KKM #s   ?=!?c                     <"   \         P                  ! S ! \         P                  ! 4       4      4       \         P                  ! ^
4      G Rj  xL
  R#  L5i)
   N)r   r   current_taskrV   )rx  s   r   r   7RunnerTests.test_interrupt_cancelled_task.<locals>.coro  s4     (<(<(> ?@--###s   A	AAAN)r   r  r   r   r\   )r   r   r  rx  s   &  @r   test_interrupt_cancelled_task)RunnerTests.test_interrupt_cancelled_task  sc    	
	$ ^^""7#9#9::

46" ; :: s#   (BA9	'B9B	BB	c           	     @   R  p\         P                  ! 4       ;_uu_ 4       p\        P                  ! \        R\        R4      R7      ;_uu_ 4        VP                  V! 4       4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)c                     "   R # 5ir   r   r   r   r   r   >RunnerTests.test_signal_install_not_supported_ok.<locals>.coro  r`  r7  signalz8signal only works in main thread of the main interpreter)side_effectN)r   r  r   objectr  rc   r\   rn  s   &  r   $test_signal_install_not_supported_ok0RunnerTests.test_signal_install_not_supported_ok  sn    	 ^^&N  

46"   s#   /BA9	'B9B	BB	c                j   R  p\         P                  P                  4       p\        P                  ! 4       Vn        \         P                  ! 4       pVP                  V! 4       4       VP                  V! 4       4       V P                  ^VP
                  P                  4       VP                  4        R# )c                     "   R # 5ir   r   r   r   r   r   9RunnerTests.test_set_event_loop_called_once.<locals>.coro  r`  r7  N)r   r	   rI   r   r9   r&   r  r\   r[   
call_countr   )r   r   rE   r  s   &   r   test_set_event_loop_called_once+RunnerTests.test_set_event_loop_called_once  sv    	 668 $		!

46

46F11<<=r   c                   a  ! R  R4      oV3R lp\         P                  ! 4       ;_uu_ 4       pVP                  V! 4       4      pRRR4       V P                  ^ XP                  4       R#   + '       g   i     L.; i)c                   8   a a ] tR tRt oR tV 3R ltRtVtV ;t# )ERunnerTests.test_no_repr_is_call_on_the_task_result.<locals>.MyResulti  c                    ^ V n         R# rT   
repr_countr   s   &r   r   NRunnerTests.test_no_repr_is_call_on_the_task_result.<locals>.MyResult.__init__  s	    "#r   c                R   < V ;P                   ^,          un         \        SV `	  4       # )ri   )r  rB   __repr__)r   rF   s   &r   r  NRunnerTests.test_no_repr_is_call_on_the_task_result.<locals>.MyResult.__repr__   s    1$w'))r   r  )	r(   r)   r*   r+   r   r  r,   r-   rN   rO   s   @@r   MyResultr    s     $* *r   r  c                     <"   S ! 4       # 5ir   r   )r  s   r   r   ARunnerTests.test_no_repr_is_call_on_the_task_result.<locals>.coro  s     :s   N)r   r  r\   r[   r  )r   r   r  r   r  s   &   @r   'test_no_repr_is_call_on_the_task_result3RunnerTests.test_no_repr_is_call_on_the_task_result  sY    	* 	*	 ^^ZZ'F  	F--. s   A,,A<	r   N)r(   r)   r*   r+   r  r  r  r$  r'  r-  r:  r=  r@  rH  rZ  rg  ro  rt  r~  r  r  r  r,   r-   r.   s   @r   r  r    sf     <;3
*" 6
@
*	*#&E$$(# -$#"#"/ /r   r  __main__)r   r   rT  re  r  r  	threadingunittesttest.test_asyncior   r   r   unittest.mockr   r   r   r	   _AbstractEventLoopPolicyr   TestCaser1   rQ   r  r(   rW   r   r   r   <module>r     s       	  
   1  088 (x   DP<x P<fl/( l/^ zMMO r   