Use assertRaisesRegex instead of deprecated assertRaisesRegexp.

This commit is contained in:
Serhiy Storchaka 2015-04-10 12:54:19 +03:00
commit 1c5e281df8
1 changed files with 1 additions and 1 deletions

View File

@ -909,7 +909,7 @@ class GzipUtilTestCase(unittest.TestCase):
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)