summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zlib.py
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2011-05-14 22:48:24 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2011-05-14 22:48:24 (GMT)
commit1161a9ca4059ab34f637574e7498ba79ecd6efea (patch)
treede37980cf1d33d3d4b8ec7b8bf7aef72f837c33e /Lib/test/test_zlib.py
parent0c3d96ae1dccc081fbc2a8c50ba6e41fbdc384de (diff)
downloadcpython-1161a9ca4059ab34f637574e7498ba79ecd6efea.zip
cpython-1161a9ca4059ab34f637574e7498ba79ecd6efea.tar.gz
cpython-1161a9ca4059ab34f637574e7498ba79ecd6efea.tar.bz2
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 0909aa1..599ce24 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