Skip to content

Commit 900c232

Browse files
tests/: fixes for test_1645() and recent mupdf.
Removed expected outputs for older mupdf versions. mupdf master and 1.25.x both behave identically now, and PyMuPDF now shows the text annotation.
1 parent 1f8da4f commit 900c232

File tree

5 files changed

+1
-9
lines changed

5 files changed

+1
-9
lines changed
2.58 KB
Binary file not shown.
-2.54 KB
Binary file not shown.
-2.54 KB
Binary file not shown.
-2.58 KB
Binary file not shown.

tests/test_annots.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,7 @@ def test_1645():
230230
pymupdf.TOOLS.set_annot_stem('jorj')
231231
try:
232232
path_in = os.path.abspath( f'{__file__}/../resources/symbol-list.pdf')
233-
234-
if pymupdf.mupdf_version_tuple >= (1, 25, 4):
235-
path_expected = os.path.abspath( f'{__file__}/../../tests/resources/test_1645_expected_1.25.4.pdf')
236-
elif pymupdf.mupdf_version_tuple >= (1, 25):
237-
path_expected = os.path.abspath( f'{__file__}/../../tests/resources/test_1645_expected_1.25.pdf')
238-
elif pymupdf.mupdf_version_tuple >= (1, 24, 2):
239-
path_expected = os.path.abspath( f'{__file__}/../../tests/resources/test_1645_expected_1.24.2.pdf')
240-
else:
241-
path_expected = os.path.abspath( f'{__file__}/../../tests/resources/test_1645_expected_1.24.pdf')
233+
path_expected = os.path.abspath( f'{__file__}/../../tests/resources/test_1645_expected.pdf')
242234
path_out = os.path.abspath( f'{__file__}/../test_1645_out.pdf')
243235
doc = pymupdf.open(path_in)
244236
page = doc[0]

0 commit comments

Comments
 (0)