]> granicus.if.org Git - python/commitdiff
Issue #8193: Fix test_zlib failure with zlib 1.2.4.
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 6 Apr 2010 17:21:09 +0000 (17:21 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 6 Apr 2010 17:21:09 +0000 (17:21 +0000)
Lib/test/test_zlib.py
Misc/NEWS

index f1f9d3809061891af3793cc3dabb5a405dedd9d5..6ffed99293d7fc3a9188e18af5219dd17b85ff65 100644 (file)
@@ -82,7 +82,7 @@ class ExceptionTestCase(unittest.TestCase):
 
     def test_baddecompressobj(self):
         # verify failure on building decompress object with bad params
-        self.assertRaises(ValueError, zlib.decompressobj, 0)
+        self.assertRaises(ValueError, zlib.decompressobj, -1)
 
     def test_decompressobj_badflush(self):
         # verify failure on calling decompressobj.flush with bad params
index 7a018adab9c43519376bde2c30ecdf75cc1f214b..8b415be3b3c1ee092bc2447a8f340f1578fed985 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -251,6 +251,8 @@ C-API
 Tests
 -----
 
+- Issue #8193: Fix test_zlib failure with zlib 1.2.4.
+
 - Issue #8248: Add some tests for the bool type.  Patch by Gregory Nofi.
 
 - Issue #8263: Now regrtest.py will report a failure if it receives a