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

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
class TestCheckDependencies(unittest.TestCase):
def test_deps(self):
try:
ret = check_dependencies()
except RuntimeError:
return # this happens if not every dependency is installed
ret = check_dependencies()
for key, value in ret.items():
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