forked from uburuntu/throttler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the
event_loop
fixture for tests that need one
Without this, many tests fail in Python 3.14.0a2 because `asyncio.get_event_loop()` no longer automatically starts an event loop, instead raising a `RuntimeError` if there is no current event loop. See https://docs.python.org/dev/library/asyncio-eventloop.html#asyncio.get_event_loop, https://docs.python.org/dev/whatsnew/3.14.html#id3, and python/cpython#126353. For documentation on the fixture, see https://pytest-asyncio.readthedocs.io/en/latest/reference/fixtures/#event-loop.
- Loading branch information
1 parent
658e71c
commit 12157cf
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters