diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py index 430cbb0b011..68470b201d6 100644 --- a/xarray/tests/test_backends.py +++ b/xarray/tests/test_backends.py @@ -6259,10 +6259,10 @@ def test_zarr_safe_chunk_region(tmp_path): # Test if the code is detecting the last chunk correctly data = np.random.RandomState(0).randn(2920, 25, 53) - ds = xr.Dataset({'temperature': (('time', 'lat', 'lon'), data)}) - chunks = {'time': 1000, 'lat': 25, 'lon': 53} + ds = xr.Dataset({"temperature": (("time", "lat", "lon"), data)}) + chunks = {"time": 1000, "lat": 25, "lon": 53} ds.chunk(chunks).to_zarr(store, compute=False) - region = {'time': slice(1000, 2000, 1)} + region = {"time": slice(1000, 2000, 1)} chunk = ds.isel(region) chunk = chunk.chunk() chunk.chunk().to_zarr(store, region=region)