diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-03-03 18:41:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 18:41:28 (GMT) |
commit | cc400585fab02994255f21ae8183d5f147236815 (patch) | |
tree | 6f7b1a19ab2d33a0561427c1b16b75d035d132a9 /Lib/unittest | |
parent | b35603532b52e25c91929177191c44c1deb2f765 (diff) | |
download | cpython-cc400585fab02994255f21ae8183d5f147236815.zip cpython-cc400585fab02994255f21ae8183d5f147236815.tar.gz cpython-cc400585fab02994255f21ae8183d5f147236815.tar.bz2 |
bpo-46877: export unittest.doModuleCleanups in unittest package (#31613)
Diffstat (limited to 'Lib/unittest')
-rw-r--r-- | Lib/unittest/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/__init__.py b/Lib/unittest/__init__.py index 4b18488..eda951c 100644 --- a/Lib/unittest/__init__.py +++ b/Lib/unittest/__init__.py @@ -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 |