Skip to content

Set explicit asyncio_default_fixture_loop_scope pytest option#47

Open
nE0sIghT wants to merge 1 commit intomosquito:masterfrom
nE0sIghT:pytest-asyncio
Open

Set explicit asyncio_default_fixture_loop_scope pytest option#47
nE0sIghT wants to merge 1 commit intomosquito:masterfrom
nE0sIghT:pytest-asyncio

Conversation

@nE0sIghT
Copy link
Copy Markdown
Contributor

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.

@nE0sIghT nE0sIghT changed the title Set implicit asyncio_default_fixture_loop_scope pytest option Set explicit asyncio_default_fixture_loop_scope pytest option Jul 12, 2025
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.
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.

1 participant