diff options
author | Guido van Rossum <guido@python.org> | 1997-07-11 21:14:53 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-07-11 21:14:53 (GMT) |
commit | 1d8b7583dcc8ae0ad014208eb21cc05a5e57af76 (patch) | |
tree | 42b53e3bd62af209bccf4ca6774c203cbc576168 /Lib/test/test_re.py | |
parent | 5d6de256d5bd27263cbe1477acfbc8776bee51d4 (diff) | |
download | cpython-1d8b7583dcc8ae0ad014208eb21cc05a5e57af76.zip cpython-1d8b7583dcc8ae0ad014208eb21cc05a5e57af76.tar.gz cpython-1d8b7583dcc8ae0ad014208eb21cc05a5e57af76.tar.bz2 |
Removed the traceback output in non-verbose mode
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r-- | Lib/test/test_re.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index bc017e8..39d3df0 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -23,7 +23,8 @@ for t in tests: print '=== Syntax error:', t except: print '*** Unexpected error ***' - traceback.print_exc(file=sys.stdout) + if verbose: + traceback.print_exc(file=sys.stdout) else: try: result=obj.search(s) |