-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ENH: Update numpy exceptions imports #27013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Update numpy exceptions imports #27013
Conversation
785d4f8
to
d44672a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! I think the following lines can be updated to catch VisibleDeprecationWarning
moving forward:
TEST_CMD="$TEST_CMD -Werror::DeprecationWarning -Werror::FutureWarning -Werror::numpy.VisibleDeprecationWarning" |
The np.VisibleDeprecationWarning
can be replaced with:
-Werror::sklearn.utils.fixes.VisibleDeprecationWarning
b9c4c60
to
2447534
Compare
@thomasjpfan Sure! I updated the Azure CI script. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too. I'm merging the upstream PR with the removals now, so I'd suggest to get this in to avoid failures when the next numpy nightly is uploaded.
Reference Issues/PRs
Connected to numpy/numpy#24316.
What does this implement/fix? Explain your changes.
Due to NumPy's main namespace being changed in numpy/numpy#24316, here I update warning imports.