Comment 2 for bug 1010379

Revision history for this message
Robert Collins (lifeless) wrote : Re: unittest setUp fails to cleanup resources (from tearDown) if setUp fails - knockon effect looks like testresources issue

Ok, so - this is basically no different with testresources than with any by-hand use of shared state across tests. Use of addCleanup rather than depending on tearDown running would fix it.

-> We should have the TestResources basic glue use addCleanup when possible.