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 /Lib/test/test_support.py | |
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 'Lib/test/test_support.py')
-rw-r--r-- | Lib/test/test_support.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 11ca0c2..44fe334 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -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", |