From 93da9b5e578a1bd29bcd915a8adc8353596b3a4d Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 10 Apr 2015 12:52:09 +0300 Subject: Use assertRaisesRegex instead of deprecated assertRaisesRegexp. --- Lib/test/test_xmlrpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index 71b590c..7ae0dce 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -891,8 +891,8 @@ class GzipUtilTestCase(unittest.TestCase): data = b'\0' * (max_gzip_decode + 1) encoded = xmlrpclib.gzip_encode(data) - with self.assertRaisesRegexp(ValueError, - "max gzipped payload length exceeded"): + with self.assertRaisesRegex(ValueError, + "max gzipped payload length exceeded"): xmlrpclib.gzip_decode(encoded) xmlrpclib.gzip_decode(encoded, max_decode=-1) -- cgit v0.12