Lines Matching full:async
11 """Decorator to turn an async function into a test case."""
28 async def test_enter(self):
30 async def __aexit__(self, *args):
36 async with manager as context:
40 async def test_async_gen_propagates_generator_exit(self):
44 async def ctx():
47 async def gen():
48 async with ctx():
54 async with ctx():
55 async for val in gen():
70 async def __aenter__(self):
72 async def __aexit__(self, exc_type, exc_value, traceback):
78 async def __aexit__(self, *args):
97 async def test_contextmanager_plain(self):
100 async def woohoo():
104 async with woohoo() as x:
111 async def test_contextmanager_finally(self):
114 async def woohoo():
121 async with woohoo() as x:
129 async def test_contextmanager_no_reraise(self):
131 async def whee():
139 async def test_contextmanager_trap_yield_after_throw(self):
141 async def whoo():
152 async def test_contextmanager_trap_no_yield(self):
154 async def whoo():
162 async def test_contextmanager_trap_second_yield(self):
164 async def whoo():
173 async def test_contextmanager_non_normalised(self):
175 async def whoo():
187 async def test_contextmanager_except(self):
190 async def woohoo():
197 async with woohoo() as x:
205 async def test_contextmanager_except_stopiter(self):
207 async def woohoo():
213 async with woohoo():
221 async def test_contextmanager_wrap_runtimeerror(self):
223 async def woohoo():
230 async with woohoo():
237 async with woohoo():
249 async def baz(spam):
266 async def test_instance_docstring_given_cm_docstring(self):
269 async with baz:
273 async def test_keywords(self):
276 async def woohoo(self, func, args, kwds):
278 async with woohoo(self=11, func=22, args=33, kwds=44) as target:
323 async def test_async_callback(self):
333 async def _exit(*args, **kwds):
337 async with AsyncExitStack() as stack:
356 async with AsyncExitStack() as stack:
366 async def test_async_push(self):
368 async def _expect_exc(exc_type, exc, exc_tb):
370 async def _suppress_exc(*exc_details):
372 async def _expect_ok(exc_type, exc, exc_tb):
379 async def __aenter__(self):
381 async def __aexit__(self, *exc_details):
384 async with self.exit_stack() as stack:
402 async def test_async_enter_context(self):
404 async def __aenter__(self):
406 async def __aexit__(self, *exc_details):
412 async with AsyncExitStack() as stack:
414 async def _exit():
424 async def test_async_exit_exception_chaining(self):
426 async def raise_exc(exc):
430 async def suppress_exc(*exc_details):
436 async with self.exit_stack() as stack: