mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add unittest.result.failfast. (#3596)
This commit is contained in:
committed by
Sebastian Rittau
parent
955e9c7da4
commit
fe236ed8b2
@@ -6,7 +6,7 @@ from types import ModuleType
|
||||
from unittest.async_case import *
|
||||
from unittest.case import *
|
||||
from unittest.loader import *
|
||||
from unittest.result import *
|
||||
from unittest.result import TestResult as TestResult
|
||||
from unittest.runner import *
|
||||
from unittest.signals import *
|
||||
from unittest.suite import *
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import List, Optional, Tuple, Type, Union
|
||||
from typing import Any, Callable, List, Optional, Tuple, Type, TypeVar, Union
|
||||
from types import TracebackType
|
||||
import unittest.case
|
||||
|
||||
@@ -8,6 +8,11 @@ _SysExcInfoType = Union[
|
||||
Tuple[None, None, None],
|
||||
]
|
||||
|
||||
_F = TypeVar("_F", bound=Callable[..., Any])
|
||||
|
||||
# undocumented
|
||||
def failfast(method: _F) -> _F: ...
|
||||
|
||||
|
||||
class TestResult:
|
||||
errors: List[Tuple[unittest.case.TestCase, str]]
|
||||
|
||||
Reference in New Issue
Block a user