Skip to content
Snippets Groups Projects
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: default avatarAntoine Tenart <antoine.tenart@ack.tf>
parent ef665e6d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment