This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ezio.melotti, michael.foord, rbcollins, serhiy.storchaka, sir-sigurd
Date 2021-09-05.18:45:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630867539.32.0.0593005557173.issue30856@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-09-05 18:45:39serhiy.storchakasetrecipients: + serhiy.storchaka, rbcollins, ezio.melotti, michael.foord, sir-sigurd
2021-09-05 18:45:39serhiy.storchakasetmessageid: <1630867539.32.0.0593005557173.issue30856@roundup.psfhosted.org>
2021-09-05 18:45:39serhiy.storchakalinkissue30856 messages
2021-09-05 18:45:39serhiy.storchakacreate