Skip to content

Commit

Permalink
Specify asyncio_default_fixture_loop_scope in pytest.ini (#42827)
Browse files Browse the repository at this point in the history
Previously we were getting 'PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.'  This sets it to the new default, and makes the warning go away.
  • Loading branch information
dstandish authored Oct 8, 2024
1 parent 061b0a5 commit 5550cc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,9 @@ python_files = [
testpaths = [
"tests",
]

asyncio_default_fixture_loop_scope = "function"

# Keep temporary directories (created by `tmp_path`) for 2 recent runs only failed tests.
tmp_path_retention_count = "2"
tmp_path_retention_policy = "failed"
Expand Down

0 comments on commit 5550cc6

Please sign in to comment.