Skip to content

Commit d2e9fd5

Browse files
Apply suggestions from code review
Co-authored-by: Ran Benita <ran@unusedvar.com>
1 parent c46e067 commit d2e9fd5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/en/deprecations.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ Below is a complete list of all pytest features which are considered deprecated.
2424
configuring hook specs/impls using markers
2525
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2626

27-
Before pluggy was a own package and had a clear api,
27+
Before pluggy, pytest's plugin library, was its own package and had a clear API,
2828
pytest just used ``pytest.mark`` to configure hooks.
2929

3030
The :py:func:`pytest.hookimpl` and :py:func:`pytest.hookspec` decorators
31-
have been available since years and should be used.
31+
have been available since years and should be used instead.
3232

3333
.. code-block:: python
3434
@@ -44,7 +44,7 @@ have been available since years and should be used.
4444
4545
pytest_runtest_call.tryfirst = True
4646
47-
This now is declared as:
47+
should be changed to:
4848

4949
.. code-block:: python
5050

src/_pytest/deprecated.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@
110110
HOOK_LEGACY_MARKING = UnformattedWarning(
111111
PytestDeprecationWarning,
112112
"The hook{type} {fullname} uses old-style configuration options (marks or attributes).\n"
113-
" please use the pytest.hook{type}({hook_opts}) decorator instead of pytest.mark \n"
113+
"Please use the pytest.hook{type}({hook_opts}) decorator instead\n"
114114
" to configure the hooks.\n"
115-
" see https://docs.pytest.org/en/latest/deprecations.html"
115+
" See https://docs.pytest.org/en/latest/deprecations.html"
116116
"#configuring-hook-specs-impls-using-markers",
117117
)
118118

0 commit comments

Comments
 (0)