From: Nadeem Vawda Date: Sat, 14 May 2011 22:48:24 +0000 (+0200) Subject: Fix copy-paste mistake in new zlib test. X-Git-Tag: v3.2.1rc1~6^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1161a9ca4059ab34f637574e7498ba79ecd6efea;p=thirdparty%2FPython%2Fcpython.git Fix copy-paste mistake in new zlib test. --- diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 0909aa17b216..599ce24f41df 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