Skip to content

Commit ae464ad

Browse files
committed
fix the unintentionally broken apply_ufunc tests
1 parent b21fa1e commit ae464ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xarray/tests/test_units.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import functools
12
from itertools import zip_longest
23
import operator
34
import warnings
@@ -364,7 +365,7 @@ def __repr__(self):
364365

365366

366367
def test_apply_ufunc_dataarray(dtype):
367-
func = function(
368+
func = functools.partial(
368369
xr.apply_ufunc, np.mean, input_core_dims=[["x"]], kwargs={"axis": -1}
369370
)
370371

@@ -379,7 +380,7 @@ def test_apply_ufunc_dataarray(dtype):
379380

380381

381382
def test_apply_ufunc_dataset(dtype):
382-
func = function(
383+
func = functools.partial(
383384
xr.apply_ufunc, np.mean, input_core_dims=[["x"]], kwargs={"axis": -1}
384385
)
385386

0 commit comments

Comments
 (0)