From 10b49d0c76429e7c9fdfec36338d98e81a2c4983 Mon Sep 17 00:00:00 2001 From: Alexander Piskun Date: Mon, 4 Jul 2022 01:36:16 +0300 Subject: [PATCH] `numpy_mem_leaks` only on x64 --- tests/leaks_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/leaks_test.py b/tests/leaks_test.py index 8d77e482..b4daff6a 100644 --- a/tests/leaks_test.py +++ b/tests/leaks_test.py @@ -85,10 +85,10 @@ def perform_open_to_numpy(iterations, image_path): @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") +@pytest.mark.skipif(machine().find("x86_64") == -1, reason="run only on x86_64") def test_open_to_numpy_mem_leaks(): mem_limit = None - for i in range(1000): + for i in range(500): perform_open_to_numpy(1, Path("images/rgb8_512_512_1_0.heic")) gc.collect() mem = _get_mem_usage()