Skip to content

Commit

Permalink
tests/: test_4180(): update to match latest mupdf.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Feb 3, 2025
1 parent 9cf9f14 commit f63cb4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Binary file modified tests/resources/test_4180_expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion tests/test_textextract.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,15 @@ def test_4180():

path_expected = os.path.normpath(f'{__file__}/../../tests/resources/test_4180_expected.png')
rms = gentle_compare.pixmaps_rms(path_expected, pixmap)
pixmap_diff = gentle_compare.pixmaps_diff(path_expected, pixmap)
path_diff = os.path.normpath(f'{__file__}/../../tests/resources/test_4180_diff.png')
pixmap_diff.save(path_diff)
print(f'{rms=}')
assert rms < 0.01
if pymupdf.mupdf_version_tuple < (1, 26):
# Prior to fix for mupdf bug 708274.
assert rms < 0.3
else:
assert rms < 0.01


def test_4182():
Expand Down

0 comments on commit f63cb4e

Please sign in to comment.