R. David Murray added the comment:

Not having addClassCleanup means that my setUpClass method will have four 
try/excepts in it, as will my tearDownClass (I have four fixtures I'm setting 
up for the tests).

So, no, it isn't strictly needed, but it is prettier :).  As Robert says, 
though, it makes for a nice symmetry in the API.  Basically, I like to see 
tearDown deprecated, as I find the setup/addcleanup pattern much easier to 
write and, more importantly, to read.

----------

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

Reply via email to