This patch removes all uses of "assert" in the regression test suite
and replaces them with a new API verify(). As a result the regression
suite will also perform its tests in optimization mode.

Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
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 @@
 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 @@
 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()