Skip to content

Commit c0f777d

Browse files
committed
use create instead of open_array in fill_value test
1 parent f085859 commit c0f777d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_v2.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test_simple(store: StorePath) -> None:
3636
assert np.array_equal(data, a[:, :])
3737

3838

39+
@pytest.mark.parametrize("store", ["memory"], indirect=True)
3940
@pytest.mark.parametrize(
4041
("dtype", "fill_value"),
4142
[
@@ -48,8 +49,8 @@ def test_simple(store: StorePath) -> None:
4849
(str, ""),
4950
],
5051
)
51-
def test_implicit_fill_value(store: StorePath, dtype: str, fill_value: Any) -> None:
52-
arr = zarr.open_array(store=store, shape=(4,), fill_value=None, zarr_format=2, dtype=dtype)
52+
def test_implicit_fill_value(store: MemoryStore, dtype: str, fill_value: Any) -> None:
53+
arr = zarr.create(store=store, shape=(4,), fill_value=None, zarr_format=2, dtype=dtype)
5354
assert arr.metadata.fill_value is None
5455
assert arr.metadata.to_dict()["fill_value"] is None
5556
result = arr[:]

0 commit comments

Comments
 (0)