def test_func_12(self):
async def g():
- i = me.send(None)
+ me.send(None)
await foo
me = g()
with self.assertRaisesRegex(ValueError,
buffer.append(exc_type.__name__)
async def f():
- async with CM() as c:
+ async with CM():
await asyncio.sleep(0.01)
raise MyException
buffer.append('unreachable')
orig_depth = sys.get_coroutine_origin_tracking_depth()
try:
- msg = check(0, f"coroutine '{corofn.__qualname__}' was never awaited")
+ check(0, f"coroutine '{corofn.__qualname__}' was never awaited")
check(1, "".join([
f"coroutine '{corofn.__qualname__}' was never awaited\n",
"Coroutine created at (most recent call last)\n",
coro_repr = repr(coro)
# clear reference to the coroutine without awaiting for it
- coro_repr = repr(coro)
del coro
support.gc_collect()