Skip to content

Commit

Permalink
Merge pull request #22875 from charris/backport-22869
Browse files Browse the repository at this point in the history
TST: Ignore nan-warnings in randomized out tests
  • Loading branch information
charris committed Dec 23, 2022
2 parents 3e2a0ba + dc7bac6 commit 64e09c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions numpy/lib/tests/test_nanfunctions.py
Expand Up @@ -818,6 +818,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 @@ -1021,6 +1022,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 64e09c3

Please sign in to comment.