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

Skip to content

lib/matplotlib/tests/test_inset.py: Fix tolerance on aarch64#31465

Merged
QuLogic merged 1 commit intomatplotlib:mainfrom
apatard:test-inset-aarch64
Apr 21, 2026
Merged

lib/matplotlib/tests/test_inset.py: Fix tolerance on aarch64#31465
QuLogic merged 1 commit intomatplotlib:mainfrom
apatard:test-inset-aarch64

Conversation

@apatard
Copy link
Copy Markdown
Contributor

@apatard apatard commented Apr 7, 2026

I tried to run the test suite on a aarch64 linux system and it failed due to test_zoom_inset_connector_styles exceeding the tolerance. The test is already checking the platform to increase the tolerance on aarch64 but the check is failing as on this system, platform.machine() is returning aarch64 not arm64.

I've checked on several distributions and it seems consistent.

So, update the check to match both arm64 and aarch64.

I tried to run the test suite on a aarch64 linux system and it failed
due to test_zoom_inset_connector_styles exceeding the tolerance.
The test is already checking the platform to increase the tolerance
on aarch64 but the check is failing as on this system,
``platform.machine()`` is returning ``aarch64`` not ``arm64``.

I've checked on several distributions and it seems consistent.

So, update the check to match both ``arm64`` and ``aarch64``.

Signed-off-by: Arnaud Patard <[email protected]>
@melissawm melissawm moved this from Needs review to Needs decision in First Time Contributors Apr 15, 2026
@QuLogic QuLogic added this to the v3.11.0 milestone Apr 21, 2026
@QuLogic QuLogic merged commit fb0cb05 into matplotlib:main Apr 21, 2026
42 of 46 checks passed
@github-project-automation github-project-automation Bot moved this from Needs decision to Merged in First Time Contributors Apr 21, 2026
@QuLogic
Copy link
Copy Markdown
Member

QuLogic commented Apr 21, 2026

Thanks @apatard! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

4 participants