Stop using a deprecated unittest.TestCase method.

This commit is contained in:
Brett Cannon 2014-12-12 12:00:02 -05:00
parent 8ac7cbb253
commit 92716777b8
1 changed files with 1 additions and 1 deletions

View File

@ -908,7 +908,7 @@ class GzipUtilTestCase(unittest.TestCase):
data = b'\0' * (max_gzip_decode + 1)
encoded = xmlrpclib.gzip_encode(data)
with self.assertRaisesRegexp(ValueError,
with self.assertRaisesRegex(ValueError,
"max gzipped payload length exceeded"):
xmlrpclib.gzip_decode(encoded)