mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
Use assertRaisesRegex instead of deprecated assertRaisesRegexp.
This commit is contained in:
parent
057b530024
commit
93da9b5e57
1 changed files with 2 additions and 2 deletions
|
|
@ -891,7 +891,7 @@ class GzipUtilTestCase(unittest.TestCase):
|
||||||
data = b'\0' * (max_gzip_decode + 1)
|
data = b'\0' * (max_gzip_decode + 1)
|
||||||
encoded = xmlrpclib.gzip_encode(data)
|
encoded = xmlrpclib.gzip_encode(data)
|
||||||
|
|
||||||
with self.assertRaisesRegexp(ValueError,
|
with self.assertRaisesRegex(ValueError,
|
||||||
"max gzipped payload length exceeded"):
|
"max gzipped payload length exceeded"):
|
||||||
xmlrpclib.gzip_decode(encoded)
|
xmlrpclib.gzip_decode(encoded)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue