Skip to content

Commit fbc6a69

Browse files
committed
coverage
1 parent 1963647 commit fbc6a69

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_v2.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import pytest
88
from numcodecs import Delta
99
from numcodecs.blosc import Blosc
10+
from numcodecs.zstd import Zstd
1011

1112
import zarr
1213
import zarr.core.buffer
@@ -177,6 +178,13 @@ def test_create_array_defaults(store: Store):
177178
arr = g.create_array("two", dtype="i8", shape=(1,), chunks=(1,))
178179
assert arr._async_array.compressor is not None
179180
assert not (arr.filters)
181+
arr = g.create_array("three", dtype="i8", shape=(1,), chunks=(1,), compressor=Zstd())
182+
assert arr._async_array.compressor is not None
183+
assert not (arr.filters)
184+
with pytest.raises(ValueError):
185+
g.create_array(
186+
"four", dtype="i8", shape=(1,), chunks=(1,), compressor=None, compressors=None
187+
)
180188

181189

182190
@pytest.mark.parametrize("array_order", ["C", "F"])

0 commit comments

Comments
 (0)