Skip to content

Commit fceaf95

Browse files
Skip pcodec tests
1 parent 3465696 commit fceaf95

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

tests/test_pcodec.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import numpy as np
22
import pytest
33

4-
try:
5-
from numcodecs.pcodec import PCodec
6-
except ImportError: # pragma: no cover
7-
pytest.skip("pcodec not available", allow_module_level=True)
8-
94
from tests.common import (
105
check_backwards_compatibility,
116
check_config,
@@ -15,6 +10,10 @@
1510
check_repr,
1611
)
1712

13+
# pcodec is not installed in the Pyodide CI environment because Pyodide ships
14+
# pcodec>=1.0, which has an incompatible API with what we require, i.e., <0.4.
15+
PCodec = pytest.importorskip("numcodecs.pcodec").PCodec
16+
1817
codecs = [
1918
PCodec(),
2019
PCodec(level=1),

0 commit comments

Comments
 (0)