Skip to content

TST: Make test_partial_iteration_cleanup robust but require leak checker#22485

Merged
charris merged 1 commit intonumpy:mainfrom
seberg:issue-21169
Oct 28, 2022
Merged

TST: Make test_partial_iteration_cleanup robust but require leak checker#22485
charris merged 1 commit intonumpy:mainfrom
seberg:issue-21169

Conversation

@seberg
Copy link
Copy Markdown
Member

@seberg seberg commented Oct 27, 2022

This makes sure the test is not flaky, but the test now requires a leak checker (both valgrind or reference count based should work in CPython at least).

Closes gh-21169

@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Oct 27, 2022
This makes sure the test is not flaky, but the test now requires
a leak checker (both valgrind or reference count based should work
in CPython at least).

Closes numpygh-21169
@seberg
Copy link
Copy Markdown
Member Author

seberg commented Oct 27, 2022

Hmmm, the test failure (not cygwin, that just failed randomly) seems due to pytest phasing out some nose backcompat stuff. The main part seems to be setup() and teardown() methods, which need to be renamed.

@charris
Copy link
Copy Markdown
Member

charris commented Oct 28, 2022

To be clear, the test runs but does not error, leak detection is left to valgrind etc. ?

@seberg
Copy link
Copy Markdown
Member Author

seberg commented Oct 28, 2022

Yes, I guess the test still may cover some code path. But the main reason why its there is only checked when running with pytest-valgrind or pytest-leaks (or similar).

@charris charris merged commit 68b1e14 into numpy:main Oct 28, 2022
@charris
Copy link
Copy Markdown
Member

charris commented Oct 28, 2022

Thanks Sebastian.

@seberg seberg deleted the issue-21169 branch October 28, 2022 12:00
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Oct 28, 2022
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: test_partial_iteration_cleanup is failing for wheel builds

2 participants