mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
bpo-46877: export unittest.doModuleCleanups in unittest package (#31613)
This commit is contained in:
parent
b35603532b
commit
cc400585fa
2 changed files with 3 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ __all__ = ['TestResult', 'TestCase', 'IsolatedAsyncioTestCase', 'TestSuite',
|
|||
'defaultTestLoader', 'SkipTest', 'skip', 'skipIf', 'skipUnless',
|
||||
'expectedFailure', 'TextTestResult', 'installHandler',
|
||||
'registerResult', 'removeResult', 'removeHandler',
|
||||
'addModuleCleanup']
|
||||
'addModuleCleanup', 'doModuleCleanups']
|
||||
|
||||
# Expose obsolete functions for backwards compatibility
|
||||
# bpo-5846: Deprecated in Python 3.11, scheduled for removal in Python 3.13.
|
||||
|
|
@ -59,7 +59,7 @@ __unittest = True
|
|||
|
||||
from .result import TestResult
|
||||
from .case import (addModuleCleanup, TestCase, FunctionTestCase, SkipTest, skip,
|
||||
skipIf, skipUnless, expectedFailure)
|
||||
skipIf, skipUnless, expectedFailure, doModuleCleanups)
|
||||
from .suite import BaseTestSuite, TestSuite
|
||||
from .loader import TestLoader, defaultTestLoader
|
||||
from .main import TestProgram, main
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Export :func:`unittest.doModuleCleanups` in :mod:`unittest`. Patch by Kumar Aditya.
|
||||
Loading…
Add table
Add a link
Reference in a new issue