mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
parent
9d76d28867
commit
ff6d2cc55a
4 changed files with 69 additions and 4 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue