Commit b4bc91e3 authored by Fred Drake's avatar Fred Drake

Make this pass the -tt test.

parent 94c6e999
...@@ -80,14 +80,14 @@ else: ...@@ -80,14 +80,14 @@ else:
# in order to provide more variations. # in order to provide more variations.
for sync in [zlib.Z_NO_FLUSH, zlib.Z_SYNC_FLUSH, zlib.Z_FULL_FLUSH]: for sync in [zlib.Z_NO_FLUSH, zlib.Z_SYNC_FLUSH, zlib.Z_FULL_FLUSH]:
for level in range(10): for level in range(10):
obj = zlib.compressobj( level ) obj = zlib.compressobj( level )
d = obj.compress( buf[:3000] ) d = obj.compress( buf[:3000] )
d = d + obj.flush( sync ) d = d + obj.flush( sync )
d = d + obj.compress( buf[3000:] ) d = d + obj.compress( buf[3000:] )
d = d + obj.flush() d = d + obj.flush()
if zlib.decompress(d) != buf: if zlib.decompress(d) != buf:
print "Decompress failed: flush mode=%i, level=%i" % (sync,level) print "Decompress failed: flush mode=%i, level=%i" % (sync,level)
del obj del obj
def ignore(): def ignore():
"""An empty function with a big string. """An empty function with a big string.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment