Skip to content

Commit 563124e

Browse files
fix ref
1 parent f751a78 commit 563124e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/en/deprecations.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Deprecated Features
2020
Below is a complete list of all pytest features which are considered deprecated. Using those features will issue
2121
:class:`PytestWarning` or subclasses, which can be filtered using :ref:`standard warning filters <warnings>`.
2222

23-
dd
23+
.. _depdeprecate-hook-marks:
24+
2425
configuring hook specs/impls using markers
2526
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2627

src/_pytest/deprecated.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@
109109

110110
HOOK_LEGACY_MARKING = UnformattedWarning(
111111
PytestDeprecationWarning,
112-
"The hook {type} {fullname} is not marked using pytest.hook{type}.\n"
112+
"The hook{type} {fullname} uses old-style configuration options (marks or attributes).\n"
113113
" please use the pytest.hook{type}({hook_opts}) decorator instead of pytest.mark \n"
114-
" to correctly mark hooks as pytest hooks.\n"
114+
" to configure the hooks.\n"
115115
" see URL",
116116
)
117117

0 commit comments

Comments
 (0)