summaryrefslogtreecommitdiff
path: root/Lib/test/support/testresult.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-12-18 22:23:24 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-12-18 22:25:34 -0500
commit7bff1c36552e30a1d1472d2dafda5fb6a38bd6a4 (patch)
tree745e00bab927f44c24bd67aa747e50a402854078 /Lib/test/support/testresult.py
parent9b52920173735ac609664c6a3a3021d24a95a092 (diff)
downloadcpython-git-bpo-46126/bad-error-message.tar.gz
bpo-46126: Disable 'descriptions' when running tests internally.bpo-46126/bad-error-message
Diffstat (limited to 'Lib/test/support/testresult.py')
-rw-r--r--Lib/test/support/testresult.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/support/testresult.py b/Lib/test/support/testresult.py
index 2cd1366cd8..eb2279a88f 100644
--- a/Lib/test/support/testresult.py
+++ b/Lib/test/support/testresult.py
@@ -145,7 +145,11 @@ def get_test_runner_class(verbosity, buffer=False):
return functools.partial(unittest.TextTestRunner,
resultclass=RegressionTestResult,
buffer=buffer,
- verbosity=verbosity)
+ verbosity=verbosity,
+ # disable descriptions so errors are
+ # readily traceable. bpo-46126
+ descriptions=False,
+ )
return functools.partial(QuietRegressionTestRunner, buffer=buffer)
def get_test_runner(stream, verbosity, capture_output=False):