You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/test_asyncio.py::test_time_freeze_coroutine
/root/checked_repos/freezegun/tests/test_asyncio.py:17: DeprecationWarning: There is no current event loop
asyncio.get_event_loop().run_until_complete(frozen_coroutine())
tests/test_asyncio.py::test_time_freeze_async_def
<string>:5: DeprecationWarning: There is no current event loop
-- Docs: https://docs.pytest.org/en/stable/warnings.html
The text was updated successfully, but these errors were encountered:
Since Python 3.10, the `asyncio.get_event_loop()` has been deprecated in
favor of `asyncio.get_running_loop()`. That one, however, issues a
warning when there's no event loop running (such as in this test suite).
Fix this by always requesting a new event loop. These methods have been
available since at least Python 3.5 (and there are no older docs online
at this point).
Bug: spulec#398
Related to python/cpython#23554
The text was updated successfully, but these errors were encountered: