Michael Foord added the comment:

Changing the signature of tearDown would be backwards incompatible. 
addSuccessCleanup is an interesting idea - cleanup functions that are only 
executed if the test passes. (What to do if a cleanup function raises an 
exception though? And when do these get executed - before or after standard 
cleanups.) 

In general cleanup functions are an improvement on tearDown.

----------
assignee:  -> michael.foord

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

Reply via email to