diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-09-15 18:33:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 18:33:31 (GMT) |
commit | ff6d2cc55aac5cc53e331cae145d0cf35ec647b0 (patch) | |
tree | 4f2742e41fef18530c1f785ec538010fd9a71295 /Doc | |
parent | 9d76d28867c28bcc881b851547a9cd7ac003ae88 (diff) | |
download | cpython-ff6d2cc55aac5cc53e331cae145d0cf35ec647b0.zip cpython-ff6d2cc55aac5cc53e331cae145d0cf35ec647b0.tar.gz cpython-ff6d2cc55aac5cc53e331cae145d0cf35ec647b0.tar.bz2 |
bpo-5846: Deprecate obsolete methods in `unittest` (GH-28299)
Deprecate makeSuite, findTestCases, and getTestCaseNames. Scheduled for removal in Python 3.13.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index a06a075..df331ed 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -352,6 +352,21 @@ Deprecated :class:`~unittest.IsolatedAsyncioTestCase` test methods (other than the default ``None`` value), is now deprecated. +* Deprecated the following :mod:`unittest` functions, scheduled for removal in + Python 3.13: + + * :func:`unittest.findTestCases` + * :func:`unittest.makeSuite` + * :func:`unittest.getTestCaseNames` + + Use :class:`~unittest.TestLoader` method instead: + + * :meth:`unittest.TestLoader.loadTestsFromModule` + * :meth:`unittest.TestLoader.loadTestsFromTestCase` + * :meth:`unittest.TestLoader.getTestCaseNames` + + (Contributed by Erlend E. Aasland in :issue:`5846`.) + Removed ======= |