diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2023-05-24 21:16:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 21:16:43 (GMT) |
commit | b1cb30ec8639e4e65f62e8f6cd44e979640431c8 (patch) | |
tree | cf12e2acfe17765b9bffe67515fb98b37f46613f /Doc | |
parent | ded5f1f287674ad404ddd042745433388dc073a5 (diff) | |
download | cpython-b1cb30ec8639e4e65f62e8f6cd44e979640431c8.zip cpython-b1cb30ec8639e4e65f62e8f6cd44e979640431c8.tar.gz cpython-b1cb30ec8639e4e65f62e8f6cd44e979640431c8.tar.bz2 |
gh-104835: Remove unittest's deprecated getTestCaseNames, makeSuite, findTestCases (#104836)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.13.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index e681a9d..544171a 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -118,6 +118,20 @@ Removed * Remove support for using :class:`pathlib.Path` objects as context managers. This functionality was deprecated and made a no-op in Python 3.9. +* Removed the following :mod:`unittest` functions, deprecated in Python 3.11: + + * :func:`!unittest.findTestCases` + * :func:`!unittest.makeSuite` + * :func:`!unittest.getTestCaseNames` + + Use :class:`~unittest.TestLoader` methods instead: + + * :meth:`unittest.TestLoader.loadTestsFromModule` + * :meth:`unittest.TestLoader.loadTestsFromTestCase` + * :meth:`unittest.TestLoader.getTestCaseNames` + + (Contributed by Hugo van Kemenade in :gh:`104835`.) + * :pep:`594`: Remove the :mod:`!cgi`` and :mod:`!cgitb` modules, deprecated in Python 3.11. |