Skip to content

Commit 2ae420b

Browse files
tests/test_general.py:test_3654(): fix for latest mupdf.
1 parent 1b51bb9 commit 2ae420b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_general.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,9 +1476,10 @@ def test_3654():
14761476
content += page.get_text() + '\n\n'
14771477
content = content.strip()
14781478

1479-
# As of 2024-07-04 we get a warning for this input file.
1480-
wt = pymupdf.TOOLS.mupdf_warnings()
1481-
assert wt == 'dropping unclosed output'
1479+
if pymupdf.mupdf_version_tuple < (1, 25):
1480+
# As of 2024-07-04 we get a warning for this input file.
1481+
wt = pymupdf.TOOLS.mupdf_warnings()
1482+
assert wt == 'dropping unclosed output'
14821483

14831484
def test_3727():
14841485
if pymupdf.mupdf_version_tuple < (1, 24, 9):

0 commit comments

Comments
 (0)