This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author prikryl
Recipients
Date 2003-08-08.07:35:38
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Hi,

This bug was observed for Python 2.3c1, but probably is 
the same in Python 2.3 final.

I have discovered (by accident) that the assumption in 
test_zlib.py, class CompressTestCase, test_monotonic()
or build on a false assumption ("higher compression 
levels should not expand compressed size"), or the zlib 
version 1.1.4 contains a bug.

The test fails when the hamlet_scene sample is modified. 
Try to remove the empty line from the very beginning of 
the sample. Then the results for level 2 is better that for 
level 3 and the result for the level 4 is better than for 
level 5. The compressed sizes are:

level=0, length=245801
level=1, length=5325
level=2, length=4946
level=3, length=6052
level=4, length=2750
level=5, length=2769
level=6, length=2751
level=7, length=2388
level=8, length=2388
level=9, length=2388

Petr
History
Date User Action Args
2007-08-23 14:15:56adminlinkissue785222 messages
2007-08-23 14:15:56admincreate