From 3dde39b1f1f6c406740555c7a55ab1803ef52aed Mon Sep 17 00:00:00 2001 From: Guillaume Chanel Date: Tue, 31 Aug 2021 17:19:50 +0200 Subject: [PATCH] fix - add dimension to tests --- xarray/tests/test_computation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xarray/tests/test_computation.py b/xarray/tests/test_computation.py index 9322cbc57b0..7378882932b 100644 --- a/xarray/tests/test_computation.py +++ b/xarray/tests/test_computation.py @@ -1566,9 +1566,9 @@ def test_covcorr_consistency(da_a, da_b, dim) -> None: def test_corr_lazycorr_consistency(da_a, da_b, dim) -> None: da_al = da_a.chunk() da_bl = da_b.chunk() - c_abl = xr.corr(da_al, da_bl) - c_ab = xr.corr(da_a, da_b) - c_ab_mixed = xr.corr(da_a, da_bl) + c_abl = xr.corr(da_al, da_bl, dim=dim) + c_ab = xr.corr(da_a, da_b, dim=dim) + c_ab_mixed = xr.corr(da_a, da_bl, dim=dim) assert_allclose(c_ab, c_abl) assert_allclose(c_ab, c_ab_mixed)