summaryrefslogtreecommitdiffstats
path: root/Misc
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 /Misc
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 'Misc')
-rw-r--r--Misc/NEWS.d/3.11.0a1.rst6
-rw-r--r--Misc/NEWS.d/next/Library/2023-05-24-08-45-04.gh-issue-104835.bN_B-B.rst13
2 files changed, 16 insertions, 3 deletions
diff --git a/Misc/NEWS.d/3.11.0a1.rst b/Misc/NEWS.d/3.11.0a1.rst
index 10e123e..284717a 100644
--- a/Misc/NEWS.d/3.11.0a1.rst
+++ b/Misc/NEWS.d/3.11.0a1.rst
@@ -3483,9 +3483,9 @@ Improved reprs of :mod:`threading` synchronization objects:
Deprecated the following :mod:`unittest` functions, scheduled for removal in
Python 3.13:
-* :func:`~unittest.findTestCases`
-* :func:`~unittest.makeSuite`
-* :func:`~unittest.getTestCaseNames`
+* :func:`~!unittest.findTestCases`
+* :func:`~!unittest.makeSuite`
+* :func:`~!unittest.getTestCaseNames`
Use :class:`~unittest.TestLoader` methods instead:
diff --git a/Misc/NEWS.d/next/Library/2023-05-24-08-45-04.gh-issue-104835.bN_B-B.rst b/Misc/NEWS.d/next/Library/2023-05-24-08-45-04.gh-issue-104835.bN_B-B.rst
new file mode 100644
index 0000000..f8e979b
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-05-24-08-45-04.gh-issue-104835.bN_B-B.rst
@@ -0,0 +1,13 @@
+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`
+
+Patch by Hugo van Kemenade.