Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions numcodecs/tests/test_blosc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@
import pytest


from numcodecs import blosc
from numcodecs.blosc import Blosc
try:
from numcodecs import blosc
from numcodecs.blosc import Blosc
except ImportError: # pragma: no cover
pytest.skip(
"numcodecs.blosc not available", allow_module_level=True
)


from numcodecs.tests.common import (check_encode_decode,
check_encode_decode_partial,
check_config,
Expand Down
10 changes: 9 additions & 1 deletion numcodecs/tests/test_lz4.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@


import numpy as np
import pytest


try:
from numcodecs.lz4 import LZ4
except ImportError: # pragma: no cover
pytest.skip(
"numcodecs.lz4 not available", allow_module_level=True
)


from numcodecs.lz4 import LZ4
from numcodecs.tests.common import (check_encode_decode, check_config, check_repr,
check_backwards_compatibility,
check_err_decode_object_buffer,
Expand Down
10 changes: 9 additions & 1 deletion numcodecs/tests/test_zstd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@


import numpy as np
import pytest


try:
from numcodecs.zstd import Zstd
except ImportError: # pragma: no cover
pytest.skip(
"numcodecs.zstd not available", allow_module_level=True
)


from numcodecs.zstd import Zstd
from numcodecs.tests.common import (check_encode_decode, check_config, check_repr,
check_backwards_compatibility,
check_err_decode_object_buffer,
Expand Down