Skip to content

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

Merged
timhoffm merged 1 commit into
matplotlib:mainfrom
QuLogic:nan-spacing
Jun 12, 2025
Merged

TST: Fix runtime error checking NaN input to format_cursor_data#30162
timhoffm merged 1 commit into
matplotlib:mainfrom
QuLogic:nan-spacing

Conversation

@QuLogic

@QuLogic QuLogic commented Jun 11, 2025

Copy link
Copy Markdown
Member

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

QuLogic commented Jun 11, 2025

Copy link
Copy Markdown
Member Author

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

@anntzer anntzer left a comment

Copy link
Copy Markdown
Contributor

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

QuLogic commented Jun 12, 2025

Copy link
Copy Markdown
Member Author

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

@anntzer

anntzer commented Jun 12, 2025

Copy link
Copy Markdown
Contributor

@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)
@ksunden ksunden mentioned this pull request Aug 7, 2025
5 tasks
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