Skip to content

Commit 29490af

Browse files
committed
fix docs
1 parent c7eae3a commit 29490af

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

doc/en/changelog.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ pytest 7.2.0 (2022-10-23)
14621462
Deprecations
14631463
------------
14641464

1465-
- `#10012 <https://github.com/pytest-dev/pytest/issues/10012>`_: Update :class:`pytest.PytestUnhandledCoroutineWarning` to a deprecation; it will raise an error in pytest 8.
1465+
- `#10012 <https://github.com/pytest-dev/pytest/issues/10012>`_: Update ``pytest.PytestUnhandledCoroutineWarning`` to a deprecation; it will raise an error in pytest 8.
14661466

14671467

14681468
- `#10396 <https://github.com/pytest-dev/pytest/issues/10396>`_: pytest no longer depends on the ``py`` library. ``pytest`` provides a vendored copy of ``py.error`` and ``py.path`` modules but will use the ``py`` library if it is installed. If you need other ``py.*`` modules, continue to install the deprecated ``py`` library separately, otherwise it can usually be removed as a dependency.

doc/en/deprecations.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Returning non-None value in test functions
251251

252252
.. deprecated:: 7.2
253253

254-
A :class:`pytest.PytestReturnNotNoneWarning` is now emitted if a test function returns something other than `None`.
254+
A ``pytest.PytestReturnNotNoneWarning`` is now emitted if a test function returns something other than `None`.
255255

256256
This prevents a common mistake among beginners that expect that returning a `bool` would cause a test to pass or fail, for example:
257257

doc/en/reference/reference.rst

-6
Original file line numberDiff line numberDiff line change
@@ -1229,15 +1229,9 @@ Custom warnings generated in some situations such as improper usage or deprecate
12291229
.. autoclass:: pytest.PytestExperimentalApiWarning
12301230
:show-inheritance:
12311231

1232-
.. autoclass:: pytest.PytestReturnNotNoneWarning
1233-
:show-inheritance:
1234-
12351232
.. autoclass:: pytest.PytestRemovedIn9Warning
12361233
:show-inheritance:
12371234

1238-
.. autoclass:: pytest.PytestUnhandledCoroutineWarning
1239-
:show-inheritance:
1240-
12411235
.. autoclass:: pytest.PytestUnknownMarkWarning
12421236
:show-inheritance:
12431237

0 commit comments

Comments
 (0)