Skip to content

Commit

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

0 comments on commit 10b49d0

Please sign in to comment.