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

Fix DeprecationWarning In Pytest #481

Open
hf-krechan opened this issue Sep 24, 2024 · 1 comment
Open

Fix DeprecationWarning In Pytest #481

hf-krechan opened this issue Sep 24, 2024 · 1 comment

Comments

@hf-krechan
Copy link
Collaborator

We get the following DepcratingWarning if we run the tests

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"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
@hf-kklein
Copy link
Contributor

pytest-asyncio is auch einne stete quelle der freude. seit 0.23 macht das echt nervige probleme

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

No branches or pull requests

2 participants