[New-bugs-announce] [issue32926] Add public TestCase method/property to get result of current test

Victor Engmark report at bugs.python.org
Fri Feb 23 17:08:37 EST 2018


New submission from Victor Engmark <victor.engmark at gmail.com>:

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

----------
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 <report at bugs.python.org>
<https://bugs.python.org/issue32926>
_______________________________________


More information about the New-bugs-announce mailing list