New submission from Victor Engmark <>:

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.


messages: 312671
nosy: Victor Engmark
priority: normal
severity: normal
status: open
title: Add public TestCase method/property to get result of current test
type: enhancement

Python tracker <>
Python-bugs-list mailing list

Reply via email to