Skip to content

Commit

Permalink
Specify asyncio_default_fixture_loop_scope in pytest.ini (apache#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 and pavansharma36 committed Oct 14, 2024
1 parent 38db35d commit e6ba82f
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 e6ba82f

Please sign in to comment.