Skip to content

Commit f751a78

Browse files
fix refs
1 parent bbbacf3 commit f751a78

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

changelog/4562.deprecation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Deprecate configuring hook specs/impls using attribute/marks.
22

3-
Instead use :ref:`pytest.hookimpl` and :ref:`pytest.hookspec`.
3+
Instead use :py:func:`pytest.hookimpl` and :py:func:`pytest.hookspec`.
44
For more details, see the :ref:`docs <deprecate-hook-marks>`.

doc/en/deprecations.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,22 @@ should be used instead.
1212
:local:
1313

1414

15+
.. _deprecate-hook-marks:
16+
1517
Deprecated Features
1618
-------------------
1719

1820
Below is a complete list of all pytest features which are considered deprecated. Using those features will issue
1921
:class:`PytestWarning` or subclasses, which can be filtered using :ref:`standard warning filters <warnings>`.
2022

23+
dd
2124
configuring hook specs/impls using markers
2225
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2326

2427
Before pluggy was a own package and had a clear api,
2528
pytest just used ``pytest.mark`` to configure hooks.
2629

27-
The :ref:`pytest.hookimpl` and :ref:`pytest.hookspec` decorators
30+
The :py:func:`pytest.hookimpl` and :py:func:`pytest.hookspec` decorators
2831
have been available since years and should be used.
2932

3033
.. code-block:: python

0 commit comments

Comments
 (0)