Skip to content

Commit a690c29

Browse files
tests/test_pixmap.py:test_4435(): avoid test failure on windows-x32, due to out of memory.
1 parent 40b5524 commit a690c29

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/test_pixmap.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,13 @@ def test_4435():
509509
with pymupdf.open(path) as document:
510510
page = document[2]
511511
print(f'Calling page.get_pixmap().', flush=1)
512-
if pymupdf.mupdf_version_tuple >= (1, 27) and os.environ.get('PYODIDE_ROOT'):
512+
if (
513+
pymupdf.mupdf_version_tuple >= (1, 27)
514+
and (
515+
os.environ.get('PYODIDE_ROOT')
516+
or (platform.system() == 'Windows' and sys.maxsize.bit_length()+1 == 32)
517+
)
518+
):
513519
# 2025-11-07: Expect alloc failure.
514520
try:
515521
pixmap = page.get_pixmap(alpha=False, dpi=120)

0 commit comments

Comments
 (0)