Merge "Use python-six shim for assertRaisesRegex/p"

This commit is contained in:
Jenkins
2015-06-18 02:12:05 +00:00
committed by Gerrit Code Review

View File

@@ -244,10 +244,11 @@ 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.assertRaisesRegex(exceptions.SSLError,
msg,
session.get,
self.TEST_URL)
six.assertRaisesRegex(self,
exceptions.SSLError,
msg,
session.get,
self.TEST_URL)
class RedirectTests(utils.TestCase):