summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gzip.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_gzip.py')
-rw-r--r--Lib/test/test_gzip.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py
index 7edc617..8191267 100644
--- a/Lib/test/test_gzip.py
+++ b/Lib/test/test_gzip.py
@@ -18,13 +18,13 @@ data2 = """/* zlibmodule.c -- gzip-compatible data compression */
f = gzip.GzipFile(filename, 'wb') ; f.write(data1 * 50) ; f.close()
f = gzip.GzipFile(filename, 'rb') ; d = f.read() ; f.close()
-assert d == data1*50
+verify(d == data1*50)
# Append to the previous file
f = gzip.GzipFile(filename, 'ab') ; f.write(data2 * 15) ; f.close()
f = gzip.GzipFile(filename, 'rb') ; d = f.read() ; f.close()
-assert d == (data1*50) + (data2*15)
+verify(d == (data1*50) + (data2*15))
# Try .readline() with varying line lengths
@@ -33,7 +33,7 @@ line_length = 0
while 1:
L = f.readline( line_length )
if L == "" and line_length != 0: break
- assert len(L) <= line_length
+ verify(len(L) <= line_length)
line_length = (line_length + 1) % 50
f.close()