Skip to content

Commit

Permalink
Merge pull request #2 from rabernat/ryan/fix/zarr-v3-2
Browse files Browse the repository at this point in the history
Fix test_roundtrip_empty_vlen_string_array
  • Loading branch information
TomAugspurger authored Oct 10, 2024
2 parents e6e2066 + 9089508 commit 4c54371
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,8 @@ def test_roundtrip_empty_vlen_string_array(self) -> None:
if actual["a"].dtype.metadata is not None:
assert check_vlen_dtype(actual["a"].dtype) is str
else:
assert actual["a"].dtype == np.dtype("=U1")
# zarr v3 sends back "<U1"
assert np.issubdtype(actual["a"].dtype, np.dtype("=U1"))

@pytest.mark.parametrize(
"decoded_fn, encoded_fn",
Expand Down

0 comments on commit 4c54371

Please sign in to comment.