From 6855a20a51a29cb5710e3ec7cddf61915ef85a5e Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Tue, 31 Jan 2017 14:37:52 -0800 Subject: [PATCH] add TestCase.failureException (#907) --- stdlib/2/unittest.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/2/unittest.pyi b/stdlib/2/unittest.pyi index 163ccceee..dbfccac92 100644 --- a/stdlib/2/unittest.pyi +++ b/stdlib/2/unittest.pyi @@ -6,7 +6,7 @@ from typing import ( Any, Callable, Dict, Iterable, Tuple, List, TextIO, Sequence, - overload, Set, TypeVar, Union, Pattern + overload, Set, TypeVar, Union, Pattern, Type ) from abc import abstractmethod, ABCMeta @@ -41,7 +41,7 @@ class TestResult: class _AssertRaisesBaseContext: expected = ... # type: Any - failureException = ... # type: type + failureException = ... # type: Type[BaseException] obj_name = ... # type: str expected_regex = ... # type: Pattern[str] @@ -51,8 +51,8 @@ class _AssertRaisesContext(_AssertRaisesBaseContext): def __exit__(self, exc_type, exc_value, tb) -> bool: ... class TestCase(Testable): + failureException = ... # type: Type[BaseException] def __init__(self, methodName: str = ...) -> None: ... - # TODO failureException def setUp(self) -> None: ... def tearDown(self) -> None: ... def run(self, result: TestResult = ...) -> None: ...