Skip to content

Commit f2097b6

Browse files
committed
tests/test_pixmap.py: fix test_4423() with latest mupdf master.
1 parent bf51516 commit f2097b6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/test_pixmap.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,10 @@ def test_4423():
569569

570570
assert not ee, f'Received unexpected exception: {e}'
571571
wt = pymupdf.TOOLS.mupdf_warnings()
572-
assert wt == 'format error: cannot find object in xref (56 0 R)\nformat error: cannot find object in xref (68 0 R)'
572+
if pymupdf.mupdf_version_tuple >= (1, 28, 0):
573+
assert wt == ''
574+
else:
575+
assert wt == 'format error: cannot find object in xref (56 0 R)\nformat error: cannot find object in xref (68 0 R)'
573576

574577

575578
def test_4445():

0 commit comments

Comments
 (0)