diff --git a/tests/leaks_test.py b/tests/leaks_test.py index e16e6fab..8d77e482 100644 --- a/tests/leaks_test.py +++ b/tests/leaks_test.py @@ -3,6 +3,7 @@ from io import BytesIO from os import chdir, path from pathlib import Path +from platform import machine import pytest from PIL import Image @@ -83,6 +84,8 @@ def perform_open_to_numpy(iterations, image_path): _array = np.asarray(heif_file[0]) # noqa +@pytest.mark.skipif(sys.platform.lower() == "win32", reason="requires Unix or macOS") +@pytest.mark.skipif(machine().find("armv7") != -1, reason="skip on 32 bit arm") def test_open_to_numpy_mem_leaks(): mem_limit = None for i in range(1000):