Message401102
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. |
|
Date |
User |
Action |
Args |
2021-09-05 18:45:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rbcollins, ezio.melotti, michael.foord, sir-sigurd |
2021-09-05 18:45:39 | serhiy.storchaka | set | messageid: <1630867539.32.0.0593005557173.issue30856@roundup.psfhosted.org> |
2021-09-05 18:45:39 | serhiy.storchaka | link | issue30856 messages |
2021-09-05 18:45:39 | serhiy.storchaka | create | |
|