bpo-46126: Disable 'descriptions' when running tests internally. (GH-30194)

This commit is contained in:
Jason R. Coombs 2022-01-22 13:49:38 -05:00 committed by GitHub
parent 6cacdb4245
commit a941e5927f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View 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):

View File

@ -0,0 +1 @@
Disable 'descriptions' when running tests internally.