update docs to reflect `nose` support deprecation

This commit is contained in:
symonk 2022-05-01 16:26:51 +01:00
parent b5c7a6d26a
commit ed7cb8e623
3 changed files with 3 additions and 7 deletions

View File

@ -1 +1 @@
The functionality for running tests written for `nose` has been officially deprecated.
The functionality for running tests written for ``nose`` has been officially deprecated.

View File

@ -15,11 +15,9 @@ should be used instead.
Deprecated Features
-------------------
Below is a complete list of all pytest features which are considered deprecated. Using those features will issue
:class:`~pytest.PytestWarning` or subclasses, which can be filtered using :ref:`standard warning filters <warnings>`.
Support for tests written for nose
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -27,8 +25,6 @@ Support for tests written for nose
Support for running tests written for nose is now deprecated.
.. _node-ctor-fspath-deprecation:
.. _instance-collector-deprecation:
@ -49,7 +45,7 @@ However, to keep such uses working, a dummy type has been instanted in ``pytest.
and importing it emits a deprecation warning. This will be removed in pytest 8.
.. _support_for_tests_written_for_nose:
.. _node-ctor-fspath-deprecation:
``fspath`` argument for Node constructors replaced with ``pathlib.Path``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -498,7 +498,7 @@ def test_nose_setup_skipped_if_non_callable(pytester: Pytester) -> None:
assert result.ret == 0
def test_nose_setup_is_deprecated(pytester: Pytester) -> None:
def test_nose_setup_and_teardown_is_deprecated(pytester: Pytester) -> None:
pytester.makepyfile(
"""
from nose.tools import with_setup