]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46126: Disable 'descriptions' when running tests internally. (GH-30194)
authorJason R. Coombs <jaraco@jaraco.com>
Sat, 22 Jan 2022 18:49:38 +0000 (13:49 -0500)
committerGitHub <noreply@github.com>
Sat, 22 Jan 2022 18:49:38 +0000 (10:49 -0800)
Lib/test/support/testresult.py
Misc/NEWS.d/next/Tests/2021-12-18-22-23-50.bpo-46126.0LH3Yb.rst [new file with mode: 0644]

index 2cd1366cd8a9e1fbfecd69aba6440f943890e742..eb2279a88f9a083ebe9da04e90feb7dc8b34d777 100644 (file)
@@ -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 (file)
index 0000000..b7360b3
--- /dev/null
@@ -0,0 +1 @@
+Disable 'descriptions' when running tests internally.