From 77f22190df1291569b93714de25da558ce99b8a1 Mon Sep 17 00:00:00 2001 From: FriedrichFroebel Date: Tue, 13 Feb 2024 20:10:00 +0100 Subject: [PATCH] fix condition --- tests/examples/test_djvu2png.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/examples/test_djvu2png.py b/tests/examples/test_djvu2png.py index 5d77b2f..e5861f5 100644 --- a/tests/examples/test_djvu2png.py +++ b/tests/examples/test_djvu2png.py @@ -12,7 +12,7 @@ class Djvu2PngTestCase(TestCase): def setUpClass(cls): if find_spec('numpy') is None: raise SkipTest('Package numpy not found.') - if find_spec('cairocffi') is None or find_spec('pycairo') is None: + if find_spec('cairocffi') is None and find_spec('pycairo') is None: raise SkipTest('Cairo bindings not found.') def check(self, mode: str):