[issue25894] unittest subTest failure causes result to be omitted from listing

Robert Collins report at bugs.python.org
Tue Mar 15 19:04:23 EDT 2016


Robert Collins added the comment:

The basic model is this:
 - a test can have a single outcome [yes, the api is ambiguous, but there it is]
 - subtests let you identify multiple variations of a single test (note the id tweak etc) and *may* be reported differently

We certainly must not report the test as a whole passing if any subtest did not pass.

Long term I want to remove the error/failure partitioning of exceptions; its not actually useful.

The summary for the test, when subtests are used, should probably enumerate the states.

test_foo (3 passed, 2 skipped, 1 failure)

in much the same way the run as a whole is enumerated.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25894>
_______________________________________


More information about the Python-bugs-list mailing list