Skip to content

Commit eae899c

Browse files
Update tests/test_xgrid.py
Co-authored-by: Nick Hodgskin <[email protected]>
1 parent 7ab4690 commit eae899c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_xgrid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def test_invalid_lon_lat():
128128

129129
def test_invalid_depth():
130130
ds = datasets["ds_2d_left"].copy()
131-
ds = ds.reindex({"ZG": -ds.ZG})
131+
ds = ds.reindex({"ZG": ds.ZG[::-1})
132132

133133
with pytest.raises(ValueError, match="Depth DataArray .* must be strictly increasing*"):
134134
XGrid.from_dataset(ds)

0 commit comments

Comments
 (0)