[Python-checkins] cpython (merge 3.4 -> default): Use assertRaisesRegex instead of deprecated assertRaisesRegexp.

serhiy.storchaka python-checkins at python.org
Fri Apr 10 12:30:54 CEST 2015


https://hg.python.org/cpython/rev/04ce9da70f61
changeset:   95514:04ce9da70f61
parent:      95512:76ed5454b09d
parent:      95513:edc5b77dc29a
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Fri Apr 10 12:54:19 2015 +0300
summary:
  Use assertRaisesRegex instead of deprecated assertRaisesRegexp.

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
@@ -909,7 +909,7 @@
         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)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list