Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
!A?hY N d dl Z d dlZd dlZd dlZddlmZ G d de ZdS ) N )TestCasec e Zd Zd fd Zd Zd Zd Zd Zd Zd Z d Z
d
Zd Zd Z
d
Zd Zd fd Z fdZd Z xZS )IsolatedAsyncioTestCaserunTestc t | d | _ t j | _ d S N)super__init___asyncioRunnercontextvarscopy_context_asyncioTestContext)self
methodName __class__s ,/usr/lib64/python3.11/unittest/async_case.pyr z IsolatedAsyncioTestCase.__init__# s:
$$$"#.#;#=#= c
K d S r r s r
asyncSetUpz"IsolatedAsyncioTestCase.asyncSetUp( r c
K d S r r r s r
asyncTearDownz%IsolatedAsyncioTestCase.asyncTearDown+ r r c ( | j |g|R i | d S r )
addCleanupr funcargskwargss r addAsyncCleanupz'IsolatedAsyncioTestCase.addAsyncCleanup. s) $1&11111r c K t | } |j }|j }n/# t $ r" t d|j d|j d dw xY w || d{V }| ||ddd |S )zEnters the supplied asynchronous context manager.
If successful, also adds its __aexit__ method as a cleanup
function and returns the result of the __aenter__ method.
'.zC' object does not support the asynchronous context manager protocolN)type
__aenter__ __aexit__AttributeError TypeError
__module____qualname__r" )r cmclsenterexitresults r enterAsyncContextz)IsolatedAsyncioTestCase.enterAsyncContext= s 2hh 'NE=DD ' ' ' U U U1A U U U "&
' ' uRyyT2tT4888
s " ,Ac | j | j | j | | j d S r )r get_loopr runsetUp
_callAsyncr r s r
_callSetUpz"IsolatedAsyncioTestCase._callSetUpQ sL
$$&&& $$TZ000(((((r c t | | "t j d| dt d d S d S )NzFIt is deprecated to return a value that is not None from a test case () )
stacklevel)_callMaybeAsyncwarningswarnDeprecationWarning)r methods r _callTestMethodz'IsolatedAsyncioTestCase._callTestMethodY sd ''3M 2(.2 2 23ERS
U
U
U
U
U
U 43r c x | | j | j | j d S r )r7 r r r5 tearDownr s r
_callTearDownz%IsolatedAsyncioTestCase._callTearDown^ s6 *+++ $$T]33333r c ( | j |g|R i | d S r )r= )r functionr r! s r _callCleanupz$IsolatedAsyncioTestCase._callCleanupb s+ X777777777r c | j
J d t j | s
J |d | j ||i || j S )N!asyncio runner is not initializedz is not an async functioncontextr inspectiscoroutinefunctionr5 r r s r r7 z"IsolatedAsyncioTestCase._callAsynce sz "..0S...*400VVT2V2V2VVV0"&&D$!&!!, '
r c | j
J d t j | r'| j ||i || j S | j j |g|R i |S )NrJ rK rM r s r r= z'IsolatedAsyncioTestCase._callMaybeAsyncm s "..0S...&t,, G&**d%f%%0 +
04+/FtFFFvFFFr c ` | j
J d t j d }|| _ d S )Nz%asyncio runner is already initializedT)debug)r asyncioRunnerr runners r _setupAsyncioRunnerz+IsolatedAsyncioTestCase._setupAsyncioRunnerw s: "**,S***d+++$r c <