Merge "Replace assertRaisesRegexp with assertRaisesRegex"
This commit is contained in:
@@ -232,10 +232,10 @@ class SessionTests(utils.TestCase):
|
|||||||
# The exception should contain the URL and details about the SSL error
|
# The exception should contain the URL and details about the SSL error
|
||||||
msg = _('SSL exception connecting to %(url)s: %(error)s') % {
|
msg = _('SSL exception connecting to %(url)s: %(error)s') % {
|
||||||
'url': self.TEST_URL, 'error': error}
|
'url': self.TEST_URL, 'error': error}
|
||||||
self.assertRaisesRegexp(exceptions.SSLError,
|
self.assertRaisesRegex(exceptions.SSLError,
|
||||||
msg,
|
msg,
|
||||||
session.get,
|
session.get,
|
||||||
self.TEST_URL)
|
self.TEST_URL)
|
||||||
|
|
||||||
|
|
||||||
class RedirectTests(utils.TestCase):
|
class RedirectTests(utils.TestCase):
|
||||||
|
Reference in New Issue
Block a user