We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea95a6b commit 6be5980Copy full SHA for 6be5980
tests/async_fixtures/test_async_fixtures_with_finalizer.py
@@ -55,10 +55,12 @@ async def port_afinalizer():
55
current_loop.run_until_complete(port_afinalizer())
56
57
# nested loop proxy is different than explicitly set by
58
- # loop_policy.set_event_loop(). it is really not a big prblem because async
59
- # functions always have the correct 'get_running_loop()' already.
+ # loop_policy.set_event_loop().
+ # It is really not a big problem because async functions
60
+ # always have the correct 'get_running_loop()' already.
61
worker = asyncio.ensure_future(
- asyncio.sleep(0.2), loop=asyncio.get_event_loop_policy().get_event_loop()
62
+ asyncio.sleep(0.2),
63
+ loop=asyncio.get_event_loop_policy().get_event_loop(),
64
)
65
request.addfinalizer(functools.partial(port_finalizer, worker))
66
return True
0 commit comments