Skip to content

Commit

Permalink
Merge pull request #22869 from seberg/issue-22835
Browse files Browse the repository at this point in the history
TST: Ignore nan-warnings in randomized nanfunction `out=` tests
  • Loading branch information
charris committed Dec 22, 2022
2 parents 63bf53f + 48623f6 commit 85b26f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions numpy/lib/tests/test_nanfunctions.py
Expand Up @@ -824,6 +824,7 @@ def test_keepdims(self):
(-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:
Expand Down Expand Up @@ -1027,6 +1028,7 @@ def test_keepdims(self):
(-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:
Expand Down

0 comments on commit 85b26f4

Please sign in to comment.