We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 852ad11 commit 48be376Copy full SHA for 48be376
xarray/tests/test_backends.py
@@ -2628,12 +2628,10 @@ def test_hidden_zarr_keys(self) -> None:
2628
for var in expected.variables.keys():
2629
assert self.DIMENSION_KEY not in expected[var].attrs
2630
2631
- if has_zarr_v3:
2632
- # temporary workaround for https://github.com/zarr-developers/zarr-python/issues/2338
2633
- zarr_group.store._is_open = True
2634
-
2635
# put it back and try removing from a variable
2636
- del zarr_group["var2"].attrs[self.DIMENSION_KEY]
+ attrs = dict(zarr_group["var2"].attrs)
+ del attrs[self.DIMENSION_KEY]
+ zarr_group["var2"].attrs.put(attrs)
2637
2638
with pytest.raises(KeyError):
2639
with xr.decode_cf(store):
0 commit comments