Move setUpResources and tearDownResources to functions

Bug #504146 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testresources
Fix Released
Wishlist
Robert Collins

Bug Description

setUpResources and tearDownResources are useful routines, but by putting them on ResourcedTestCase, it makes it harder for people to re-use them.

In particular, to use them in testtools, you need to use multiple inheritance and get the addCleanup / tearDown balance right.

It would be nice if instead of methods they were functions, or at least staticmethods.

Related branches

Revision history for this message
Jonathan Lange (jml) wrote :
Changed in testresources:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Robert Collins (lifeless) wrote :

This was fixed in 0.2.3

Changed in testresources:
assignee: nobody → Robert Collins (lifeless)
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.