Skip to content

Commit 49c140d

Browse files
jakkdlnicoddemus
andauthored
Apply suggestions from code review
Co-authored-by: Bruno Oliveira <[email protected]>
1 parent ef096cd commit 49c140d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_pytest/fixtures.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,9 +1154,9 @@ def pytest_fixture_setup(
11541154
f"{request.node.name!r} requested an async fixture "
11551155
f"{request.fixturename!r}{auto_str}, with no plugin or hook that "
11561156
"handled it. This is usually an error, as pytest does not natively "
1157-
"support it. If this is intentional, consider making the fixture "
1158-
"sync and return a coroutine/asyncgen. "
1159-
"This will turn into an error in pytest 9."
1157+
"support it. "
1158+
"This will turn into an error in pytest 9.\n"
1159+
"See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture"
11601160
),
11611161
# no stacklevel will point at users code, so we just point here
11621162
stacklevel=1,

0 commit comments

Comments
 (0)