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 21e639c commit 986cf49Copy full SHA for 986cf49
xarray/tests/test_computation.py
@@ -647,9 +647,9 @@ def test_unified_dim_sizes() -> None:
647
exclude_dims={"z"},
648
) == {"x": 1, "y": 2}
649
650
- # duplicate dimensions
651
- with pytest.raises(ValueError):
652
- unified_dim_sizes([xr.Variable(("x", "x"), [[1]])])
+ with pytest.raises(ValueError, match="broadcasting cannot handle"):
+ with pytest.warns(UserWarning, match="Duplicate dimension names"):
+ unified_dim_sizes([xr.Variable(("x", "x"), [[1]])])
653
654
# mismatched lengths
655
with pytest.raises(ValueError):
0 commit comments