]> granicus.if.org Git - python/commitdiff
Make this pass the -tt test.
authorFred Drake <fdrake@acm.org>
Thu, 10 Feb 2000 15:31:07 +0000 (15:31 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 10 Feb 2000 15:31:07 +0000 (15:31 +0000)
Lib/test/test_zlib.py

index 719b0e7a0dd68000ab866193b4d4061b0d4de074..ccfbc7d780cc949da042a384a8ff51892335c324 100644 (file)
@@ -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.