summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-05-24 21:16:43 (GMT)
committerGitHub <noreply@github.com>2023-05-24 21:16:43 (GMT)
commitb1cb30ec8639e4e65f62e8f6cd44e979640431c8 (patch)
treecf12e2acfe17765b9bffe67515fb98b37f46613f /Doc
parentded5f1f287674ad404ddd042745433388dc073a5 (diff)
downloadcpython-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.rst14
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.