Skip to content

Commit 9cf9f14

Browse files
tests/: test_4245(): update to match latest mupdf.
1 parent 61b8baf commit 9cf9f14

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
-2 Bytes
Loading

tests/test_textextract.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,15 @@ def test_4245():
473473

474474
path_expected = os.path.normpath(f'{__file__}/../../tests/resources/test_4245_expected.png')
475475
rms = gentle_compare.pixmaps_rms(path_expected, pixmap)
476+
pixmap_diff = gentle_compare.pixmaps_diff(path_expected, pixmap)
477+
path_diff = os.path.normpath(f'{__file__}/../../tests/resources/test_4245_diff.png')
478+
pixmap_diff.save(path_diff)
476479
print(f'{rms=}')
477-
assert rms < 0.01
480+
if pymupdf.mupdf_version_tuple < (1, 26):
481+
# Prior to fix for mupdf bug 708274.
482+
assert rms < 0.2
483+
else:
484+
assert rms < 0.01
478485

479486

480487
def test_4180():

0 commit comments

Comments
 (0)