mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 09:03:23 +08:00
@@ -7,19 +7,13 @@ from typing import Any, Callable, List, Optional, Sequence, Type
|
||||
|
||||
|
||||
class TestLoader:
|
||||
if sys.version_info >= (3, 5):
|
||||
errors: List[Type[BaseException]]
|
||||
errors: List[Type[BaseException]]
|
||||
testMethodPrefix: str
|
||||
sortTestMethodsUsing: Callable[[str, str], bool]
|
||||
suiteClass: Callable[[List[unittest.case.TestCase]], unittest.suite.TestSuite]
|
||||
def loadTestsFromTestCase(self,
|
||||
testCaseClass: Type[unittest.case.TestCase]) -> unittest.suite.TestSuite: ...
|
||||
if sys.version_info >= (3, 5):
|
||||
def loadTestsFromModule(self, module: ModuleType,
|
||||
*, pattern: Any = ...) -> unittest.suite.TestSuite: ...
|
||||
else:
|
||||
def loadTestsFromModule(self,
|
||||
module: ModuleType) -> unittest.suite.TestSuite: ...
|
||||
def loadTestsFromModule(self, module: ModuleType, *, pattern: Any = ...) -> unittest.suite.TestSuite: ...
|
||||
def loadTestsFromName(self, name: str,
|
||||
module: Optional[ModuleType] = ...) -> unittest.suite.TestSuite: ...
|
||||
def loadTestsFromNames(self, names: Sequence[str],
|
||||
|
||||
@@ -23,18 +23,16 @@ class TestRunner:
|
||||
|
||||
|
||||
class TextTestRunner(TestRunner):
|
||||
if sys.version_info >= (3, 5):
|
||||
def __init__(self, stream: Optional[TextIO] = ...,
|
||||
descriptions: bool = ..., verbosity: int = ...,
|
||||
failfast: bool = ..., buffer: bool = ...,
|
||||
resultclass: Optional[_ResultClassType] = ...,
|
||||
warnings: Optional[Type[Warning]] = ...,
|
||||
*, tb_locals: bool = ...) -> None: ...
|
||||
else:
|
||||
def __init__(self,
|
||||
stream: Optional[TextIO] = ...,
|
||||
descriptions: bool = ..., verbosity: int = ...,
|
||||
failfast: bool = ..., buffer: bool = ...,
|
||||
resultclass: Optional[_ResultClassType] = ...,
|
||||
warnings: Optional[Type[Warning]] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
stream: Optional[TextIO] = ...,
|
||||
descriptions: bool = ...,
|
||||
verbosity: int = ...,
|
||||
failfast: bool = ...,
|
||||
buffer: bool = ...,
|
||||
resultclass: Optional[_ResultClassType] = ...,
|
||||
warnings: Optional[Type[Warning]] = ...,
|
||||
*,
|
||||
tb_locals: bool = ...,
|
||||
) -> None: ...
|
||||
def _makeResult(self) -> unittest.result.TestResult: ...
|
||||
|
||||
Reference in New Issue
Block a user