mirror of
https://github.com/python/cpython
synced 2026-09-29 09:25:29 +03:00
Stop using a deprecated unittest.TestCase method.
This commit is contained in:
parent
8ac7cbb253
commit
92716777b8
1 changed files with 1 additions and 1 deletions
|
|
@ -908,7 +908,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…
Add table
Add a link
Reference in a new issue