diff options
author | Guido van Rossum <guido@python.org> | 1997-07-11 20:47:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-07-11 20:47:58 (GMT) |
commit | 035aae0f094212c51ba2c15ca64b83bddf667151 (patch) | |
tree | 92b46138760f5529c2ccd52a08cf11eb26dc15e9 /Lib/test/test_re.py | |
parent | 185147f1d06dd56be7f28c4af29ae152df7f4ff5 (diff) | |
download | cpython-035aae0f094212c51ba2c15ca64b83bddf667151.zip cpython-035aae0f094212c51ba2c15ca64b83bddf667151.tar.gz cpython-035aae0f094212c51ba2c15ca64b83bddf667151.tar.bz2 |
Some small nits.
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r-- | Lib/test/test_re.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 63acff8..bc017e8 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -1,9 +1,9 @@ from test_support import verbose import re -import traceback +import sys, traceback from re_tests import * -if verbose: print 'Running regex_tests test suite' +if verbose: print 'Running re_tests test suite' for t in tests: print t @@ -23,7 +23,7 @@ for t in tests: print '=== Syntax error:', t except: print '*** Unexpected error ***' - traceback.print_exc() + traceback.print_exc(file=sys.stdout) else: try: result=obj.search(s) @@ -44,6 +44,8 @@ for t in tests: for i in range(1, 100): try: gi = result.group(i) + # Special hack because else the string concat fails: + if gi is None: gi = "None" except IndexError: break else: |