From f2097b6d60b54136d93cc47a69fa5ae913c810fa Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Wed, 29 Apr 2026 16:47:54 +0200 Subject: [PATCH] tests/test_pixmap.py: fix test_4423() with latest mupdf master. --- tests/test_pixmap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_pixmap.py b/tests/test_pixmap.py index 81c764cb1..ac784dd63 100644 --- a/tests/test_pixmap.py +++ b/tests/test_pixmap.py @@ -569,7 +569,10 @@ def test_4423(): assert not ee, f'Received unexpected exception: {e}' wt = pymupdf.TOOLS.mupdf_warnings() - assert wt == 'format error: cannot find object in xref (56 0 R)\nformat error: cannot find object in xref (68 0 R)' + if pymupdf.mupdf_version_tuple >= (1, 28, 0): + assert wt == '' + else: + assert wt == 'format error: cannot find object in xref (56 0 R)\nformat error: cannot find object in xref (68 0 R)' def test_4445():