Skip to content

Commit f2196c1

Browse files
claudegjtorikian
authored andcommitted
fix: set asyncio_default_fixture_loop_scope to silence deprecation warning
Future pytest-asyncio versions will default async fixture loop scope to "function". Set it explicitly to avoid surprises on upgrade. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 33e6aec commit f2196c1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ type_check = ["pyright~=1.1"]
3333
nox = ["nox~=2026.2", "nox-uv~=0.7"]
3434

3535

36+
[tool.pytest.ini_options]
37+
asyncio_default_fixture_loop_scope = "function"
38+
3639
[tool.ruff.lint.per-file-ignores]
3740
"*/__init__.py" = ["F401", "F403"]
3841

0 commit comments

Comments
 (0)