Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz committed Jan 9, 2025
1 parent f102e84 commit 57ec320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numcodecs/tests/test_zarr3.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ def test_generic_bytes_codec(
):
try:
codec_class()._codec # noqa: B018
except ValueError as e:
except ValueError as e: # pragma: no cover
if "codec not available" in str(e):
pytest.xfail(f"{codec_class.codec_name} is not available: {e}")
else:
raise # pragma: no cover
raise
except ImportError as e: # pragma: no cover
pytest.xfail(f"{codec_class.codec_name} is not available: {e}")

Expand Down

0 comments on commit 57ec320

Please sign in to comment.