Closed amotl closed 1 year ago
This may have happened due to a new alpha release of Python 3.12. And, indeed:
While the GHA Python versions manifest does not reveal any significant information about release dates, we discovered this patch when following https://github.com/python/cpython/compare/v3.12.0a2...v3.12.0a3, and it very much looks like this one is responsible for the observed behavior.
It reads:
get_event_loop()
will now raise aRuntimeError
if no current event loop was set, instead of creating and setting a new event loop.
/cc @hramezani, @quodt
It looks like the removal of the implicit creation of an event loop by get_event_loop()
will get postponed to Python 3.14, and the previous behavior will be restored with the next patch release of Python 3.12 alpha.
It looks like the issue has been resolved with Python 3.12 alpha 5, indicated by that GH-57 now passes successfully.
-- https://github.com/panodata/grafana-wtf/actions/runs/4333760552/jobs/7567157354
As we can see at ^1, running the tests on Python 3.12-dev currently croaks, while it has worked before. See also GH-57.