Title: [Bug]: spurious test failures · Issue #30703 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: spurious test failures · Issue #30703 · matplotlib/matplotlib
X Title: [Bug]: spurious test failures · Issue #30703 · matplotlib/matplotlib
Description: Bug summary Hi, thank you for maintaining this amazing library! I am a packager in openSUSE. During the development process of openSUSE Tumbleweed we periodically rebuild the whole (future) distribution and we noticed some test failures ...
Open Graph Description: Bug summary Hi, thank you for maintaining this amazing library! I am a packager in openSUSE. During the development process of openSUSE Tumbleweed we periodically rebuild the whole (future) distrib...
X Description: Bug summary Hi, thank you for maintaining this amazing library! I am a packager in openSUSE. During the development process of openSUSE Tumbleweed we periodically rebuild the whole (future) distrib...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30703
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: spurious test failures","articleBody":"### Bug summary\n\nHi, thank you for maintaining this amazing library! I am a packager in openSUSE. During the development process of openSUSE Tumbleweed we periodically rebuild the whole (future) distribution and we noticed some test failures which look... well, odd.\n\nFirst, while trying to update `gc` to `8.2.10`, `test_backend_svg.py::test_rasterized[svg]` failed on image comparison. Sadly, I don't have that images.\n\nSecond, while trying to update `xkeyboard-config` to `2.46`, `test_getattr.py::test_getattr` with any `gtk3`-related backend hangs and is killed after almost two hours for being idle.\n\nIt is puzzling for me (I don't see what the packages have in common with matplotlib), but the same result is produced after multiple rebuilds, so it isn't just random failure. Also see https://bugzilla.suse.com/show_bug.cgi?id=1252721. Could you please take a look into this issue?\n\nA bit of a mystery... well, it is Halloween after all 🙂 .\n\n### Code for reproduction\n\n```Python\nrun tests, once with gc 8.2.10, for the second time with xkeyboard-config 2.46\n```\n\n### Actual outcome\n\ngc:\n\n```\n[ 447s] \u003e _raise_on_image_difference(\n[ 447s] ref_image_path, test_image_path, tol=tol\n[ 447s] )\n[ 447s] E matplotlib.testing.exceptions.ImageComparisonFailure: images not close (RMS 147.627):\n[ 447s] E \tresult_images/test_backend_svg/test_rasterized[svg]_svg.png\n[ 447s] E \tresult_images/test_backend_svg/test_rasterized[svg]-expected_svg.png\n[ 447s] E \tresult_images/test_backend_svg/test_rasterized[svg]_svg-failed-diff.png\n[ 447s] \n[ 447s] /usr/lib64/python3.11/site-packages/matplotlib/testing/decorators.py:422: ImageComparisonFailure\n```\n\nxkeyboard-config:\n\n```\n[ 547s] [gw3] [ 94%] PASSED test_getattr.py::test_getattr[matplotlib.backends.backend_cairo] \u003c- ../../../../../../usr/lib64/python3.11/site-packages/matplotlib/tests/test_getattr.py \n[ 5957s] test_getattr.py::test_getattr[matplotlib.backends.backend_gtk3] \u003c- ../../../../../../usr/lib64/python3.11/site-packages/matplotlib/tests/test_getattr.py qemu-kvm: terminating on signal 15 from pid 68319 ()\n```\n\n### Expected outcome\n\ntests should pass\n\n### Additional information\n\nthis has worked with earlier versions of `gc` and `xkeyboard-config`\n\n### Operating system\n\nopenSUSE Tumbleweed\n\n### Matplotlib Version\n\n3.10.7\n\n### Matplotlib Backend\n\ndiffers, gtk3 version 3.24.51\n\n### Python version\n\n3.11.14\n\n### Jupyter version\n\nnone\n\n### Installation\n\nfrom source (.tar.gz)","author":{"url":"https://github.com/MeggyCal","@type":"Person","name":"MeggyCal"},"datePublished":"2025-10-29T16:55:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/30703/matplotlib/issues/30703"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e470feb7-6bdb-9d4d-7d0c-dc9b591bc295 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA3C:1D8CC3:457324:5D3DE4:6A51C544 |
| html-safe-nonce | f5a9be951de82589106c7096386798ebbf90a59833c478bb15f97330ff7c7697 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTNDOjFEOENDMzo0NTczMjQ6NUQzREU0OjZBNTFDNTQ0IiwidmlzaXRvcl9pZCI6IjEzMzg1OTI4Mzk1MTc0NTU2ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | add6003dc4c572cc45d98b2513178a937b158c686744565c3b1151984b99aecb |
| hovercard-subject-tag | issue:3566972724 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/30703/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a0170c960ecbc25d3ecb7f75db9f349e10dc88dfc381e0ab517e819087a0e5b/matplotlib/matplotlib/issues/30703 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a0170c960ecbc25d3ecb7f75db9f349e10dc88dfc381e0ab517e819087a0e5b/matplotlib/matplotlib/issues/30703 |
| og:image:alt | Bug summary Hi, thank you for maintaining this amazing library! I am a packager in openSUSE. During the development process of openSUSE Tumbleweed we periodically rebuild the whole (future) distrib... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MeggyCal |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width