- Various fixes (1.24.3, 1.24.4) - The Python module is now (1.24.3 and up) called `pymupdf`. `fitz` is still supported for backwards compatibility.
30 lines
953 B
Diff
30 lines
953 B
Diff
From 13594d8a26b80e7c2135e10bb90b370662c6914d Mon Sep 17 00:00:00 2001
|
|
Message-ID: <13594d8a26b80e7c2135e10bb90b370662c6914d.1714747656.git.mjg@fedoraproject.org>
|
|
From: Michael J Gruber <mjg@fedoraproject.org>
|
|
Date: Thu, 11 May 2023 16:40:03 +0200
|
|
Subject: [PATCH] test_pixmap: adjust to turbojpeg
|
|
|
|
Apparantly, different jpeg libraries decode the test jpg differently.
|
|
Adjust to turbojpeg's color count until upstream uses an invariant
|
|
format.
|
|
---
|
|
tests/test_pixmap.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/test_pixmap.py b/tests/test_pixmap.py
|
|
index 4ee10505..e7e3dc89 100644
|
|
--- a/tests/test_pixmap.py
|
|
+++ b/tests/test_pixmap.py
|
|
@@ -99,7 +99,7 @@ def test_color_count():
|
|
e.g. in Linux system installs.
|
|
'''
|
|
pm = pymupdf.Pixmap(imgfile)
|
|
- assert pm.color_count() == 40624
|
|
+ assert pm.color_count() == 39912
|
|
|
|
def test_memoryview():
|
|
pm = pymupdf.Pixmap(imgfile)
|
|
--
|
|
2.45.0.126.g110af8c3bd
|
|
|