Skip to content

Commit

Permalink
Skip checksum32 tests if crc32 is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham authored Nov 13, 2024
1 parent 7523fc6 commit 4b3dc36
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion numcodecs/tests/test_checksum32.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import numpy as np
import pytest

from numcodecs.checksum32 import CRC32, CRC32C, Adler32
try:
from numcodecs.checksum32 import CRC32, CRC32C, Adler32
except ImportError: # pragma: no cover
pytest.skip("numcodecs.checksum32 not available", allow_module_level=True)

from numcodecs.tests.common import (
check_backwards_compatibility,
check_config,
Expand Down

0 comments on commit 4b3dc36

Please sign in to comment.