From abe367644e252c1bb71270b2ee9091174b0823cd Mon Sep 17 00:00:00 2001 From: Jay Bazuzi Date: Sun, 23 Nov 2025 11:07:18 -0800 Subject: [PATCH 1/2] trivial: Formatting in default fixture loop scope message --- pytest_asyncio/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest_asyncio/plugin.py b/pytest_asyncio/plugin.py index 3b63b250..00ecd5a1 100644 --- a/pytest_asyncio/plugin.py +++ b/pytest_asyncio/plugin.py @@ -221,9 +221,9 @@ def _get_asyncio_debug(config: Config) -> bool: _DEFAULT_FIXTURE_LOOP_SCOPE_UNSET = """\ The configuration option "asyncio_default_fixture_loop_scope" is unset. -The event loop scope for asynchronous fixtures will default to the fixture caching \ +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. Set the default fixture loop scope explicitly in order to \ +fixtures to "function" scope. Set the default fixture loop scope explicitly in order to \ avoid unexpected behavior in the future. Valid fixture loop scopes are: \ "function", "class", "module", "package", "session" """ From 3a610608033200e0f80624dafa015f1c2dc4097c Mon Sep 17 00:00:00 2001 From: Jay Bazuzi Date: Wed, 26 Nov 2025 09:52:22 -0800 Subject: [PATCH 2/2] style: reformatting --- pytest_asyncio/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest_asyncio/plugin.py b/pytest_asyncio/plugin.py index 00ecd5a1..fefa5df9 100644 --- a/pytest_asyncio/plugin.py +++ b/pytest_asyncio/plugin.py @@ -223,8 +223,8 @@ def _get_asyncio_debug(config: Config) -> bool: 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. Set the default fixture loop scope explicitly in order to \ -avoid unexpected behavior in the future. Valid fixture loop scopes are: \ +fixtures to "function" scope. Set the default fixture loop scope explicitly in order \ +to avoid unexpected behavior in the future. Valid fixture loop scopes are: \ "function", "class", "module", "package", "session" """