We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef096cd commit 49c140dCopy full SHA for 49c140d
src/_pytest/fixtures.py
@@ -1154,9 +1154,9 @@ def pytest_fixture_setup(
1154
f"{request.node.name!r} requested an async fixture "
1155
f"{request.fixturename!r}{auto_str}, with no plugin or hook that "
1156
"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."
+ "support it. "
+ "This will turn into an error in pytest 9.\n"
+ "See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture"
1160
),
1161
# no stacklevel will point at users code, so we just point here
1162
stacklevel=1,
0 commit comments