diff options
author | Guido van Rossum <guido@python.org> | 2001-01-17 21:43:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-17 21:43:06 (GMT) |
commit | f27cc5bc74372032ce9c42e9f6321458df6da2f7 (patch) | |
tree | 17f56f87fe08ab63ef74d3c8e4c0622394366435 /Lib/test/test_gzip.py | |
parent | 722642902e19513fd9d9f5bc9d01f04c8fc7f4c7 (diff) | |
download | cpython-f27cc5bc74372032ce9c42e9f6321458df6da2f7.zip cpython-f27cc5bc74372032ce9c42e9f6321458df6da2f7.tar.gz cpython-f27cc5bc74372032ce9c42e9f6321458df6da2f7.tar.bz2 |
Marc-Andre must not have run these tests -- they used verify() but
didn't import it. Also got rid of some inconsistent spaces inside
parentheses in test_gzip.py.
Diffstat (limited to 'Lib/test/test_gzip.py')
-rw-r--r-- | Lib/test/test_gzip.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py index 8191267..8ff8c33 100644 --- a/Lib/test/test_gzip.py +++ b/Lib/test/test_gzip.py @@ -1,3 +1,4 @@ +from test_support import verify import sys, os import gzip, tempfile @@ -31,7 +32,7 @@ verify(d == (data1*50) + (data2*15)) f = gzip.GzipFile(filename, 'rb') line_length = 0 while 1: - L = f.readline( line_length ) + L = f.readline(line_length) if L == "" and line_length != 0: break verify(len(L) <= line_length) line_length = (line_length + 1) % 50 @@ -50,4 +51,4 @@ while 1: f.close() -os.unlink( filename ) +os.unlink(filename) |