Merge "Replace assertRaisesRegexp with assertRaisesRegex"

This commit is contained in:
Jenkins
2015-03-27 02:29:22 +00:00
committed by Gerrit Code Review

View File

@@ -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):