From 76a334daeb9b57b70e84854593613141d001d8b4 Mon Sep 17 00:00:00 2001 From: Juan Gonzalez Date: Fri, 21 Dec 2018 02:37:33 -0500 Subject: [PATCH] Complete unittest.TextTestResult stubs (#2700) --- stdlib/3/unittest/__init__.pyi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stdlib/3/unittest/__init__.pyi b/stdlib/3/unittest/__init__.pyi index 664948f6e..f161c280e 100644 --- a/stdlib/3/unittest/__init__.pyi +++ b/stdlib/3/unittest/__init__.pyi @@ -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