Skip to content

Commit b97ada9

Browse files
authored
Update error message regex for latest Zarr (#10485)
1 parent f778624 commit b97ada9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

xarray/tests/test_backends.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,8 @@ def test_read_non_consolidated_warning(self) -> None:
23982398

23992399
def test_non_existent_store(self) -> None:
24002400
with pytest.raises(
2401-
FileNotFoundError, match="(No such file or directory|Unable to find group)"
2401+
FileNotFoundError,
2402+
match="(No such file or directory|Unable to find group|No group found)",
24022403
):
24032404
xr.open_zarr(f"{uuid.uuid4()}")
24042405

xarray/tests/test_backends_datatree.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ def test_zarr_encoding(self, tmpdir, simple_datatree, zarr_format):
583583
filepath, encoding=enc, engine="zarr", zarr_format=zarr_format
584584
)
585585

586+
@pytest.mark.xfail(reason="upstream zarr read-only changes have broken this test")
586587
def test_to_zarr_zip_store(self, tmpdir, simple_datatree, zarr_format):
587588
from zarr.storage import ZipStore
588589

0 commit comments

Comments
 (0)