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 d504d74..2be4c1d 100644
--- a/src/calibre/test_build.py
+++ b/src/calibre/test_build.py
@@ -24,6 +24,10 @@ from polyglot.builtins import iteritems
 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__)
@@ -407,6 +411,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()
