Skip to content

Commit 7b4a286

Browse files
authored
units & deprecation merge (#3530)
1 parent c0ef2f6 commit 7b4a286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xarray/tests/test_units.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,7 @@ def test_broadcast_equals(self, unit, dtype):
19691969
dim={"z": np.linspace(10, 20, 12) * unit_registry.s},
19701970
axis=1,
19711971
),
1972-
method("drop", labels="x"),
1972+
method("drop_sel", labels="x"),
19731973
method("reset_coords", names="x2"),
19741974
method("copy"),
19751975
pytest.param(
@@ -4045,7 +4045,7 @@ def test_reindex_like(self, unit, error, dtype):
40454045
marks=pytest.mark.xfail(reason="strips units"),
40464046
),
40474047
pytest.param(
4048-
method("apply", np.fabs),
4048+
method("map", np.fabs),
40494049
marks=pytest.mark.xfail(reason="fabs strips units"),
40504050
),
40514051
),
@@ -4220,7 +4220,7 @@ def test_grouped_operations(self, func, dtype):
42204220
method("rename_dims", x="offset_x"),
42214221
method("swap_dims", {"x": "x2"}),
42224222
method("expand_dims", v=np.linspace(10, 20, 12) * unit_registry.s, axis=1),
4223-
method("drop", labels="x"),
4223+
method("drop_sel", labels="x"),
42244224
method("drop_dims", "z"),
42254225
method("set_coords", names="c"),
42264226
method("reset_coords", names="x2"),

0 commit comments

Comments
 (0)