[issue39450] unittest TestCase shortDescription does not strip whitespace

2020-01-24 Thread Steve C
Change by Steve C : -- keywords: +patch pull_requests: +17559 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18175 ___ Python tracker <https://bugs.python.org/issu

[issue39450] unittest TestCase shortDescription does not strip whitespace

2020-01-24 Thread Steve C
New submission from Steve C : When running unit tests with the --verbose flag test descriptions are run using the first line of the test case's docstring. If the first character of the docstring is a newline, no description is printed. Examples: Current code expects docstrings to look like