+
    iw  c                   sL    ^ RI t ^ RIt^ RIt^ RIt^RIHt Rt ! R R]4      tR# )i    N)TestCaseTc                   s   a a ] tR t^
t oRtRV 3R ll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V 3R lltV 3R ltR tRtVtV ;t# )IsolatedAsyncioTestCaseNc                sh   < \         SV `  V4       R V n        \        P                  ! 4       V n        R # N)super__init___asyncioRunnercontextvarsZcopy_context_asyncioTestContext)selfZ
methodName	__class__   &&,/usr/lib64/python3.14/unittest/async_case.pyr   Z IsolatedAsyncioTestCase.__init__'   s)    $"#.#;#;#=     c                   "   R # 5ir    r      &r   
asyncSetUpZ"IsolatedAsyncioTestCase.asyncSetUp,           c                r   r   r   r   r   r   asyncTearDownZ%IsolatedAsyncioTestCase.asyncTearDown/   r   r   c               2    V P                   ! V.VO5/ VB  R # r   )Z
addCleanupr   Zfuncargskwargs   ""*,r   addAsyncCleanupZ'IsolatedAsyncioTestCase.addAsyncCleanup2   s     	$1&1r   c                sz  "   \        V4      p VP                  pVP                  pT! T4      G Rj  xL
 pT P                  YARRR4       T#   \         d_    R TP                   RTP
                   R2p TP                   TP                   TR,          pM  \         d     Mi ; i\        T4      Rhi ; i L5i)Z'Z.zC' object does not support the asynchronous context manager protocolzR but it supports the context manager protocol. Did you mean to use enterContext()?N)
typeZ
__aenter__Z	__aexit__ZAttributeError
__module____qualname__Z	__enter__Z__exit__Z	TypeErrorr   )r   ZcmZclsZenterZexitmsgresults   &&     r   enterAsyncContextZ)IsolatedAsyncioTestCase.enterAsyncContextA   s      2h	+NNE==D RyTtT48  	+s~~&a(8(8'9 :K KC?  > ? " 
 C.d*	+ !sI   B;A B;B9B;(B66B
B6B&#B6%B&&B66B;c                s    V P                   P                  4        V P                  P                  V P                  4       V P                  V P                  4       R # r   )r   Zget_loopr   runZsetUp
_callAsyncr   r   r   r   
_callSetUpZ"IsolatedAsyncioTestCase._callSetUp]   s>     	$$&  $$TZZ0(r   c                s    V P                  V4      pVe>   RV R\        V4      P                  : R23p\        P                  ! V\
        ^R7       R # R # )NzFIt is deprecated to return a value that is not None from a test case (z
 returned Z))Z
stacklevel)_callMaybeAsyncr   __name__warningsZwarnZDeprecationWarning)r   Zmethodr   r   s   &&  r   _callTestMethodZ'IsolatedAsyncioTestCase._callTestMethode   sZ    %%f-%%+HJtF|7L7L6OqRC MM#1a@ r   c                s    V P                  V P                  4       V P                  P                  V P                  4       R # r   )r"   r   r   r!   ZtearDownr   r   r   _callTearDownZ%IsolatedAsyncioTestCase._callTearDownn   s,    **+  $$T]]3r   c                r   r   )r$   )r   Zfunctionr   r   s   &&*,r   _callCleanupZ$IsolatedAsyncioTestCase._callCleanupr   s    X777r   c               s\    V P                   P                  V! V/ VB V P                  R 7      # )Zcontext)r   r!   r   r   r   r   r"   Z"IsolatedAsyncioTestCase._callAsyncu   s8     ""&&$!&!,, ' 
 	
r   c               s    \         P                  ! V4      '       d.   V P                  P                  V! V/ VB V P                  R 7      # V P                  P                  ! V.VO5/ VB # r*   )inspectZiscoroutinefunctionr   r!   r   r   r   r   r$   Z'IsolatedAsyncioTestCase._callMaybeAsync}   sj    &&t,,&&**d%f%00 +  
 ++//FtFvFFr   c                sV    \         P                  ! R V P                  R7      pWn        R# )T)debugloop_factoryN)asyncioZRunnerr-   r   r   Zrunner   & r   _setupAsyncioRunnerZ+IsolatedAsyncioTestCase._setupAsyncioRunner   s    d9J9JK$r   c                s>    V P                   pVP                  4        R # r   )r   Zcloser/   r0   r   _tearDownAsyncioRunnerZ.IsolatedAsyncioTestCase._tearDownAsyncioRunner   s    $$r   c                s   < V P                  4         \        SV `	  V4      V P                  4        #   T P                  4        i ; ir   )r1   r   r!   r2   )r   r   r	   r
   r   r!   ZIsolatedAsyncioTestCase.run   s9      "	*7;v&'')D'')s	   2 Ac                sd   < V P                  4        \        SV `	  4        V P                  4        R # r   )r1   r   r,   r2   )r   r	   s   &r   r,   ZIsolatedAsyncioTestCase.debug   s$      "##%r   c                sF    V P                   e   V P                  4        R # R # r   )r   r2   r   r   r   __del__ZIsolatedAsyncioTestCase.__del__   s    *'') +r   )r   r   )ZrunTestr   )r%   r   r   Z__firstlineno__r-   r   r   r   r   r    r#   r'   r(   r)   r"   r$   r1   r2   r!   r,   r3   Z__static_attributes__Z__classdictcell__Z__classcell__)r	   Z__classdict__s   @@r   r   r   
   sc     6 L>
28)A48
G%
*&
* *r   r   )r.   r   r+   r&   Zcaser    Z
__unittestr   r   r   r   <module>r4      s'        
T*h T*r   