Skip to content

Commit

Permalink
fix v2 fill value test
Browse files Browse the repository at this point in the history
  • Loading branch information
d-v-b committed Nov 15, 2024
1 parent d087e9b commit 86c2da6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def test_simple(store: StorePath) -> None:
assert np.array_equal(data, a[:, :])


@pytest.mark.parametrize("store", ["memory"], indirect=True)
@pytest.mark.parametrize(
("dtype", "fill_value"),
[
Expand All @@ -48,7 +49,7 @@ def test_simple(store: StorePath) -> None:
(str, ""),
],
)
def test_implicit_fill_value(store: StorePath, dtype: str, fill_value: Any) -> None:
def test_implicit_fill_value(store: MemoryStore, dtype: str, fill_value: Any) -> None:
arr = zarr.open_array(store=store, shape=(4,), fill_value=None, zarr_format=2, dtype=dtype)
assert arr.metadata.fill_value is None
assert arr.metadata.to_dict()["fill_value"] is None
Expand Down

0 comments on commit 86c2da6

Please sign in to comment.