File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1024,14 +1024,14 @@ def test_isel(self):
1024
1024
data .isel (not_a_dim = slice (0 , 2 ))
1025
1025
with raises_regex (
1026
1026
ValueError ,
1027
- r"dimensions {'not_a_dim'} do not exist. Expected "
1027
+ r"Dimensions {'not_a_dim'} do not exist. Expected "
1028
1028
r"one or more of "
1029
1029
r"[\w\W]*'time'[\w\W]*'dim\d'[\w\W]*'dim\d'[\w\W]*'dim\d'[\w\W]*" ,
1030
1030
):
1031
1031
data .isel (not_a_dim = slice (0 , 2 ))
1032
1032
with pytest .warns (
1033
1033
UserWarning ,
1034
- match = r"dimensions {'not_a_dim'} do not exist. "
1034
+ match = r"Dimensions {'not_a_dim'} do not exist. "
1035
1035
r"Expected one or more of "
1036
1036
r"[\w\W]*'time'[\w\W]*'dim\d'[\w\W]*'dim\d'[\w\W]*'dim\d'[\w\W]*" ,
1037
1037
):
Original file line number Diff line number Diff line change @@ -1270,13 +1270,13 @@ def test_isel(self):
1270
1270
assert_identical (v .isel (time = []), v [[]])
1271
1271
with raises_regex (
1272
1272
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 "
1274
1274
r"\('time', 'x'\)" ,
1275
1275
):
1276
1276
v .isel (not_a_dim = 0 )
1277
1277
with pytest .warns (
1278
1278
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 "
1280
1280
r"\('time', 'x'\)" ,
1281
1281
):
1282
1282
v .isel (not_a_dim = 0 , missing_dims = "warn" )
You can’t perform that action at this time.
0 commit comments