summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-11 21:14:53 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-11 21:14:53 (GMT)
commit1d8b7583dcc8ae0ad014208eb21cc05a5e57af76 (patch)
tree42b53e3bd62af209bccf4ca6774c203cbc576168 /Lib/test/test_re.py
parent5d6de256d5bd27263cbe1477acfbc8776bee51d4 (diff)
downloadcpython-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.py3
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)