deinit weboob after a test
This commit is contained in:
parent
85b413f199
commit
64175296dc
1 changed files with 9 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue