bpo-5846: Deprecate obsolete methods in unittest (GH-28299)

Deprecate makeSuite, findTestCases, and getTestCaseNames. Scheduled for removal in Python 3.13.
This commit is contained in:
Erlend Egeberg Aasland 2021-09-15 20:33:31 +02:00 committed by GitHub
parent 9d76d28867
commit ff6d2cc55a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 69 additions and 4 deletions

View file

@ -426,9 +426,14 @@ class TestSupport(unittest.TestCase):
extra=extra,
not_exported=not_exported)
extra = {'TextTestResult', 'installHandler'}
extra = {
'TextTestResult',
'findTestCases',
'getTestCaseNames',
'installHandler',
'makeSuite',
}
not_exported = {'load_tests', "TestProgram", "BaseTestSuite"}
support.check__all__(self,
unittest,
("unittest.result", "unittest.case",