Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Before b3468f79efa45c8adaf86c0b9b797b9b3d4c12a2 the TestResult methods 
(addFailure, addError, addSkip, addExpectedFailure, addUnexpectedSuccess) were 
called immediately after running the test method. After that change all skips, 
failures and errors were accumulated separately and TestResult was updated only 
after the test cleanup. I do not know whether there were reasons for this or it 
is just an implementation artifact.

The proposed PR makes addFailure, addError, addSkip and addSubTest be called 
immediately after raising an exception or finishing a subtest. 
addExpectedFailure, addUnexpectedSuccess and addSuccess still need to wait the 
end of the test cleanup.

----------
versions: +Python 3.11

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30856>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to