Skip to content

MNT Use assert_no_warnings from numpy.testing#27031

Merged
thomasjpfan merged 2 commits intoscikit-learn:mainfrom
thomasjpfan:import_from_numpy_directly
Aug 9, 2023
Merged

MNT Use assert_no_warnings from numpy.testing#27031
thomasjpfan merged 2 commits intoscikit-learn:mainfrom
thomasjpfan:import_from_numpy_directly

Conversation

@thomasjpfan
Copy link
Copy Markdown
Member

Reference Issues/PRs

Saw this reviewing #27013

What does this implement/fix? Explain your changes.

As noted by the comment, we can use assert_no_warnings directly from NumPy given our minimum support version is 1.17.3.

Any other comments?

We can rewrite the tests, turning warnings into errors, but I think a PR removing code is already a benefit.

@thomasjpfan thomasjpfan added module:test-suite everything related to our tests Quick Review For PRs that are quick to review labels Aug 7, 2023
@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 7, 2023

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 1193948. Link to the linter CI: here

Copy link
Copy Markdown
Contributor

@OmarManzoor OmarManzoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @thomasjpfan

@thomasjpfan thomasjpfan enabled auto-merge (squash) August 9, 2023 16:05
@thomasjpfan thomasjpfan merged commit fcaf0ff into scikit-learn:main Aug 9, 2023
TamaraAtanasoska pushed a commit to TamaraAtanasoska/scikit-learn that referenced this pull request Aug 21, 2023
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 18, 2023
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:test-suite everything related to our tests module:utils Quick Review For PRs that are quick to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants