@@ -58,6 +58,11 @@ def test_iswrapped():
5858 doc = pymupdf .open (filename )
5959 page = doc [0 ]
6060 assert page .is_wrapped
61+ wt = pymupdf .TOOLS .mupdf_warnings ()
62+ if pymupdf .mupdf_version_tuple >= (1 , 26 , 0 ):
63+ assert wt == 'bogus font ascent/descent values (0 / 0)'
64+ else :
65+ assert not wt
6166
6267
6368def test_wrapcontents ():
@@ -73,7 +78,10 @@ def test_wrapcontents():
7378 rebased = hasattr (pymupdf , 'mupdf' )
7479 if rebased :
7580 wt = pymupdf .TOOLS .mupdf_warnings ()
76- assert wt == 'PDF stream Length incorrect'
81+ if pymupdf .mupdf_version_tuple >= (1 , 26 , 0 ):
82+ assert wt == 'bogus font ascent/descent values (0 / 0)\n PDF stream Length incorrect'
83+ else :
84+ assert wt == 'PDF stream Length incorrect'
7785
7886
7987def test_page_clean_contents ():
@@ -240,6 +248,11 @@ def test_get_text_dict():
240248 blocks = page .get_text ("dict" )["blocks" ]
241249 # Check no opaque types in `blocks`.
242250 json .dumps ( blocks , indent = 4 )
251+ wt = pymupdf .TOOLS .mupdf_warnings ()
252+ if pymupdf .mupdf_version_tuple >= (1 , 26 , 0 ):
253+ assert wt == 'bogus font ascent/descent values (0 / 0)'
254+ else :
255+ assert not wt
243256
244257def test_font ():
245258 font = pymupdf .Font ()
0 commit comments