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 46ae1d4 commit 7893348Copy full SHA for 7893348
xarray/tests/test_backends.py
@@ -2653,10 +2653,13 @@ def test_read_non_consolidated_warning(self) -> None:
2653
assert_identical(ds, expected)
2654
2655
def test_non_existent_store(self) -> None:
2656
- with pytest.raises(
2657
- FileNotFoundError,
2658
- match="(No such file or directory|Unable to find group|No group found in store|does not exist)",
2659
- ):
+ patterns = [
+ "No such file or directory",
+ "Unable to find group",
+ "No group found in store",
2660
+ "does not exist",
2661
+ ]
2662
+ with pytest.raises(FileNotFoundError, match=f"({'|'.join(patterns)})"):
2663
xr.open_zarr(f"{uuid.uuid4()}")
2664
2665
@pytest.mark.skipif(has_zarr_v3, reason="chunk_store not implemented in zarr v3")
0 commit comments