Issue #26243: zlib.compress() keyword argument support by Aviv Palivoda

This commit is contained in:
Martin Panter 2016-02-10 10:06:36 +00:00
parent 38418662e0
commit 1fe0d13d12
6 changed files with 44 additions and 25 deletions

View file

@ -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