mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add missing expected_regex parameter to TestCase.assertRaisesRegexp(). (#3418)
This makes it match the signature of assertRaisesRegex() which is the modern name for the same function.
This commit is contained in:
committed by
Sebastian Rittau
parent
beaf306d12
commit
e6c467af82
@@ -197,11 +197,13 @@ class TestCase:
|
||||
@overload
|
||||
def assertRaisesRegexp(self, # type: ignore
|
||||
exception: Union[Type[BaseException], Tuple[Type[BaseException], ...]],
|
||||
expected_regex: Union[str, bytes, Pattern[str], Pattern[bytes]],
|
||||
callable: Callable[..., Any] = ...,
|
||||
*args: Any, **kwargs: Any) -> None: ...
|
||||
@overload
|
||||
def assertRaisesRegexp(self,
|
||||
exception: Union[Type[_E], Tuple[Type[_E], ...]],
|
||||
expected_regex: Union[str, bytes, Pattern[str], Pattern[bytes]],
|
||||
msg: Any = ...) -> _AssertRaisesContext[_E]: ...
|
||||
|
||||
class FunctionTestCase(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user