From ec7aa4ead8bcf963f7c314676dbda6c6852d7eb2 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 23 Jul 2019 00:34:12 -0400 Subject: [PATCH 3/3] TST: Ignore some more invalid value warnings. Signed-off-by: Elliott Sales de Andrade --- dask/array/tests/test_reductions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dask/array/tests/test_reductions.py b/dask/array/tests/test_reductions.py index c17e919d..3d8163f6 100644 --- a/dask/array/tests/test_reductions.py +++ b/dask/array/tests/test_reductions.py @@ -407,8 +407,14 @@ def test_nan_object(func): if func in {"nanmin", "nanmax"}: warnings.simplefilter("default", RuntimeWarning) + elif func in {"min", "max"}: + warnings.simplefilter("ignore", RuntimeWarning) assert_eq(getattr(np, func)(x, axis=0), getattr(da, func)(d, axis=0)) + + if func in {"min", "max"}: + warnings.simplefilter("default", RuntimeWarning) + assert_eq(getattr(np, func)(x, axis=1), getattr(da, func)(d, axis=1)) assert_eq(getattr(np, func)(x), getattr(da, func)(d)) -- 2.21.0