1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
From: Norbert Preining <norbert@preining.info>
Date: Thu, 26 Dec 2019 13:56:13 +0900
Subject: disable unrar test since the module is not in Debian main
Forwarded: not-needed
disable unrar test since the module is not in Debian main
---
src/calibre/test_build.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/calibre/test_build.py b/src/calibre/test_build.py
index b5f3eb7..cc2851f 100644
--- a/src/calibre/test_build.py
+++ b/src/calibre/test_build.py
@@ -24,6 +24,10 @@ from calibre.utils.resources import get_path as P
is_ci = os.environ.get('CI', '').lower() == 'true'
is_sanitized = 'libasan' in os.environ.get('LD_PRELOAD', '')
+try:
+ import unrardll
+except ModuleNotFoundError:
+ unrardll = None
def print(*a):
builtins.print(*a, flush=True, file=sys.__stdout__)
@@ -471,6 +475,7 @@ class BuildTest(unittest.TestCase):
from calibre.gui2.win_file_dialogs import test
test()
+ @unittest.skipUnless(unrardll, 'Module unrardll is missing')
def test_unrar(self):
from calibre.utils.unrar import test_basic
test_basic()
|