[issue5538] tearDown in unittest should be executed regardless of result in setUp
Steve Purcell
report at bugs.python.org
Mon Mar 23 09:48:49 CET 2009
Steve Purcell <purcell at users.sourceforge.net> added the comment:
Indeed -- if some of the setUp code is likely to fail, that should be
handled right there in setUp, by reversing any other setup code that may
have executed.
It's harder to write a tearDown that will work reliably for any partially
successful setUp.
----------
resolution: -> rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5538>
_______________________________________
More information about the Python-bugs-list
mailing list