We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51d986c commit 907e8f2Copy full SHA for 907e8f2
tests/async_fixtures/test_async_fixtures_with_finalizer.py
@@ -32,7 +32,7 @@ async def port_afinalizer():
32
await finalizer
33
event_loop.run_until_complete(port_afinalizer())
34
35
- worker = asyncio.create_task(asyncio.sleep(0.2))
+ worker = asyncio.ensure_future(asyncio.sleep(0.2))
36
request.addfinalizer(functools.partial(port_finalizer, worker))
37
return True
38
@@ -46,6 +46,6 @@ async def port_afinalizer():
46
47
asyncio.get_event_loop().run_until_complete(port_afinalizer())
48
49
50
51
0 commit comments