Merge "Use python-six shim for assertRaisesRegex/p"
This commit is contained in:
@@ -244,10 +244,11 @@ 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.assertRaisesRegex(exceptions.SSLError,
|
six.assertRaisesRegex(self,
|
||||||
msg,
|
exceptions.SSLError,
|
||||||
session.get,
|
msg,
|
||||||
self.TEST_URL)
|
session.get,
|
||||||
|
self.TEST_URL)
|
||||||
|
|
||||||
|
|
||||||
class RedirectTests(utils.TestCase):
|
class RedirectTests(utils.TestCase):
|
||||||
|
Reference in New Issue
Block a user