From f27cc5bc74372032ce9c42e9f6321458df6da2f7 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 17 Jan 2001 21:43:06 +0000 Subject: 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. --- Lib/test/test_bufio.py | 2 +- Lib/test/test_cookie.py | 1 + Lib/test/test_gzip.py | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_bufio.py b/Lib/test/test_bufio.py index fb8fe10..e4467fe 100644 --- a/Lib/test/test_bufio.py +++ b/Lib/test/test_bufio.py @@ -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 diff --git a/Lib/test/test_cookie.py b/Lib/test/test_cookie.py index 8dd0f6f..414de31 100644 --- a/Lib/test/test_cookie.py +++ b/Lib/test/test_cookie.py @@ -1,5 +1,6 @@ # Simple test suite for Cookie.py +from test_support import verify import Cookie # Currently this only tests SimpleCookie 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) -- cgit v0.12