Replace assertRaisesRegexp with assertRaisesRegex
assertRaisesRegexp is raising a warning message that indicated the function is going to be deprecated, use assertRaisesRegex instead. Change-Id: Iff3b36ebec5d5d4b75c95c699ab76704d0053137 Closes-Bug: #1436957
This commit is contained in:
parent
b0dd0ce80d
commit
aef20a833e
|
@ -232,10 +232,10 @@ class SessionTests(utils.TestCase):
|
|||
# The exception should contain the URL and details about the SSL error
|
||||
msg = _('SSL exception connecting to %(url)s: %(error)s') % {
|
||||
'url': self.TEST_URL, 'error': error}
|
||||
self.assertRaisesRegexp(exceptions.SSLError,
|
||||
msg,
|
||||
session.get,
|
||||
self.TEST_URL)
|
||||
self.assertRaisesRegex(exceptions.SSLError,
|
||||
msg,
|
||||
session.get,
|
||||
self.TEST_URL)
|
||||
|
||||
|
||||
class RedirectTests(utils.TestCase):
|
||||
|
|
Loading…
Reference in New Issue