Skip to content

Commit 29995e3

Browse files
authored
Skip checksum32 tests if crc32 is missing (#635)
1 parent 7523fc6 commit 29995e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

numcodecs/tests/test_checksum32.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import numpy as np
44
import pytest
55

6-
from numcodecs.checksum32 import CRC32, CRC32C, Adler32
6+
try:
7+
from numcodecs.checksum32 import CRC32, CRC32C, Adler32
8+
except ImportError: # pragma: no cover
9+
pytest.skip("numcodecs.checksum32 not available", allow_module_level=True)
10+
711
from numcodecs.tests.common import (
812
check_backwards_compatibility,
913
check_config,

0 commit comments

Comments
 (0)