From ed7cb8e623fc2c791bc432f81fff932d70f68abb Mon Sep 17 00:00:00 2001 From: symonk Date: Sun, 1 May 2022 16:26:51 +0100 Subject: [PATCH] update docs to reflect `nose` support deprecation --- changelog/9886.deprecation.rst | 2 +- doc/en/deprecations.rst | 6 +----- testing/test_nose.py | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/changelog/9886.deprecation.rst b/changelog/9886.deprecation.rst index 430adc535..f178da0ff 100644 --- a/changelog/9886.deprecation.rst +++ b/changelog/9886.deprecation.rst @@ -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. diff --git a/doc/en/deprecations.rst b/doc/en/deprecations.rst index 781110e44..20c564d70 100644 --- a/doc/en/deprecations.rst +++ b/doc/en/deprecations.rst @@ -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 `. - 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`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/testing/test_nose.py b/testing/test_nose.py index 7ff007185..bad7a0f41 100644 --- a/testing/test_nose.py +++ b/testing/test_nose.py @@ -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