diff options
author | Fred Drake <fdrake@acm.org> | 2000-02-10 15:31:07 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-02-10 15:31:07 (GMT) |
commit | ad892dc80d2d42337c12499e679e53f627244abf (patch) | |
tree | 70a1f5f19c7aaff1c3ce05f2a55e9262e93c407d /Lib/test/test_zlib.py | |
parent | 62e3393e4d5679d000ed46cda233621716efe8f0 (diff) | |
download | cpython-ad892dc80d2d42337c12499e679e53f627244abf.zip cpython-ad892dc80d2d42337c12499e679e53f627244abf.tar.gz cpython-ad892dc80d2d42337c12499e679e53f627244abf.tar.bz2 |
Make this pass the -tt test.
Diffstat (limited to 'Lib/test/test_zlib.py')
-rw-r--r-- | Lib/test/test_zlib.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 719b0e7..ccfbc7d 100644 --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.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. |