Lines Matching refs:async
28 async def test_enter(self):
30 async def __aexit__(self, *args):
36 async with manager as context:
48 async def __aenter__(self):
50 async def __aexit__(self, exc_type, exc_value, traceback):
56 async def __aexit__(self, *args):
75 async def test_contextmanager_plain(self):
78 async def woohoo():
82 async with woohoo() as x:
89 async def test_contextmanager_finally(self):
92 async def woohoo():
99 async with woohoo() as x:
107 async def test_contextmanager_no_reraise(self):
109 async def whee():
117 async def test_contextmanager_trap_yield_after_throw(self):
119 async def whoo():
130 async def test_contextmanager_trap_no_yield(self):
132 async def whoo():
140 async def test_contextmanager_trap_second_yield(self):
142 async def whoo():
151 async def test_contextmanager_non_normalised(self):
153 async def whoo():
165 async def test_contextmanager_except(self):
168 async def woohoo():
175 async with woohoo() as x:
183 async def test_contextmanager_except_stopiter(self):
185 async def woohoo():
191 async with woohoo():
199 async def test_contextmanager_wrap_runtimeerror(self):
201 async def woohoo():
208 async with woohoo():
215 async with woohoo():
227 async def baz(spam):
244 async def test_instance_docstring_given_cm_docstring(self):
247 async with baz:
251 async def test_keywords(self):
254 async def woohoo(self, func, args, kwds):
256 async with woohoo(self=11, func=22, args=33, kwds=44) as target:
300 async def test_async_callback(self):
310 async def _exit(*args, **kwds):
314 async with AsyncExitStack() as stack:
333 async def test_async_push(self):
335 async def _expect_exc(exc_type, exc, exc_tb):
337 async def _suppress_exc(*exc_details):
339 async def _expect_ok(exc_type, exc, exc_tb):
346 async def __aenter__(self):
348 async def __aexit__(self, *exc_details):
351 async with self.exit_stack() as stack:
369 async def test_async_enter_context(self):
371 async def __aenter__(self):
373 async def __aexit__(self, *exc_details):
379 async with AsyncExitStack() as stack:
381 async def _exit():
391 async def test_async_exit_exception_chaining(self):
393 async def raise_exc(exc):
397 async def suppress_exc(*exc_details):
403 async with self.exit_stack() as stack: