Skip to content

Commit bc65105

Browse files
sebrasjulian-smith-artifex-com
authored andcommitted
Update tests to upcoming MuPDF 1.27.0 and later.
1 parent 024872a commit bc65105

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
2.62 KB
Binary file not shown.

tests/test_annots.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ def test_1645():
236236
pymupdf.TOOLS.set_annot_stem('jorj')
237237
try:
238238
path_in = os.path.abspath( f'{__file__}/../resources/symbol-list.pdf')
239-
path_expected = os.path.abspath( f'{__file__}/../../tests/resources/test_1645_expected.pdf')
239+
if pymupdf.mupdf_version_tuple >= (1, 27):
240+
path_expected = os.path.abspath( f'{__file__}/../../tests/resources/test_1645_expected-after-1.27.0.pdf')
241+
else:
242+
path_expected = os.path.abspath( f'{__file__}/../../tests/resources/test_1645_expected.pdf')
240243
path_out = os.path.abspath( f'{__file__}/../test_1645_out.pdf')
241244
doc = pymupdf.open(path_in)
242245
page = doc[0]

0 commit comments

Comments
 (0)