MCPcopy Create free account
hub / github.com/dask/dask / test_mean_func_does_not_warn

Function test_mean_func_does_not_warn

dask/array/tests/test_reductions.py:907–914  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

905
906
907def test_mean_func_does_not_warn():
908 # non-regression test for https://github.com/pydata/xarray/issues/5151
909 xr = pytest.importorskip("xarray")
910 a = xr.DataArray(da.from_array(np.full((10, 10), np.nan)))
911
912 with warnings.catch_warnings(record=True) as rec:
913 a.mean().compute()
914 assert not rec # did not warn
915
916
917@pytest.mark.parametrize("func", ["nanvar", "nanstd"])

Callers

nothing calls this directly

Calls 3

fullMethod · 0.45
computeMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected