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:
Diego Elio Pettenò
2019-10-29 15:16:53 +00:00
committed by Sebastian Rittau
parent beaf306d12
commit e6c467af82

View File

@@ -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):