Michael Foord <mich...@voidspace.org.uk> added the comment:

Destructors are special cased in many languages and tearDown is not a 
destructor. More importantly though the change you suggest would be backwards 
incompatible.

The 'correct' way to do this in new code is to use cleanUp functions which 
*are* called even if an exception is raised during setUp.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9868>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to