Skip to content

Commit 4c54371

Browse files
Merge pull request pydata#2 from rabernat/ryan/fix/zarr-v3-2
Fix test_roundtrip_empty_vlen_string_array
2 parents e6e2066 + 9089508 commit 4c54371

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xarray/tests/test_backends.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,8 @@ def test_roundtrip_empty_vlen_string_array(self) -> None:
927927
if actual["a"].dtype.metadata is not None:
928928
assert check_vlen_dtype(actual["a"].dtype) is str
929929
else:
930-
assert actual["a"].dtype == np.dtype("=U1")
930+
# zarr v3 sends back "<U1"
931+
assert np.issubdtype(actual["a"].dtype, np.dtype("=U1"))
931932

932933
@pytest.mark.parametrize(
933934
"decoded_fn, encoded_fn",

0 commit comments

Comments
 (0)