mirror of
https://github.com/python/cpython
synced 2024-09-16 03:49:58 +00:00
Stop using a deprecated unittest.TestCase method.
This commit is contained in:
parent
8ac7cbb253
commit
92716777b8
|
@ -908,7 +908,7 @@ def test_gzip_decode_limit(self):
|
|||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue