[Python-checkins] CVS: python/dist/src/Lib/test test_bufio.py,1.3,1.4 test_cookie.py,1.5,1.6 test_gzip.py,1.5,1.6

Guido van Rossum gvanrossum@users.sourceforge.net
Wed, 17 Jan 2001 13:43:08 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv16839

Modified Files:
	test_bufio.py test_cookie.py test_gzip.py 
Log Message:
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.


Index: test_bufio.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_bufio.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** test_bufio.py	2001/01/17 19:11:13	1.3
--- test_bufio.py	2001/01/17 21:43:06	1.4
***************
*** 1,3 ****
! from test_support import TestFailed, TESTFN
  
  # Simple test to ensure that optimizations in fileobject.c deliver
--- 1,3 ----
! from test_support import TestFailed, TESTFN, verify
  
  # Simple test to ensure that optimizations in fileobject.c deliver

Index: test_cookie.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_cookie.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** test_cookie.py	2001/01/17 19:11:13	1.5
--- test_cookie.py	2001/01/17 21:43:06	1.6
***************
*** 1,4 ****
--- 1,5 ----
  # Simple test suite for Cookie.py
  
+ from test_support import verify
  import Cookie
  

Index: test_gzip.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_gzip.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** test_gzip.py	2001/01/17 19:11:13	1.5
--- test_gzip.py	2001/01/17 21:43:06	1.6
***************
*** 1,2 ****
--- 1,3 ----
+ from test_support import verify
  import sys, os
  import gzip, tempfile
***************
*** 32,36 ****
  line_length = 0
  while 1:
!     L = f.readline( line_length )
      if L == "" and line_length != 0: break
      verify(len(L) <= line_length)
--- 33,37 ----
  line_length = 0
  while 1:
!     L = f.readline(line_length)
      if L == "" and line_length != 0: break
      verify(len(L) <= line_length)
***************
*** 51,53 ****
  
  
! os.unlink( filename )
--- 52,54 ----
  
  
! os.unlink(filename)