Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -2653,10 +2653,13 @@ def test_read_non_consolidated_warning(self) -> None:
assert_identical(ds, expected)

def test_non_existent_store(self) -> None:
with pytest.raises(
FileNotFoundError,
match="(No such file or directory|Unable to find group|No group found in store|does not exist)",
):
patterns = [
"No such file or directory",
"Unable to find group",
"No group found in store",
"does not exist",
]
with pytest.raises(FileNotFoundError, match=f"({'|'.join(patterns)})"):
xr.open_zarr(f"{uuid.uuid4()}")

@pytest.mark.skipif(has_zarr_v3, reason="chunk_store not implemented in zarr v3")
Expand Down
Loading