Skip to content

Commit ca788ba

Browse files
Set asyncio_default_fixture_loop_scope to suppress pytest-asyncio warning
pytest-asyncio warns that future versions will default the loop scope for async fixtures to function scope. Set it explicitly to "function" to suppress the deprecation warning and ensure consistent behavior. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c8f5362 commit ca788ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ version-file = "pyathena/_version.py"
110110

111111
[tool.pytest.ini_options]
112112
asyncio_mode = "auto"
113+
asyncio_default_fixture_loop_scope = "function"
113114
norecursedirs = [
114115
"benchmarks",
115116
".venv",

0 commit comments

Comments
 (0)