File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
Deprecate configuring hook specs/impls using attribute/marks.
2
2
3
- Instead use :ref: `pytest.hookimpl ` and :ref : `pytest.hookspec `.
3
+ Instead use :py:func: `pytest.hookimpl ` and :py:func : `pytest.hookspec `.
4
4
For more details, see the :ref: `docs <deprecate-hook-marks >`.
Original file line number Diff line number Diff line change @@ -12,19 +12,22 @@ should be used instead.
12
12
:local:
13
13
14
14
15
+ .. _deprecate-hook-marks :
16
+
15
17
Deprecated Features
16
18
-------------------
17
19
18
20
Below is a complete list of all pytest features which are considered deprecated. Using those features will issue
19
21
:class: `PytestWarning ` or subclasses, which can be filtered using :ref: `standard warning filters <warnings >`.
20
22
23
+ dd
21
24
configuring hook specs/impls using markers
22
25
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23
26
24
27
Before pluggy was a own package and had a clear api,
25
28
pytest just used ``pytest.mark `` to configure hooks.
26
29
27
- The :ref: `pytest.hookimpl ` and :ref : `pytest.hookspec ` decorators
30
+ The :py:func: `pytest.hookimpl ` and :py:func : `pytest.hookspec ` decorators
28
31
have been available since years and should be used.
29
32
30
33
.. code-block :: python
You can’t perform that action at this time.
0 commit comments