mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #26243: zlib.compress() keyword argument support by Aviv Palivoda
This commit is contained in:
parent
38418662e0
commit
1fe0d13d12
6 changed files with 44 additions and 25 deletions
|
@ -162,6 +162,10 @@ class CompressTestCase(BaseCompressTestCase, unittest.TestCase):
|
|||
x = zlib.compress(HAMLET_SCENE)
|
||||
self.assertEqual(zlib.decompress(x), HAMLET_SCENE)
|
||||
|
||||
def test_keywords(self):
|
||||
x = zlib.compress(data=HAMLET_SCENE, level=3)
|
||||
self.assertEqual(zlib.decompress(x), HAMLET_SCENE)
|
||||
|
||||
def test_speech128(self):
|
||||
# compress more data
|
||||
data = HAMLET_SCENE * 128
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue