Skip to content

Commit 62a6e4c

Browse files
tests/test_pixmap.py: fix pyodide failure with mupdf-1.26.x.
1 parent 55d2a00 commit 62a6e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pixmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def test_4435():
522522
with pymupdf.open(path) as document:
523523
page = document[2]
524524
print(f'Calling page.get_pixmap().', flush=1)
525-
if os.environ.get('PYODIDE_ROOT'):
525+
if pymupdf.mupdf_version_tuple >= (1, 27) and os.environ.get('PYODIDE_ROOT'):
526526
# 2025-11-07: Expect alloc failure.
527527
try:
528528
pixmap = page.get_pixmap(alpha=False, dpi=120)

0 commit comments

Comments
 (0)