deinit weboob after a test

This commit is contained in:
Romain Bignon 2010-12-03 17:47:52 +01:00
commit 64175296dc

View file

@ -36,9 +36,12 @@ class BackendTest(TestCase):
self.backend = choice(self.weboob.backend_instances.values()) self.backend = choice(self.weboob.backend_instances.values())
def run(self, result): def run(self, result):
if not self.backend: try:
result.startTest(self) if not self.backend:
result.stopTest(self) result.startTest(self)
raise SkipTest() result.stopTest(self)
raise SkipTest()
return TestCase.run(self, result) return TestCase.run(self, result)
finally:
self.weboob.deinit()