Skip to content

Commit 06758f2

Browse files
authored
Merge branch 'main' into cov-ignores
2 parents 928ee96 + 29995e3 commit 06758f2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

numcodecs/pcodec.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import Literal, Optional
22

3-
import numcodecs
4-
import numcodecs.abc
3+
from numcodecs.abc import Codec
54
from numcodecs.compat import ensure_contiguous_ndarray
65

76
try:
@@ -13,7 +12,7 @@
1312
DEFAULT_MAX_PAGE_N = 262144
1413

1514

16-
class PCodec(numcodecs.abc.Codec):
15+
class PCodec(Codec):
1716
"""
1817
PCodec (or pco, pronounced "pico") losslessly compresses and decompresses
1918
numerical sequences with high compression ratio and fast speed.

numcodecs/tests/test_checksum32.py

Lines changed: 5 additions & 1 deletion
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)