]> granicus.if.org Git - python/commitdiff
Marc-Andre must not have run these tests -- they used verify() but
authorGuido van Rossum <guido@python.org>
Wed, 17 Jan 2001 21:43:06 +0000 (21:43 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 17 Jan 2001 21:43:06 +0000 (21:43 +0000)
didn't import it.  Also got rid of some inconsistent spaces inside
parentheses in test_gzip.py.

Lib/test/test_bufio.py
Lib/test/test_cookie.py
Lib/test/test_gzip.py

index fb8fe10322a6dc0b55ab3fc66a05d40d444da8d6..e4467fe58b471030f575335d03a3194c0b359f14 100644 (file)
@@ -1,4 +1,4 @@
-from test_support import TestFailed, TESTFN
+from test_support import TestFailed, TESTFN, verify
 
 # Simple test to ensure that optimizations in fileobject.c deliver
 # the expected results.  For best testing, run this under a debug-build
index 8dd0f6f50a0aa168915d82c000fb684352a6efc6..414de31a0c0bd3847f2969fe3b7d700c6cfb65ff 100644 (file)
@@ -1,5 +1,6 @@
 # Simple test suite for Cookie.py
 
+from test_support import verify
 import Cookie
 
 # Currently this only tests SimpleCookie
index 81912678579db7cf22f50c2508993293abed103c..8ff8c337e73e05c05c5e69a5cdcf1d52d5c3fa3d 100644 (file)
@@ -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)