diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py index 37e2cc15416..cfca5e69048 100644 --- a/xarray/tests/test_backends.py +++ b/xarray/tests/test_backends.py @@ -2439,7 +2439,7 @@ def test_warning_on_bad_chunks(self) -> None: with warnings.catch_warnings(): warnings.filterwarnings( "ignore", - message=".*Zarr version 3 specification.*", + message=".*Zarr format 3 specification.*", category=UserWarning, ) with self.roundtrip(original, open_kwargs=kwargs) as actual: @@ -2988,7 +2988,7 @@ def test_no_warning_from_open_emptydim_with_chunks(self) -> None: with warnings.catch_warnings(): warnings.filterwarnings( "ignore", - message=".*Zarr version 3 specification.*", + message=".*Zarr format 3 specification.*", category=UserWarning, ) with self.roundtrip(ds, open_kwargs=dict(chunks={"a": 1})) as ds_reload: