Skip to content

Commit 44047a5

Browse files
sebrasJorjMcKie
authored andcommitted
Updated tests to take MuPDF 1.26.6 into account.
1 parent 9dc88b7 commit 44047a5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/test_general.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ def test_4533():
19271927
cp = subprocess.run(command, shell=1, check=0)
19281928
e = cp.returncode
19291929
print(f'{e=}')
1930-
if pymupdf.mupdf_version_tuple >= (1, 27):
1930+
if pymupdf.mupdf_version_tuple >= (1, 26, 6):
19311931
assert e == 0
19321932
else:
19331933
assert e != 0

tests/test_insertpdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def test_4571():
326326
print(f'Have saved to: {path_out=}')
327327
with open(path_out, 'rb') as f:
328328
content = f.read()
329-
if pymupdf.mupdf_version_tuple >= (1, 27):
329+
if pymupdf.mupdf_version_tuple >= (1, 26, 6):
330330
# Correct.
331331
assert b'<</Type/Pages/Count 6/Kids[4 0 R 6 0 R 12 0 R 13 0 R 14 0 R 15 0 R]>>' in content
332332
else:

tests/test_pixmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ def test_4388():
624624

625625
rms = gentle_compare.pixmaps_rms(pixmap_correct, pixmap_test)
626626
print(f'{rms=}')
627-
if pymupdf.mupdf_version_tuple >= (1, 27):
627+
if pymupdf.mupdf_version_tuple >= (1, 26, 6):
628628
assert rms == 0
629629
else:
630630
assert rms >= 10

0 commit comments

Comments
 (0)