Title: [Bug]: test_save_figure_return seems flaky · Issue #30493 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: test_save_figure_return seems flaky · Issue #30493 · matplotlib/matplotlib
X Title: [Bug]: test_save_figure_return seems flaky · Issue #30493 · matplotlib/matplotlib
Description: Bug summary When building on Fedora builders, I often get this failure, though it is not consistent and I've never had it happen locally. Code for reproduction pytest tests/test_backend_qt.py -k test_save_figure_return Actual outcome ___...
Open Graph Description: Bug summary When building on Fedora builders, I often get this failure, though it is not consistent and I've never had it happen locally. Code for reproduction pytest tests/test_backend_qt.py -k te...
X Description: Bug summary When building on Fedora builders, I often get this failure, though it is not consistent and I've never had it happen locally. Code for reproduction pytest tests/test_backend_qt.py -...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30493
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: test_save_figure_return seems flaky","articleBody":"### Bug summary\n\nWhen building on Fedora builders, I often get this failure, though it is not consistent and I've never had it happen locally.\n\n### Code for reproduction\n\n```Python\npytest tests/test_backend_qt.py -k test_save_figure_return\n```\n\n### Actual outcome\n\n```\n___________________________ test_save_figure_return ____________________________\n[gw2] linux -- Python 3.14.0 /usr/bin/python3\n\n @pytest.mark.backend('QtAgg', skip_on_importerror=True)\n def test_save_figure_return():\n fig, ax = plt.subplots()\n ax.imshow([[1]])\n prop = \"matplotlib.backends.qt_compat.QtWidgets.QFileDialog.getSaveFileName\"\n with mock.patch(prop, return_value=(\"foobar.png\", None)):\n fname = fig.canvas.manager.toolbar.save_figure()\n\u003e os.remove(\"foobar.png\")\nE FileNotFoundError: [Errno 2] No such file or directory: 'foobar.png'\n\n../BUILDROOT/usr/lib64/python3.14/site-packages/matplotlib/tests/test_backend_qt.py:228: FileNotFoundError\n```\n\n### Expected outcome\n\nTests always pass.\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.10.6\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n_No response_\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nfrom source (.tar.gz)","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2025-08-30T03:38:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/30493/matplotlib/issues/30493"}
| 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:ede5a2ec-6b78-1b78-8d79-b4baa0e2b6df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E774:1159AF:63C203:85B14C:6A52A240 |
| html-safe-nonce | b75a3c9197f913eb9044a4affdbeb2ec27b9c5752f529f8244ae561e3824411b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzc0OjExNTlBRjo2M0MyMDM6ODVCMTRDOjZBNTJBMjQwIiwidmlzaXRvcl9pZCI6IjczNzM5MTY2NDgwNDkzODYwNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3504141d535a30254a38b998037bd4af0f98b20c89e586905201b1eb2afb32fb |
| hovercard-subject-tag | issue:3368699647 |
| 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/30493/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cb9800edf33bacaed757929f56f93bc5b7c12ffbae663c2ee3c771365ac1d188/matplotlib/matplotlib/issues/30493 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cb9800edf33bacaed757929f56f93bc5b7c12ffbae663c2ee3c771365ac1d188/matplotlib/matplotlib/issues/30493 |
| og:image:alt | Bug summary When building on Fedora builders, I often get this failure, though it is not consistent and I've never had it happen locally. Code for reproduction pytest tests/test_backend_qt.py -k te... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | QuLogic |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width