diff options
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) |