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 3900425 commit fb76febCopy full SHA for fb76feb
pytest_asyncio/plugin.py
@@ -891,7 +891,9 @@ def wrap_in_sync(
891
@functools.wraps(func)
892
def inner(*args, **kwargs):
893
coro = func(*args, **kwargs)
894
- _loop = asyncio.get_event_loop()
+ with warnings.catch_warnings():
895
+ warnings.simplefilter("ignore", DeprecationWarning)
896
+ _loop = asyncio.get_event_loop()
897
task = asyncio.ensure_future(coro, loop=_loop)
898
try:
899
_loop.run_until_complete(task)
0 commit comments