[issue8193] test_zlib fails with zlib 1.2.4

Nick Coghlan report at bugs.python.org
Tue Mar 30 11:10:32 CEST 2010

Nick Coghlan <ncoghlan at gmail.com> added the comment:

I'm not sure simply changing the value is the right thing to do - with older zlib versions (which do the wrong thing with 0), we definitely want that exception to be triggered.

For newer versions, we want to check that passing in 0 worked as specified in the zlib patch note and that -1 still raises the exception.

Changing the test behaviour based on zlib.ZLIB_VERSION is likely the best option.

nosy: +ncoghlan

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list