-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Deprecate makeSuite, findTestCases, and getTestCaseNames. Scheduled for removal in Python 3.13.
- Loading branch information
Erlend Egeberg Aasland
authored
Sep 15, 2021
1 parent
9d76d28
commit ff6d2cc
Showing
4 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Misc/NEWS.d/next/Library/2020-05-25-23-58-29.bpo-5846.O9BIfm.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |