summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-01-22 13:49:38 -0500
committerGitHub <noreply@github.com>2022-01-22 10:49:38 -0800
commita941e5927f7f2540946813606c61c6aea38db426 (patch)
treef53fde6e4271f7fea59fce00aee4ca84b1aac50c
parent6cacdb42454264ae75cab5e32bb62876da43bf6f (diff)
downloadcpython-git-a941e5927f7f2540946813606c61c6aea38db426.tar.gz
bpo-46126: Disable 'descriptions' when running tests internally. (GH-30194)
-rw-r--r--Lib/test/support/testresult.py6
-rw-r--r--Misc/NEWS.d/next/Tests/2021-12-18-22-23-50.bpo-46126.0LH3Yb.rst1
2 files changed, 6 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):
diff --git a/Misc/NEWS.d/next/Tests/2021-12-18-22-23-50.bpo-46126.0LH3Yb.rst b/Misc/NEWS.d/next/Tests/2021-12-18-22-23-50.bpo-46126.0LH3Yb.rst
new file mode 100644
index 0000000000..b7360b3645
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2021-12-18-22-23-50.bpo-46126.0LH3Yb.rst
@@ -0,0 +1 @@
+Disable 'descriptions' when running tests internally.