tests: Replace deprecated assertRaisesRegexp with assertRaisesRegex.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
564fc0e527
commit
e8bb65b188
2 changed files with 4 additions and 7 deletions
|
@ -154,7 +154,7 @@ class BotTestCase(unittest.TestCase):
|
|||
|
||||
def validate_invalid_config(self, config_data: Dict[str, str], error_regexp: str) -> None:
|
||||
bot_class = type(get_bot_message_handler(self.bot_name))
|
||||
with self.assertRaisesRegexp(ConfigValidationError, error_regexp):
|
||||
with self.assertRaisesRegex(ConfigValidationError, error_regexp):
|
||||
bot_class.validate_config(config_data)
|
||||
|
||||
def validate_valid_config(self, config_data: Dict[str, str]) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue