(dtype, dask, skipna, func)
| 921 | @pytest.mark.parametrize("skipna", [False, True]) |
| 922 | @pytest.mark.parametrize("func", ["sum", "prod"]) |
| 923 | def test_multiple_dims(dtype, dask, skipna, func): |
| 924 | if dask and not has_dask: |
| 925 | pytest.skip("requires dask") |
| 926 | da = construct_dataarray(3, dtype, contains_nan=True, dask=dask) |
| 927 | |
| 928 | actual = getattr(da, func)(("x", "y"), skipna=skipna) |
| 929 | expected = getattr(getattr(da, func)("x", skipna=skipna), func)("y", skipna=skipna) |
| 930 | assert_allclose(actual, expected) |
| 931 | |
| 932 | |
| 933 | @pytest.mark.parametrize("dask", [True, False]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…