summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-10 09:52:09 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-10 09:52:09 (GMT)
commit93da9b5e578a1bd29bcd915a8adc8353596b3a4d (patch)
tree38db9ea3f69b0faa08f4a581588a69131acb83ff /Lib/test
parent057b5300244ca6ed2473125dabad2b553563e84d (diff)
downloadcpython-93da9b5e578a1bd29bcd915a8adc8353596b3a4d.zip
cpython-93da9b5e578a1bd29bcd915a8adc8353596b3a4d.tar.gz
cpython-93da9b5e578a1bd29bcd915a8adc8353596b3a4d.tar.bz2
Use assertRaisesRegex instead of deprecated assertRaisesRegexp.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_xmlrpc.py4
1 files 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)