diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-14 22:48:24 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-14 22:48:24 (GMT) |
commit | 1161a9ca4059ab34f637574e7498ba79ecd6efea (patch) | |
tree | de37980cf1d33d3d4b8ec7b8bf7aef72f837c33e | |
parent | 0c3d96ae1dccc081fbc2a8c50ba6e41fbdc384de (diff) | |
download | cpython-1161a9ca4059ab34f637574e7498ba79ecd6efea.zip cpython-1161a9ca4059ab34f637574e7498ba79ecd6efea.tar.gz cpython-1161a9ca4059ab34f637574e7498ba79ecd6efea.tar.bz2 |
Fix copy-paste mistake in new zlib test.
-rw-r--r-- | Lib/test/test_zlib.py | 6 |
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 |