Commit 1c5e281d authored by Serhiy Storchaka's avatar Serhiy Storchaka

Use assertRaisesRegex instead of deprecated assertRaisesRegexp.

parents 6bd687e0 93da9b5e
......@@ -909,7 +909,7 @@ class GzipUtilTestCase(unittest.TestCase):
encoded = xmlrpclib.gzip_encode(data)
with self.assertRaisesRegex(ValueError,
"max gzipped payload length exceeded"):
"max gzipped payload length exceeded"):
xmlrpclib.gzip_decode(encoded)
xmlrpclib.gzip_decode(encoded, max_decode=-1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment