diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2022-12-22 18:05:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 18:05:08 -0500 |
commit | 85b26f4afc6e98694eab7a6d6abefbd3fed31fde (patch) | |
tree | 81b7d30fc320c9a07847bda52481bb5de5009b07 | |
parent | 63bf53fe444ed8699324c8827b675263808f1790 (diff) | |
parent | 48623f63f6a564f9b65bdb8f0a26c026b65ea6e8 (diff) | |
download | numpy-85b26f4afc6e98694eab7a6d6abefbd3fed31fde.tar.gz |
Merge pull request #22869 from seberg/issue-22835
TST: Ignore nan-warnings in randomized nanfunction `out=` tests
-rw-r--r-- | numpy/lib/tests/test_nanfunctions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_nanfunctions.py b/numpy/lib/tests/test_nanfunctions.py index 45cacb792..257de381b 100644 --- a/numpy/lib/tests/test_nanfunctions.py +++ b/numpy/lib/tests/test_nanfunctions.py @@ -824,6 +824,7 @@ class TestNanFunctions_Median: (-3, -1), ] ) + @pytest.mark.filterwarnings("ignore:All-NaN slice:RuntimeWarning") def test_keepdims_out(self, axis): d = np.ones((3, 5, 7, 11)) # Randomly set some elements to NaN: @@ -1027,6 +1028,7 @@ class TestNanFunctions_Percentile: (-3, -1), ] ) + @pytest.mark.filterwarnings("ignore:All-NaN slice:RuntimeWarning") def test_keepdims_out(self, q, axis): d = np.ones((3, 5, 7, 11)) # Randomly set some elements to NaN: |