diff options
| author | Lisa Roach <lisaroach14@gmail.com> | 2018-11-09 02:34:33 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-09 02:34:33 (GMT) |
| commit | 0f221d09cad46bee38d1b7a7822772df66c53028 (patch) | |
| tree | 5c121b9d4747136f74eeac45c62211a2ae32dceb /Lib/unittest/__init__.py | |
| parent | 49fa4a9f1ef387e16596f271414c855339eadf09 (diff) | |
| download | cpython-0f221d09cad46bee38d1b7a7822772df66c53028.zip cpython-0f221d09cad46bee38d1b7a7822772df66c53028.tar.gz cpython-0f221d09cad46bee38d1b7a7822772df66c53028.tar.bz2 | |
bpo-24412: Adds cleanUps for setUpClass and setUpModule. (GH-9190)
Diffstat (limited to 'Lib/unittest/__init__.py')
| -rw-r--r-- | Lib/unittest/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/unittest/__init__.py b/Lib/unittest/__init__.py index c55d563..5ff1bf3 100644 --- a/Lib/unittest/__init__.py +++ b/Lib/unittest/__init__.py @@ -48,7 +48,8 @@ __all__ = ['TestResult', 'TestCase', 'TestSuite', 'TextTestRunner', 'TestLoader', 'FunctionTestCase', 'main', 'defaultTestLoader', 'SkipTest', 'skip', 'skipIf', 'skipUnless', 'expectedFailure', 'TextTestResult', 'installHandler', - 'registerResult', 'removeResult', 'removeHandler'] + 'registerResult', 'removeResult', 'removeHandler', + 'addModuleCleanup'] # Expose obsolete functions for backwards compatibility __all__.extend(['getTestCaseNames', 'makeSuite', 'findTestCases']) @@ -56,8 +57,8 @@ __all__.extend(['getTestCaseNames', 'makeSuite', 'findTestCases']) __unittest = True from .result import TestResult -from .case import (TestCase, FunctionTestCase, SkipTest, skip, skipIf, - skipUnless, expectedFailure) +from .case import (addModuleCleanup, TestCase, FunctionTestCase, SkipTest, skip, + skipIf, skipUnless, expectedFailure) from .suite import BaseTestSuite, TestSuite from .loader import (TestLoader, defaultTestLoader, makeSuite, getTestCaseNames, findTestCases) |
