Skip to content

Commit 7b4c13b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e5c7f11 commit 7b4c13b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xarray/tests/test_issue_10875.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for issue #10875: Clear error message when reducing over non-existent dimension."""
2+
23
import numpy as np
34
import pytest
45

@@ -19,7 +20,9 @@ def test_groupby_reduce_missing_dim_single(self):
1920
),
2021
)
2122

22-
with pytest.raises(ValueError, match=r"'longitude' not found in array dimensions"):
23+
with pytest.raises(
24+
ValueError, match=r"'longitude' not found in array dimensions"
25+
):
2326
ds.groupby("time").std(dim="longitude")
2427

2528
def test_groupby_reduce_missing_dim_multiple(self):

0 commit comments

Comments
 (0)