Skip to content

Support Python 3.14 #1111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

seifertm
Copy link
Contributor

@seifertm seifertm commented May 7, 2025

This PR is based on #1108 and should be reviewed and merged after that.

Silences deprecations of:

  • asyncio.get_event_loop_policy()
  • asyncio.set_event_loop_policy()
  • asyncio.set_event_loop()

Although this is not a permanent fix, it prevents people from having to deal with deprecation warnings caused by pytest-asyncio when testing against Python 3.14.

A long-term solution to the deprecations involve:

Closes #1025

seifertm added 7 commits May 5, 2025 06:26
… per scope instance.

This reduces the number of fixtures and therefore improves test collection time, especially for large test suites.
…eated in the *event_loop* fixture finalizer.
The tests are interdependent and are more concerned with testing pytest's fixture finalizer functionality than pytest-asyncio.
@seifertm seifertm added this to the v1.0 milestone May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of asyncio.get_event_loop_policy deprecated in Python 3.14-dev
1 participant