From 2f38875ff2246cb5803999839d77739551c5acd1 Mon Sep 17 00:00:00 2001 From: mikemolinet Date: Mon, 11 May 2026 08:42:03 -0700 Subject: [PATCH] chore(test): pin asyncio_default_fixture_loop_scope to function Silences the deprecation warning that pytest-asyncio emits on every test run: 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. Pin the default to ``function`` explicitly. Matches the future pytest-asyncio default and silences the warning. Re-port of closed PR #51 (was on stale base ~8870 deletions behind current main). Same one-line fix; fresh against `f9ec4ea`. --- pytest.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/pytest.ini b/pytest.ini index 2f4c80e..c8c9c75 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,3 @@ [pytest] asyncio_mode = auto +asyncio_default_fixture_loop_scope = function