Commit 51ab2db2 authored by atenart's avatar atenart Committed by jvoisin
Browse files

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: atenart's avatarAntoine Tenart <antoine.tenart@ack.tf>
parent ef665e6d
...@@ -14,11 +14,7 @@ from libmat2 import check_dependencies, video, archive, web, epub ...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment