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