[Python-checkins] cpython (merge 3.2 -> default): Merge: Fix copy-paste mistake in new zlib test.

nadeem.vawda python-checkins at python.org
Sun May 15 00:50:22 CEST 2011


http://hg.python.org/cpython/rev/0bdf5c7e60e8
changeset:   70131:0bdf5c7e60e8
parent:      70128:a968ed87ff75
parent:      70130:a3b76b14864a
user:        Nadeem Vawda <nadeem.vawda at gmail.com>
date:        Sun May 15 00:49:20 2011 +0200
summary:
  Merge: Fix copy-paste mistake in new zlib test.

files:
  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
--- a/Lib/test/test_zlib.py
+++ b/Lib/test/test_zlib.py
@@ -528,9 +528,11 @@
         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
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list