Skip to content
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

Configure pytest's asyncio_default_fixture_loop_scope option #8967

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

touilleMan
Copy link
Member

Fix warning:

/home/emmanuel/.cache/pypoetry/virtualenvs/parsec-cloud-fUS9rJbY-py3.12/lib/python3.12/site-packages/pytest_asyncio/plugin.py:208: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

@touilleMan touilleMan requested a review from a team as a code owner November 20, 2024 15:21
@FirelightFlagboy FirelightFlagboy added this pull request to the merge queue Nov 20, 2024
@FirelightFlagboy FirelightFlagboy removed this pull request from the merge queue due to a manual request Nov 20, 2024
@touilleMan touilleMan added this pull request to the merge queue Nov 21, 2024
Merged via the queue into master with commit 2a721f7 Nov 21, 2024
12 checks passed
@touilleMan touilleMan deleted the pytest-set-asyncio_default_fixture_loop_scope branch November 21, 2024 14:57
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.

2 participants