Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TST: Fix runtime error checking NaN input to format_cursor_data #30162

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jun 11, 2025

PR summary

This seems to have changed in NumPy 2.3.0, only on Windows, but there's no reason to not catch this in the test always.

PR checklist

@QuLogic
Copy link
Member Author

QuLogic commented Jun 11, 2025

Looks like the Python 3.13 builds are hitting the broken installation python/cpython#135151

Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

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

Shouldn't the warning catch happen in format_cursor_data (or _format_cursor_data_override) so that it indeed doesn't get emitted when the user mouseovers a nan pixel?
Feel free to dismiss if I missed something.

@QuLogic
Copy link
Member Author

QuLogic commented Jun 12, 2025

Ah, I wasn't sure if that was something that would happen on purpose; if so, then yes we can move it there.

@anntzer
Copy link
Contributor

anntzer commented Jun 12, 2025

@timhoffm Still OK with the new version?

@timhoffm timhoffm added this to the v3.10.4 milestone Jun 12, 2025
@timhoffm timhoffm merged commit 716d046 into matplotlib:main Jun 12, 2025
40 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 12, 2025
@QuLogic QuLogic deleted the nan-spacing branch June 12, 2025 19:22
QuLogic added a commit that referenced this pull request Jun 13, 2025
…162-on-v3.10.x

Backport PR #30162 on branch v3.10.x (TST: Fix runtime error checking NaN input to format_cursor_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Test pipeline failure on windows
3 participants