[Python-Dev] unittest2 plus class and module level fixtures in unittest

Antoine Pitrou solipsis at pitrou.net
Mon Mar 8 02:11:43 CET 2010


Le Mon, 08 Mar 2010 00:51:02 +0000,
Michael Foord <fuzzyman at voidspace.org.uk> a écrit :
> 
> In other news, class and module fixtures (setUpClass /
> tearDownClass / setUpModule / tearDownModule) are now implemented in
> unittest (in trunk 
> - not yet merged to py3k). These features are tested but I'm sure
> there are some lurking bugs or oddities, so please try them out. I
> have not yet added documentation for them; I'll pull it out from this
> email as a starting point.
> 
> I'd rather this thread didn't become *another* debate on the merit of 
> these features, but perhaps that is too much to hope for.

Just for the record, could you sum up the reasons why you/we decided on
this route rather than e.g. adding a test-resources-like facility?

(I'm not saying I disagree, it's just that I didn't remember a decision
had already been made on this point)

Thanks for all your work on this!

cheers

Antoine.




More information about the Python-Dev mailing list