summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zlib.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium>2015-09-09 01:56:53 (GMT)
committerMartin Panter <vadmium>2015-09-09 01:56:53 (GMT)
commit0ff89099c7f1c848c0df3f7f2220b26e08b939da (patch)
treee207a8fe6251a50e6f1b3bb8fee21b916a8a49cb /Lib/test/test_zlib.py
parentdfcfe133001d8d6a8af05f1ce45d7c14ffd1a588 (diff)
parentbf19d169504823c258a9aae4bf61c8df9ff5987f (diff)
downloadcpython-0ff89099c7f1c848c0df3f7f2220b26e08b939da.zip
cpython-0ff89099c7f1c848c0df3f7f2220b26e08b939da.tar.gz
cpython-0ff89099c7f1c848c0df3f7f2220b26e08b939da.tar.bz2
Issue #23738: Merge 3.4 into 3.5
Diffstat (limited to 'Lib/test/test_zlib.py')
-rw-r--r--Lib/test/test_zlib.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py
index bd935ed..7cd1d7c 100644
--- a/Lib/test/test_zlib.py
+++ b/Lib/test/test_zlib.py
@@ -222,9 +222,9 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase):
level = 2
method = zlib.DEFLATED
wbits = -12
- memlevel = 9
+ memLevel = 9
strategy = zlib.Z_FILTERED
- co = zlib.compressobj(level, method, wbits, memlevel, strategy)
+ co = zlib.compressobj(level, method, wbits, memLevel, strategy)
x1 = co.compress(HAMLET_SCENE)
x2 = co.flush()
dco = zlib.decompressobj(wbits)
@@ -232,6 +232,10 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase):
y2 = dco.flush()
self.assertEqual(HAMLET_SCENE, y1 + y2)
+ # keyword arguments should also be supported
+ zlib.compressobj(level=level, method=method, wbits=wbits,
+ memLevel=memLevel, strategy=strategy, zdict=b"")
+
def test_compressincremental(self):
# compress object in steps, decompress object as one-shot
data = HAMLET_SCENE * 128