[Python-checkins] cpython: Stop using a deprecated unittest.TestCase method.
brett.cannon
python-checkins at python.org
Fri Dec 12 18:01:40 CET 2014
https://hg.python.org/cpython/rev/7c131a031fc4
changeset: 93857:7c131a031fc4
user: Brett Cannon <brett at python.org>
date: Fri Dec 12 12:00:02 2014 -0500
summary:
Stop using a deprecated unittest.TestCase method.
files:
Lib/test/test_xmlrpc.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py
--- a/Lib/test/test_xmlrpc.py
+++ b/Lib/test/test_xmlrpc.py
@@ -908,7 +908,7 @@
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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list