Skip to content

Commit

Permalink
change test to match new expected behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNicholas committed Jan 8, 2025
1 parent ae314d1 commit 06088c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -4748,11 +4748,11 @@ def test_open_mfdataset(self) -> None:

@requires_fsspec
def test_open_mfdataset_no_files(self) -> None:
pytest.importorskip("aiobotocore")

# glob is attempted as of #4823, but finds no files
with pytest.raises(OSError, match=r"no files"):
open_mfdataset("http://some/remote/uri", engine="zarr")
with pytest.raises(
ValueError,
match=r"cannot do wild-card matching for paths that are remote http URLs",
):
open_mfdataset("http://some/remote/uri")

def test_open_mfdataset_2d(self) -> None:
original = Dataset({"foo": (["x", "y"], np.random.randn(10, 8))})
Expand Down

0 comments on commit 06088c2

Please sign in to comment.