Commits

Anonymous committed a3b76b1 Merge

Merge: Fix copy-paste mistake in new zlib test.

  • Participants
  • Parent commits c238bdd, 8db300c
  • Branches 3.2

Comments (0)

Files changed (1)

Lib/test/test_zlib.py

         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