Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7bff1c3

Browse files
committed
bpo-46126: Disable 'descriptions' when running tests internally.
1 parent 9b52920 commit 7bff1c3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Lib/test/support/testresult.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ def get_test_runner_class(verbosity, buffer=False):
145145
return functools.partial(unittest.TextTestRunner,
146146
resultclass=RegressionTestResult,
147147
buffer=buffer,
148-
verbosity=verbosity)
148+
verbosity=verbosity,
149+
# disable descriptions so errors are
150+
# readily traceable. bpo-46126
151+
descriptions=False,
152+
)
149153
return functools.partial(QuietRegressionTestRunner, buffer=buffer)
150154

151155
def get_test_runner(stream, verbosity, capture_output=False):
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Disable 'descriptions' when running tests internally.

0 commit comments

Comments
 (0)