From 0f89d7e2553ae6cefd1dc4ed99853fdb47930aa5 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 12 Feb 2026 16:56:39 +0000 Subject: [PATCH] Updated test_2979 to cope with MuPDF 1.28.0 warning change. --- tests/test_tables.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/test_tables.py b/tests/test_tables.py index 9e4fdb869..d5fa5ef7f 100644 --- a/tests/test_tables.py +++ b/tests/test_tables.py @@ -184,10 +184,13 @@ def test_2979(): ), f"{pymupdf.TOOLS.set_small_glyph_heights()=}" wt = pymupdf.TOOLS.mupdf_warnings() - assert ( - wt - == "bogus font ascent/descent values (3117 / -2463)\n... repeated 2 times..." - ) + if pymupdf.mupdf_version_tuple >= (1, 28, 0): + assert ( wt == '' ) + else: + assert ( + wt + == "bogus font ascent/descent values (3117 / -2463)\n... repeated 2 times..." + ) def test_3062():