diff options
| author | Antoine Tenart | 2019-05-11 11:20:04 +0200 |
|---|---|---|
| committer | jvoisin | 2019-05-13 23:35:06 +0200 |
| commit | 51ab2db2793e290f8df4791bf552e3a2531de8d4 (patch) | |
| tree | e8a92d92398645aa1b7bd2800757c6c00b483b36 /tests | |
| parent | ef665e6dc1fef565ed3894be250db71ed5fb79a5 (diff) | |
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>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_libmat2.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test_libmat2.py b/tests/test_libmat2.py index 4f562e6..de5f67c 100644 --- a/tests/test_libmat2.py +++ b/tests/test_libmat2.py | |||
| @@ -14,11 +14,7 @@ from libmat2 import check_dependencies, video, archive, web, epub | |||
| 14 | 14 | ||
| 15 | class TestCheckDependencies(unittest.TestCase): | 15 | class TestCheckDependencies(unittest.TestCase): |
| 16 | def test_deps(self): | 16 | def test_deps(self): |
| 17 | try: | 17 | ret = check_dependencies() |
| 18 | ret = check_dependencies() | ||
| 19 | except RuntimeError: | ||
| 20 | return # this happens if not every dependency is installed | ||
| 21 | |||
| 22 | for key, value in ret.items(): | 18 | for key, value in ret.items(): |
| 23 | self.assertTrue(value, "The value for %s is False" % key) | 19 | self.assertTrue(value, "The value for %s is False" % key) |
| 24 | 20 | ||
