mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-104835: Remove unittest's deprecated getTestCaseNames, makeSuite, findTestCases (#104836)
This commit is contained in:
parent
ded5f1f287
commit
b1cb30ec86
7 changed files with 30 additions and 88 deletions
|
@ -51,10 +51,6 @@ __all__ = ['TestResult', 'TestCase', 'IsolatedAsyncioTestCase', 'TestSuite',
|
|||
'registerResult', 'removeResult', 'removeHandler',
|
||||
'addModuleCleanup', 'doModuleCleanups', 'enterModuleContext']
|
||||
|
||||
# Expose obsolete functions for backwards compatibility
|
||||
# bpo-5846: Deprecated in Python 3.11, scheduled for removal in Python 3.13.
|
||||
__all__.extend(['getTestCaseNames', 'makeSuite', 'findTestCases'])
|
||||
|
||||
__unittest = True
|
||||
|
||||
from .result import TestResult
|
||||
|
@ -67,7 +63,6 @@ from .main import TestProgram, main
|
|||
from .runner import TextTestRunner, TextTestResult
|
||||
from .signals import installHandler, registerResult, removeResult, removeHandler
|
||||
# IsolatedAsyncioTestCase will be imported lazily.
|
||||
from .loader import makeSuite, getTestCaseNames, findTestCases
|
||||
|
||||
|
||||
# Lazy import of IsolatedAsyncioTestCase from .async_case
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue