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 e5c7f11 commit 7b4c13bCopy full SHA for 7b4c13b
xarray/tests/test_issue_10875.py
@@ -1,4 +1,5 @@
1
"""Test for issue #10875: Clear error message when reducing over non-existent dimension."""
2
+
3
import numpy as np
4
import pytest
5
@@ -19,7 +20,9 @@ def test_groupby_reduce_missing_dim_single(self):
19
20
),
21
)
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
+ ):
26
ds.groupby("time").std(dim="longitude")
27
28
def test_groupby_reduce_missing_dim_multiple(self):
0 commit comments