[issue25894] unittest subTest failure causes result to be omitted from listing
Serhiy Storchaka
report at bugs.python.org
Sun Sep 5 13:56:47 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Any suggestions for the format of output? Currently PR 28082 formats lines for subtest skipping, failure or error with a 2-space identation. Lines for skipping, failure or error in tearDown() or functions registered with addCallback() do not differ from a line skipping, failure or error in the test method itself.
I am not sure about backporting this change. On one hand, it fixes an old flaw in the unittest output. On other hand, the change affects not only subtests and can confuse programs which parse the unittest output because the test descriptions can occur multiple times.
----------
versions: +Python 3.11 -Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue25894>
_______________________________________
More information about the Python-bugs-list
mailing list