Skip to content

Commit 8e23bf9

Browse files
committed
(chore): test
1 parent 8136b00 commit 8e23bf9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test_metadata/test_v2.py

+13
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,16 @@ def test_zstd_checksum() -> None:
316316
arr.metadata.to_buffer_dict(default_buffer_prototype())[".zarray"].to_bytes()
317317
)
318318
assert "checksum" not in metadata["compressor"]
319+
320+
321+
def test_structured_dtype_fill_value_serialization(tmp_path):
322+
group_path = tmp_path / "test.zarr"
323+
root_group = zarr.open_group(group_path, mode="w", zarr_format=2)
324+
root_group.create_array(
325+
name="structured_headers",
326+
shape=(100, 100),
327+
chunks=(100, 100),
328+
dtype=np.dtype([("foo", "i4"), ("bar", "i4")]),
329+
)
330+
331+
zarr.consolidate_metadata(root_group.store, zarr_format=2)

0 commit comments

Comments
 (0)