diff --git a/tests/test_pixmap.py b/tests/test_pixmap.py index 33e4c2f45..85093fee1 100644 --- a/tests/test_pixmap.py +++ b/tests/test_pixmap.py @@ -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 diff --git a/tests/test_story.py b/tests/test_story.py index 5eb2628db..846fee668 100644 --- a/tests/test_story.py +++ b/tests/test_story.py @@ -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: