python/dist/src/Lib/test test_zlib.py, 1.23, 1.23.8.1

Update of /cvsroot/python/python/dist/src/Lib/test In directory sc8-pr-cvs1:/tmp/cvs-serv6632 Modified Files: Tag: release23-maint test_zlib.py Log Message: SF bug #785222: zlib monotonic test For smaller datasets, it is not always true the increasing the compression level always results in better compression. Removed the test which made this invalid assumption. Index: test_zlib.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_zlib.py,v retrieving revision 1.23 retrieving revision 1.23.8.1 diff -C2 -d -r1.23 -r1.23.8.1 *** test_zlib.py 1 May 2003 17:45:56 -0000 1.23 --- test_zlib.py 31 Aug 2003 04:37:25 -0000 1.23.8.1 *************** *** 97,111 **** self.assertEqual(zlib.decompress(x), data) - def test_monotonic(self): - # higher compression levels should not expand compressed size - data = hamlet_scene * 8 * 16 - last = length = len(zlib.compress(data, 0)) - self.failUnless(last > len(data), "compress level 0 always expands") - for level in range(10): - length = len(zlib.compress(data, level)) - self.failUnless(length <= last, - 'compress level %d more effective than %d!' % ( - level-1, level)) - last = length --- 97,100 ----
participants (1)
-
rhettingerīŧ users.sourceforge.net