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 /Misc | |
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 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-05-25-23-58-29.bpo-5846.O9BIfm.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-05-25-23-58-29.bpo-5846.O9BIfm.rst b/Misc/NEWS.d/next/Library/2020-05-25-23-58-29.bpo-5846.O9BIfm.rst new file mode 100644 index 0000000..556c54d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-05-25-23-58-29.bpo-5846.O9BIfm.rst @@ -0,0 +1,14 @@ +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` methods instead: + +* :meth:`unittest.TestLoader.loadTestsFromModule` +* :meth:`unittest.TestLoader.loadTestsFromTestCase` +* :meth:`unittest.TestLoader.getTestCaseNames` + +Patch by Erlend E. Aasland. |