From 8b85c6419c10627bbc6b7aec029a50fbcab625e9 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Fri, 14 Feb 2025 09:01:49 +0100 Subject: [PATCH 1/2] Only skip failing test on macOS --- numcodecs/tests/test_vlen_bytes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/numcodecs/tests/test_vlen_bytes.py b/numcodecs/tests/test_vlen_bytes.py index c43d7627..33e43dea 100644 --- a/numcodecs/tests/test_vlen_bytes.py +++ b/numcodecs/tests/test_vlen_bytes.py @@ -1,3 +1,5 @@ +import os +import sys import unittest import numpy as np @@ -86,7 +88,7 @@ def test_decode_errors(): # TODO: fix this test on GitHub actions somehow... # See https://github.com/zarr-developers/numcodecs/issues/683 -@pytest.mark.skip("Test is failing on GitHub actions.") +@pytest.mark.skipif(sys.platform == "darwin", reason="Test is failing on macOS on GitHub actions.") def test_encode_none(): a = np.array([b'foo', None, b'bar'], dtype=object) codec = VLenBytes() From f25851e717bb0e242152d63fd7f50c53de247e94 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 14 Feb 2025 08:09:36 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- numcodecs/tests/test_vlen_bytes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/numcodecs/tests/test_vlen_bytes.py b/numcodecs/tests/test_vlen_bytes.py index 33e43dea..467c9a85 100644 --- a/numcodecs/tests/test_vlen_bytes.py +++ b/numcodecs/tests/test_vlen_bytes.py @@ -1,4 +1,3 @@ -import os import sys import unittest