From: Jason R. Coombs Date: Sat, 22 Jan 2022 18:49:38 +0000 (-0500) Subject: bpo-46126: Disable 'descriptions' when running tests internally. (GH-30194) X-Git-Tag: v3.11.0a5~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a941e5927f7f2540946813606c61c6aea38db426;p=thirdparty%2FPython%2Fcpython.git bpo-46126: Disable 'descriptions' when running tests internally. (GH-30194) --- diff --git a/Lib/test/support/testresult.py b/Lib/test/support/testresult.py index 2cd1366cd8a9..eb2279a88f9a 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 000000000000..b7360b36454e --- /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.