From 92716777b862af05bf149bd02cac4d83234751c4 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 12 Dec 2014 12:00:02 -0500 Subject: Stop using a deprecated unittest.TestCase method. --- Lib/test/test_xmlrpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index 079f52c..dc37be2 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -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) -- cgit v0.12