Add __all__ for modules beginning with 'u', 'x', 'w' and 'z' (#7374)

This commit is contained in:
Alex Waygood
2022-02-23 22:04:21 +00:00
committed by GitHub
parent 7b024f5e9a
commit 58e505eeb2
23 changed files with 292 additions and 3 deletions

View File

@@ -32,4 +32,55 @@ if sys.version_info >= (3, 8):
from .case import addModuleCleanup as addModuleCleanup
__all__ = [
"TestResult",
"TestCase",
"IsolatedAsyncioTestCase",
"TestSuite",
"TextTestRunner",
"TestLoader",
"FunctionTestCase",
"main",
"defaultTestLoader",
"SkipTest",
"skip",
"skipIf",
"skipUnless",
"expectedFailure",
"TextTestResult",
"installHandler",
"registerResult",
"removeResult",
"removeHandler",
"addModuleCleanup",
"getTestCaseNames",
"makeSuite",
"findTestCases",
]
else:
__all__ = [
"TestResult",
"TestCase",
"TestSuite",
"TextTestRunner",
"TestLoader",
"FunctionTestCase",
"main",
"defaultTestLoader",
"SkipTest",
"skip",
"skipIf",
"skipUnless",
"expectedFailure",
"TextTestResult",
"installHandler",
"registerResult",
"removeResult",
"removeHandler",
"getTestCaseNames",
"makeSuite",
"findTestCases",
]
def load_tests(loader: TestLoader, tests: TestSuite, pattern: str | None) -> TestSuite: ...