Merge "Replace deprecated assertRaisesRegexp"

This commit is contained in:
Zuul 2021-11-09 19:42:21 +00:00 committed by Gerrit Code Review
commit 98e692d00f
2 changed files with 4 additions and 4 deletions

View File

@ -311,7 +311,7 @@ class TestOvercloudBackup(utils.TestCommand):
]
verifylist = []
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
self.assertRaisesRegexp(
self.assertRaisesRegex(
RuntimeError,
'The inventory file',
self.cmd.take_action,
@ -332,7 +332,7 @@ class TestOvercloudBackup(utils.TestCommand):
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
self.assertRaisesRegexp(
self.assertRaisesRegex(
RuntimeError,
'The inventory file',
self.cmd.take_action,

View File

@ -475,7 +475,7 @@ class TestUndercloudBackup(utils.TestCommand):
]
verifylist = []
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
self.assertRaisesRegexp(
self.assertRaisesRegex(
RuntimeError,
'The inventory file',
self.cmd.take_action,
@ -496,7 +496,7 @@ class TestUndercloudBackup(utils.TestCommand):
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
self.assertRaisesRegexp(
self.assertRaisesRegex(
RuntimeError,
'The inventory file',
self.cmd.take_action,