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())
def run(self, result):
if not self.backend:
result.startTest(self)
result.stopTest(self)
raise SkipTest()
try:
if not self.backend:
result.startTest(self)
result.stopTest(self)
raise SkipTest()
return TestCase.run(self, result)
return TestCase.run(self, result)
finally:
self.weboob.deinit()