Complete unittest.TextTestResult stubs (#2700)

This commit is contained in:
Juan Gonzalez
2018-12-21 02:37:33 -05:00
committed by Sebastian Rittau
parent 2cedbc7d63
commit 76a334daeb

View File

@@ -283,8 +283,13 @@ class TestResult:
outcome: Optional[_SysExcInfoType]) -> None: ...
class TextTestResult(TestResult):
separator1: str
separator2: str
def __init__(self, stream: TextIO, descriptions: bool,
verbosity: int) -> None: ...
def getDescription(self, test: TestCase) -> str: ...
def printErrors(self) -> None: ...
def printErrorList(self, flavour: str, errors: Tuple[TestCase, str]) -> None: ...
_TextTestResult = TextTestResult
defaultTestLoader = ... # type: TestLoader