summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-10-19 17:53:58 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-10-19 17:53:58 (GMT)
commita24db67d4704550722db3181b38b3840ded989bc (patch)
treebbd7510000747957764d4d946a5bfaa8603bd575
parent92a27b5206a7302c88f39f852cb92a31136b0e22 (diff)
downloadcpython-a24db67d4704550722db3181b38b3840ded989bc.zip
cpython-a24db67d4704550722db3181b38b3840ded989bc.tar.gz
cpython-a24db67d4704550722db3181b38b3840ded989bc.tar.bz2
Clarify error report message, and don't recommend running in verbose
mode for more information if we are already running in verbose mode.
-rw-r--r--Lib/test/test_support.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index d97e150..bfa3c45 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -894,7 +894,9 @@ def _run_suite(suite):
elif len(result.failures) == 1 and not result.errors:
err = result.failures[0][1]
else:
- err = "errors occurred; run in verbose mode for details"
+ err = "multiple errors occurred"
+ if not verbose:
+ err += "; run in verbose mode for details"
raise TestFailed(err)