diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 11:51:27 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 11:51:27 (GMT) |
commit | fc170b1fd5db978f4e8d4c23c138a7b59df681ec (patch) | |
tree | 3c73ffcba8f5ece8c64a086a362b7fbe65368048 /Lib/test/regrtest.py | |
parent | d8c628bd59f70b5389c39fd9e6a15cb3e2d46f27 (diff) | |
download | cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.zip cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.gz cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.bz2 |
String method conversion.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 60bc6c6..5866d43 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -32,7 +32,6 @@ of /tmp). """ import sys -import string import os import getopt import traceback @@ -106,7 +105,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, filename = os.path.join(gettempdir(), 'pynexttest') try: fp = open(filename, 'r') - next = string.strip(fp.read()) + next = fp.read().strip() tests = [next] fp.close() except IOError: @@ -163,10 +162,10 @@ def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, print "that passes in verbose mode may fail without it." if bad: print count(len(bad), "test"), "failed:", - print string.join(bad) + print " ".join(bad) if skipped and not quiet: print count(len(skipped), "test"), "skipped:", - print string.join(skipped) + print " ".join(skipped) if single: alltests = findtests(testdir, stdtests, nottests) |