tests: libmat2: RuntimeError cannot be thrown by chech_dependencies
Remove the try/except logic when calling check_dependencies, as it cannot throw the exception anymore (it's caught already in the function). Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
This commit is contained in:
parent
ef665e6dc1
commit
51ab2db279
@ -14,11 +14,7 @@ from libmat2 import check_dependencies, video, archive, web, epub
|
|||||||
|
|
||||||
class TestCheckDependencies(unittest.TestCase):
|
class TestCheckDependencies(unittest.TestCase):
|
||||||
def test_deps(self):
|
def test_deps(self):
|
||||||
try:
|
|
||||||
ret = check_dependencies()
|
ret = check_dependencies()
|
||||||
except RuntimeError:
|
|
||||||
return # this happens if not every dependency is installed
|
|
||||||
|
|
||||||
for key, value in ret.items():
|
for key, value in ret.items():
|
||||||
self.assertTrue(value, "The value for %s is False" % key)
|
self.assertTrue(value, "The value for %s is False" % key)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user