diff options
Diffstat (limited to 'Lib/dos-8x3/test_zli.py')
-rw-r--r-- | Lib/dos-8x3/test_zli.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/dos-8x3/test_zli.py b/Lib/dos-8x3/test_zli.py index 719b0e7..ccfbc7d 100644 --- a/Lib/dos-8x3/test_zli.py +++ b/Lib/dos-8x3/test_zli.py @@ -80,14 +80,14 @@ else: # in order to provide more variations. for sync in [zlib.Z_NO_FLUSH, zlib.Z_SYNC_FLUSH, zlib.Z_FULL_FLUSH]: for level in range(10): - obj = zlib.compressobj( level ) - d = obj.compress( buf[:3000] ) - d = d + obj.flush( sync ) - d = d + obj.compress( buf[3000:] ) - d = d + obj.flush() - if zlib.decompress(d) != buf: - print "Decompress failed: flush mode=%i, level=%i" % (sync,level) - del obj + obj = zlib.compressobj( level ) + d = obj.compress( buf[:3000] ) + d = d + obj.flush( sync ) + d = d + obj.compress( buf[3000:] ) + d = d + obj.flush() + if zlib.decompress(d) != buf: + print "Decompress failed: flush mode=%i, level=%i" % (sync,level) + del obj def ignore(): """An empty function with a big string. |