[Python-checkins] CVS: python/dist/src/Lib/test regrtest.py,1.29,1.30
Eric S. Raymond
esr@users.sourceforge.net
Fri, 09 Feb 2001 03:40:42 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv17411
Modified Files:
regrtest.py
Log Message:
String method conversion.
Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -r1.29 -r1.30
*** regrtest.py 2000/12/30 22:21:22 1.29
--- regrtest.py 2001/02/09 11:40:40 1.30
***************
*** 33,37 ****
import sys
- import string
import os
import getopt
--- 33,36 ----
***************
*** 107,111 ****
try:
fp = open(filename, 'r')
! next = string.strip(fp.read())
tests = [next]
fp.close()
--- 106,110 ----
try:
fp = open(filename, 'r')
! next = fp.read().strip()
tests = [next]
fp.close()
***************
*** 164,171 ****
if bad:
print count(len(bad), "test"), "failed:",
! print string.join(bad)
if skipped and not quiet:
print count(len(skipped), "test"), "skipped:",
! print string.join(skipped)
if single:
--- 163,170 ----
if bad:
print count(len(bad), "test"), "failed:",
! print " ".join(bad)
if skipped and not quiet:
print count(len(skipped), "test"), "skipped:",
! print " ".join(skipped)
if single: