Skip to content

Commit 564f14d

Browse files
tests/test_pixmap.py: fix test_4435() with latest mupdf master.
1 parent b2b528d commit 564f14d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_pixmap.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,9 @@ def test_4435():
544544
print(f'Called page.get_pixmap().', flush=1)
545545
if pymupdf.mupdf_version_tuple < (1, 27):
546546
assert pymupdf.TOOLS.mupdf_warnings() == 'bogus font ascent/descent values (0 / 0)\n... repeated 9 times...'
547+
elif pymupdf.mupdf_version_tuple >= (1, 28, 0):
548+
wt_expected = ('limit error: Overly large image\ncannot render glyph\n' * 42).rstrip()
549+
assert pymupdf.TOOLS.mupdf_warnings() == wt_expected
547550

548551

549552
def test_4423():

0 commit comments

Comments
 (0)