Skip to content

Commit

Permalink
avert zarr issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Feb 6, 2024
1 parent 551719a commit 85730e2
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 @@ -895,9 +895,10 @@ def test_roundtrip_empty_vlen_string_array(self) -> None:
)
@pytest.mark.parametrize("dtype", [np.dtype("float64"), np.dtype("float32")])
def test_roundtrip_mask_and_scale(self, decoded_fn, encoded_fn, dtype) -> None:
if hasattr(self, "zarr_version") and dtype == np.float32:
pytest.skip("float32 will be treated as float64 in zarr")
decoded = decoded_fn(dtype)
encoded = encoded_fn(dtype)

with self.roundtrip(decoded) as actual:
for k in decoded.variables:
assert decoded.variables[k].dtype == actual.variables[k].dtype
Expand Down

0 comments on commit 85730e2

Please sign in to comment.