Skip to content

Commit 2466be7

Browse files
JayBazuziseifertm
authored andcommitted
trivial: Formatting in default fixture loop scope message
style: reformatting docs: Add news fragment.
1 parent 47f34cc commit 2466be7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

changelog.d/1298.changed.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improved the readability of the warning message that is displayed when ``asyncio_default_fixture_loop_scope`` is unset

pytest_asyncio/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ def _get_asyncio_debug(config: Config) -> bool:
221221

222222
_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET = """\
223223
The configuration option "asyncio_default_fixture_loop_scope" is unset.
224-
The event loop scope for asynchronous fixtures will default to the fixture caching \
224+
The event loop scope for asynchronous fixtures will default to the "fixture" caching \
225225
scope. Future versions of pytest-asyncio will default the loop scope for asynchronous \
226-
fixtures to function scope. Set the default fixture loop scope explicitly in order to \
227-
avoid unexpected behavior in the future. Valid fixture loop scopes are: \
226+
fixtures to "function" scope. Set the default fixture loop scope explicitly in order \
227+
to avoid unexpected behavior in the future. Valid fixture loop scopes are: \
228228
"function", "class", "module", "package", "session"
229229
"""
230230

0 commit comments

Comments
 (0)