Skip to content

Commit d494c94

Browse files
committed
fix failing test
1 parent bbf3fa7 commit d494c94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

xarray/tests/test_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,14 +1024,14 @@ def test_isel(self):
10241024
data.isel(not_a_dim=slice(0, 2))
10251025
with raises_regex(
10261026
ValueError,
1027-
r"dimensions {'not_a_dim'} do not exist. Expected "
1027+
r"Dimensions {'not_a_dim'} do not exist. Expected "
10281028
r"one or more of "
10291029
r"[\w\W]*'time'[\w\W]*'dim\d'[\w\W]*'dim\d'[\w\W]*'dim\d'[\w\W]*",
10301030
):
10311031
data.isel(not_a_dim=slice(0, 2))
10321032
with pytest.warns(
10331033
UserWarning,
1034-
match=r"dimensions {'not_a_dim'} do not exist. "
1034+
match=r"Dimensions {'not_a_dim'} do not exist. "
10351035
r"Expected one or more of "
10361036
r"[\w\W]*'time'[\w\W]*'dim\d'[\w\W]*'dim\d'[\w\W]*'dim\d'[\w\W]*",
10371037
):

xarray/tests/test_variable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,13 +1270,13 @@ def test_isel(self):
12701270
assert_identical(v.isel(time=[]), v[[]])
12711271
with raises_regex(
12721272
ValueError,
1273-
r"dimensions {'not_a_dim'} do not exist. Expected one or more of "
1273+
r"Dimensions {'not_a_dim'} do not exist. Expected one or more of "
12741274
r"\('time', 'x'\)",
12751275
):
12761276
v.isel(not_a_dim=0)
12771277
with pytest.warns(
12781278
UserWarning,
1279-
match=r"dimensions {'not_a_dim'} do not exist. Expected one or more of "
1279+
match=r"Dimensions {'not_a_dim'} do not exist. Expected one or more of "
12801280
r"\('time', 'x'\)",
12811281
):
12821282
v.isel(not_a_dim=0, missing_dims="warn")

0 commit comments

Comments
 (0)