diff --git a/changelog/10196.trivial.rst b/changelog/10196.trivial.rst index 723dc3e0b..edf458f84 100644 --- a/changelog/10196.trivial.rst +++ b/changelog/10196.trivial.rst @@ -1 +1 @@ - make PytestReturnNotNoneWarning a RemovedIn8Warning +:class:`~pytest.PytestReturnNotNoneWarning` is now a subclass of :class:`~pytest.PytestRemovedIn8Warning`: the plan is to make returning non-``None`` from tests an error in the future. diff --git a/doc/en/reference/reference.rst b/doc/en/reference/reference.rst index bdad8fa59..9e7589025 100644 --- a/doc/en/reference/reference.rst +++ b/doc/en/reference/reference.rst @@ -1133,6 +1133,9 @@ Custom warnings generated in some situations such as improper usage or deprecate .. autoclass:: pytest.PytestReturnNotNoneWarning :show-inheritance: +.. autoclass:: pytest.PytestRemovedIn8Warning + :show-inheritance: + .. autoclass:: pytest.PytestUnhandledCoroutineWarning :show-inheritance: