[issue5679] cleanUp stack for unittest

Michael Foord report at bugs.python.org
Sat Apr 4 01:50:16 CEST 2009


Michael Foord <michael at voidspace.org.uk> added the comment:

And actually your conditionally_undo_setup() call in setUp is incorrect.
It should in an except block that re-raises rather than a finally block
(which will do the cleanup even in non-exceptional circumstances). Easy
code to get wrong...

----------

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


More information about the Python-bugs-list mailing list