mirror of https://github.com/python/cpython
Use assertRaisesRegex instead of deprecated assertRaisesRegexp.
This commit is contained in:
parent
057b530024
commit
93da9b5e57
|
@ -891,7 +891,7 @@ class GzipUtilTestCase(unittest.TestCase):
|
|||
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 New Issue