[issue29152] unittest subTest does not call addFailure

2017-01-23 Thread Martin Panter

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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29152] unittest subTest does not call addFailure

2017-01-23 Thread kristall

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29152] unittest subTest does not call addFailure

2017-01-04 Thread Berker Peksag

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 = self.failures
else:
errors = self.errors
errors.append((subtest, self._exc_info_to_string(err, test)))

I don't know whether it was intentional or not so I'm adding Antoine to nosy 
list.

(I removed 3.4 from the versions field because it's in security-fix-only mode.)

--
components: +Library (Lib) -Tests
nosy: +berker.peksag, pitrou
stage:  -> test needed
type:  -> behavior
versions: +Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29152] unittest subTest does not call addFailure

2017-01-04 Thread kristall

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: 284635
nosy: kristall
priority: normal
severity: normal
status: open
title: unittest subTest does not call addFailure
versions: Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com