summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zlib.py
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2011-05-14 22:48:57 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2011-05-14 22:48:57 (GMT)
commit760155cc52e182f759498e780d799604e70f04a0 (patch)
treee375e7a0cd0325efb44d8b63159e577255c7feea /Lib/test/test_zlib.py
parenta3221f82099d1b000387bf2d75e906ccd6801262 (diff)
parent1161a9ca4059ab34f637574e7498ba79ecd6efea (diff)
downloadcpython-760155cc52e182f759498e780d799604e70f04a0.zip
cpython-760155cc52e182f759498e780d799604e70f04a0.tar.gz
cpython-760155cc52e182f759498e780d799604e70f04a0.tar.bz2
Merge: Fix copy-paste mistake in new zlib test.
Diffstat (limited to 'Lib/test/test_zlib.py')
-rw-r--r--Lib/test/test_zlib.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py
index 930aac6..68dd3ea 100644
--- a/Lib/test/test_zlib.py
+++ b/Lib/test/test_zlib.py
@@ -528,9 +528,11 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase):
if size < _4G + 100:
self.skipTest("not enough free memory, need at least 4 GB")
data = b'x' * size
+ c = zlib.compressobj(1)
+ d = zlib.decompressobj()
try:
- self.assertRaises(OverflowError, zlib.compress, data, 1)
- self.assertRaises(OverflowError, zlib.decompress, data)
+ self.assertRaises(OverflowError, c.compress, data)
+ self.assertRaises(OverflowError, d.decompress, data)
finally:
data = None