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:

committed by
Steve Martinelli

parent
a84b5ac115
commit
cf97f271ed
@@ -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):
|
||||
|
Reference in New Issue
Block a user