Skip to content

Commit ef096cd

Browse files
committed
small wording changes
1 parent d35e4eb commit ef096cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

changelog/10839.deprecation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Requesting an asynchronous fixture without a `pytest_fixture_setup` to handle it will now give a DeprecationWarning. This most commonly happens if a sync test requests an async fixture. This should have no effect on a majority of users with async tests or fixtures, but may affect non-standard hook setups or ``autouse=True``. For guidance on how to work around this warning see :ref:`sync-test-async-fixture`.
1+
Requesting an asynchronous fixture without a `pytest_fixture_setup` hook that resolves it will now give a DeprecationWarning. This most commonly happens if a sync test requests an async fixture. This should have no effect on a majority of users with async tests or fixtures using async pytest plugins, but may affect non-standard hook setups or ``autouse=True``. For guidance on how to work around this warning see :ref:`sync-test-async-fixture`.

src/_pytest/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ def __init__(
961961
ids: tuple[object | None, ...] | Callable[[Any], object | None] | None = None,
962962
*,
963963
_ispytest: bool = False,
964-
# only used to emit a deprecationwarning, can be removed in pytest9
964+
# only used in a deprecationwarning msg, can be removed in pytest9
965965
_autouse: bool = False,
966966
) -> None:
967967
check_ispytest(_ispytest)

0 commit comments

Comments
 (0)