Skip to content

Commit

Permalink
fix tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcat88 committed Jul 3, 2022
1 parent 03c42f9 commit 7ffc4d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/leaks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 7ffc4d7

Please sign in to comment.