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 Victor Engmark
Recipients Victor Engmark
Date 2018-02-23.22:08:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519423717.02.0.467229070634.issue32926@psf.upfronthosting.co.za>
In-reply-to
Content
The community has come up with multiple hacks [1] to be able to inspect the current test result in tearDown (to collect more expensive diagnostics only when the test fails). It would be great to have a documented and simple way to check whether the test currently in play was successful. To be clear, TestCase.wasSuccessful() is not useful in this case, since it only reports whether all tests run so far were successful.

[1] https://stackoverflow.com/q/4414234/96588
History
Date User Action Args
2018-02-23 22:08:37Victor Engmarksetrecipients: + Victor Engmark
2018-02-23 22:08:37Victor Engmarksetmessageid: <1519423717.02.0.467229070634.issue32926@psf.upfronthosting.co.za>
2018-02-23 22:08:37Victor Engmarklinkissue32926 messages
2018-02-23 22:08:36Victor Engmarkcreate