From 2f84b7a8b7c50e8fe4ea0f1f59a6558527fbb87a Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 21 Aug 2025 03:12:07 +0200 Subject: [PATCH] Updated tests to take MuPDF 1.26.6 into account. --- tests/test_general.py | 2 +- tests/test_insertpdf.py | 2 +- tests/test_pixmap.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_general.py b/tests/test_general.py index 777148d7c..8edc8dd8f 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -1927,7 +1927,7 @@ def test_4533(): cp = subprocess.run(command, shell=1, check=0) e = cp.returncode print(f'{e=}') - if pymupdf.mupdf_version_tuple >= (1, 27): + if pymupdf.mupdf_version_tuple >= (1, 26, 6): assert e == 0 else: assert e != 0 diff --git a/tests/test_insertpdf.py b/tests/test_insertpdf.py index e7961b6a0..9689beb8c 100644 --- a/tests/test_insertpdf.py +++ b/tests/test_insertpdf.py @@ -326,7 +326,7 @@ def test_4571(): print(f'Have saved to: {path_out=}') with open(path_out, 'rb') as f: content = f.read() - if pymupdf.mupdf_version_tuple >= (1, 27): + if pymupdf.mupdf_version_tuple >= (1, 26, 6): # Correct. assert b'<>' in content else: diff --git a/tests/test_pixmap.py b/tests/test_pixmap.py index 0fc3a52e0..4c91bcf6c 100644 --- a/tests/test_pixmap.py +++ b/tests/test_pixmap.py @@ -624,7 +624,7 @@ def test_4388(): rms = gentle_compare.pixmaps_rms(pixmap_correct, pixmap_test) print(f'{rms=}') - if pymupdf.mupdf_version_tuple >= (1, 27): + if pymupdf.mupdf_version_tuple >= (1, 26, 6): assert rms == 0 else: assert rms >= 10