1
0
Fork 0

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:
Antoine Tenart 2019-05-11 11:20:04 +02:00 committed by jvoisin
parent ef665e6dc1
commit 51ab2db279
1 changed files with 1 additions and 5 deletions

View File

@ -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)