mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Use assertRaisesRegex instead of deprecated assertRaisesRegexp.
This commit is contained in:
commit
1c5e281df8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue