Skip to content

TST: Ignore nan-warnings in randomized nanfunction out= tests#22869

Merged
charris merged 1 commit intonumpy:mainfrom
seberg:issue-22835
Dec 22, 2022
Merged

TST: Ignore nan-warnings in randomized nanfunction out= tests#22869
charris merged 1 commit intonumpy:mainfrom
seberg:issue-22835

Conversation

@seberg
Copy link
Copy Markdown
Member

@seberg seberg commented Dec 22, 2022

The tests randomize the nan pattern and thus can run into these (additional) warnings, so ignore them.
(Could also fix the random seed, but this should do)

Closes gh-22835

--

Checked briefly manually that it suppresses the warnings if everything is NaN.

The tests randomize the nan pattern and thus can run into these
(additional) warnings, so ignore them.
(Could also fix the random seed, but this should do)

Closes numpygh-22835
@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Dec 22, 2022
@seberg seberg changed the title TST: Ignore nan-warnings in randomized out tests TST: Ignore nan-warnings in randomized nanfunction out= tests Dec 22, 2022
@charris charris added this to the 1.24.1 release milestone Dec 22, 2022
@charris charris merged commit 85b26f4 into numpy:main Dec 22, 2022
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Dec 22, 2022
@charris charris removed this from the 1.24.1 release milestone Dec 22, 2022
@seberg seberg deleted the issue-22835 branch December 23, 2022 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: TestNanFunctions_Median.test_keepdims_out

2 participants