[Python-checkins] bpo-46126: Restore 'descriptions' when running tests internally. (GH-32128)

miss-islington webhook-mailer at python.org
Sun Apr 3 15:33:38 EDT 2022


https://github.com/python/cpython/commit/84acb5cad1b871bb8729cbf1d036b84cbe1636f0
commit: 84acb5cad1b871bb8729cbf1d036b84cbe1636f0
branch: main
author: Jason R. Coombs <jaraco at jaraco.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-04-03T12:33:28-07:00
summary:

bpo-46126: Restore 'descriptions' when running tests internally. (GH-32128)



This reverts commit a941e5927f7f2540946813606c61c6aea38db426 (GH-30194).

Automerge-Triggered-By: GH:jaraco

files:
A Misc/NEWS.d/next/Tests/2022-03-26-11-41-19.bpo-46126.q14Ioy.rst
M Lib/test/support/testresult.py

diff --git a/Lib/test/support/testresult.py b/Lib/test/support/testresult.py
index eb2279a88f9a0..2cd1366cd8a9e 100644
--- a/Lib/test/support/testresult.py
+++ b/Lib/test/support/testresult.py
@@ -145,11 +145,7 @@ def get_test_runner_class(verbosity, buffer=False):
         return functools.partial(unittest.TextTestRunner,
                                  resultclass=RegressionTestResult,
                                  buffer=buffer,
-                                 verbosity=verbosity,
-                                 # disable descriptions so errors are
-                                 # readily traceable. bpo-46126
-                                 descriptions=False,
-                                 )
+                                 verbosity=verbosity)
     return functools.partial(QuietRegressionTestRunner, buffer=buffer)
 
 def get_test_runner(stream, verbosity, capture_output=False):
diff --git a/Misc/NEWS.d/next/Tests/2022-03-26-11-41-19.bpo-46126.q14Ioy.rst b/Misc/NEWS.d/next/Tests/2022-03-26-11-41-19.bpo-46126.q14Ioy.rst
new file mode 100644
index 0000000000000..0877b0e385743
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2022-03-26-11-41-19.bpo-46126.q14Ioy.rst
@@ -0,0 +1 @@
+Restore 'descriptions' when running tests internally.



More information about the Python-checkins mailing list