We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c334a commit 5cae9b7Copy full SHA for 5cae9b7
tests/async_fixtures/test_async_fixtures_with_finalizer.py
@@ -1,5 +1,6 @@
1
import asyncio
2
import functools
3
+import warnings
4
5
import pytest
6
@@ -33,7 +34,11 @@ async def port_afinalizer():
33
34
# RuntimeError is raised if task is created on a different loop
35
await finalizer
36
- asyncio.get_event_loop().run_until_complete(port_afinalizer())
37
+ with warnings.catch_warnings():
38
+ warnings.simplefilter("ignore", DeprecationWarning)
39
+ loop = asyncio.get_event_loop()
40
+
41
+ loop.run_until_complete(port_afinalizer())
42
43
worker = asyncio.ensure_future(asyncio.sleep(0.2))
44
request.addfinalizer(functools.partial(port_finalizer, worker))
0 commit comments