[issue5531] unittest: allow failures in tearDown method

Tim Cuthbertson report at bugs.python.org
Sun Mar 22 06:33:22 CET 2009


Tim Cuthbertson <tim3d.junk at gmail.com> added the comment:

I agree that this is not normally the point of tearDown methods.
However, allowing it reduces repetition when you want to verify that
some invariant is not violated by any test.

I also think that as far as the test writer is concerned, an assertion
error is a failed test - regardless of where in the code it came from.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5531>
_______________________________________


More information about the Python-bugs-list mailing list