File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Check Zstd against pyzstd package
2- from typing import TYPE_CHECKING
32
43import numpy as np
54import pytest
5+ import pyzstd
66
7- try :
8- from numcodecs .zstd import Zstd
9- except ImportError : # pragma: no cover
10- pytest .skip ("numcodecs.zstd not available" , allow_module_level = True )
11-
12- if TYPE_CHECKING : # pragma: no cover
13- import pyzstd
14- else :
15- pyzstd = pytest .importorskip ("pyzstd" )
7+ from numcodecs .zstd import Zstd
168
179test_data = [
1810 b"Hello World!" ,
Original file line number Diff line number Diff line change 44import numpy as np
55import pytest
66
7- try :
8- from numcodecs .zstd import Zstd
9- except ImportError : # pragma: no cover
10- pytest .skip ("numcodecs.zstd not available" , allow_module_level = True )
11-
12-
137from numcodecs .tests .common import (
148 check_backwards_compatibility ,
159 check_config ,
1812 check_err_encode_object_buffer ,
1913 check_repr ,
2014)
15+ from numcodecs .zstd import Zstd
2116
2217codecs = [
2318 Zstd (),
You can’t perform that action at this time.
0 commit comments