summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zlib.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-02-10 10:06:36 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-02-10 10:06:36 (GMT)
commit1fe0d13d1246b5d60a4f4fb8c627babd0e94ab87 (patch)
treeeec6386513c0eaa44a9277b472cc2d4e6a53871b /Lib/test/test_zlib.py
parent38418662e0339b6331e0c7e00ea55f41b28bf38d (diff)
downloadcpython-1fe0d13d1246b5d60a4f4fb8c627babd0e94ab87.zip
cpython-1fe0d13d1246b5d60a4f4fb8c627babd0e94ab87.tar.gz
cpython-1fe0d13d1246b5d60a4f4fb8c627babd0e94ab87.tar.bz2
Issue #26243: zlib.compress() keyword argument support by Aviv Palivoda
Diffstat (limited to 'Lib/test/test_zlib.py')
-rw-r--r--Lib/test/test_zlib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py
index ecdb5a7..ca30116 100644
--- a/Lib/test/test_zlib.py
+++ b/Lib/test/test_zlib.py
@@ -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