From 43b01300b7c7e9d24b549a408010e52a09726060 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 6 Jan 2023 13:12:23 +0100 Subject: Refs #32655 -- Removed extra_tests argument for DiscoverRunner.build_suite()/run_tests(). Per deprecation timeline. --- docs/releases/5.0.txt | 3 +++ docs/topics/testing/advanced.txt | 12 ------------ 2 files changed, 3 insertions(+), 12 deletions(-) (limited to 'docs') diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt index f2904d3359..12478e0b89 100644 --- a/docs/releases/5.0.txt +++ b/docs/releases/5.0.txt @@ -267,6 +267,9 @@ to remove usage of these features. * The default sitemap protocol for sitemaps built outside the context of a request is changed from ``'http'`` to ``'https'``. +* The ``extra_tests`` argument for ``DiscoverRunner.build_suite()`` and + ``DiscoverRunner.run_tests()`` is removed. + See :ref:`deprecated-features-4.1` for details on these changes, including how to remove usage of these features. diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt index 4afb36db3d..07fb881aee 100644 --- a/docs/topics/testing/advanced.txt +++ b/docs/topics/testing/advanced.txt @@ -654,12 +654,6 @@ Methods several formats (see :meth:`DiscoverRunner.build_suite` for a list of supported formats). - .. deprecated:: 4.0 - - ``extra_tests`` is a list of extra ``TestCase`` instances to add to the - suite that is executed by the test runner. These extra tests are run in - addition to those discovered in the modules listed in ``test_labels``. - This method should return the number of tests that failed. .. classmethod:: DiscoverRunner.add_arguments(parser) @@ -695,12 +689,6 @@ Methods tests in all files below the current directory whose names match its ``pattern`` (see above). - .. deprecated:: 4.0 - - ``extra_tests`` is a list of extra ``TestCase`` instances to add to the - suite that is executed by the test runner. These extra tests are run in - addition to those discovered in the modules listed in ``test_labels``. - Returns a ``TestSuite`` instance ready to be run. .. method:: DiscoverRunner.setup_databases(**kwargs) -- cgit v1.3