Martin Panter added the comment:
It is not obvious what the effect of not calling addFailure() is, but perhaps
this is related to Issue 25894? Failure and error statuses are not immediately
reported from subtests.
--
nosy: +martin.panter
___
Python
kristall added the comment:
Thanks for the quick 1st response. Since I put that part of my script on hold,
I'd like to ask if it is possible to estimate when Antoine will have a look at
this? Thanks in advance.
--
___
Python tracker
Berker Peksag added the comment:
Thanks for the report. That's because TestResult.addSubTest() updates
TestResult.errors and TestResult.failures itself instead of calling the
addError() and addFailure() methods respectively:
if issubclass(err[0], test.failureException):
errors =
New submission from kristall:
unittests subTests do not call addFailure in the case of a failure.
Please see
http://stackoverflow.com/questions/41432353/python3-4-unittest-addfailure-not-called-when-subtests-are-used
for detailed problemdescription.
--
components: Tests
messages: