Skip to content

Commit

Permalink
tests/: update two tests to expect fixed behaviour with mupdf-1.24.11.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Nov 19, 2024
1 parent 1de2c97 commit 1667ec0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_pixmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def test_3448():
pixmap_expected = pymupdf.Pixmap(path_expected)
diff = gentle_compare.pixmaps_rms(pixmap, pixmap_expected)
print(f'{diff=}')
if pymupdf.mupdf_version_tuple < (1, 25):
if pymupdf.mupdf_version_tuple < (1, 24, 11):
assert 30 <= diff < 45
else:
assert 0 <= diff < 0.5
2 changes: 1 addition & 1 deletion tests/test_story.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def test_3813():
text = page.get_text()
text_utf8 = text.encode()

if pymupdf.mupdf_version_tuple < (1, 25):
if pymupdf.mupdf_version_tuple < (1, 24, 11):
# MuPDF gets things wrong.
text_expected_utf8 = b'Count is \xef\xac\x81ne:\n1. Lorem\n1. Sub Lorem\n2. Sub Lorem\n2. Lorem\n3. Lorem\nBroken count:\n1. Lorem\n\xe2\x80\xa2 Sub Lorem\n\xe2\x80\xa2 Sub Lorem\n4. Lorem\n5. Lorem\n'
else:
Expand Down

0 comments on commit 1667ec0

Please sign in to comment.