Title: Fix and harden IDLE GUI tests for newer Tk and display scaling · Issue #153741 · python/cpython · GitHub
Open Graph Title: Fix and harden IDLE GUI tests for newer Tk and display scaling · Issue #153741 · python/cpython
X Title: Fix and harden IDLE GUI tests for newer Tk and display scaling · Issue #153741 · python/cpython
Description: Several IDLE GUI tests fail on newer Tk or are fragile under display scaling. All test-only. test_sidebar test_mousewheel fails on Tk 8.7+, which replaced the X11
Open Graph Description: Several IDLE GUI tests fail on newer Tk or are fragile under display scaling. All test-only. test_sidebar test_mousewheel fails on Tk 8.7+, which replaced the X11
X Description: Several IDLE GUI tests fail on newer Tk or are fragile under display scaling. All test-only. test_sidebar test_mousewheel fails on Tk 8.7+, which replaced the X11 <Button-4>/<Button-5> ...
Opengraph URL: https://github.com/python/cpython/issues/153741
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix and harden IDLE GUI tests for newer Tk and display scaling","articleBody":"Several IDLE GUI tests fail on newer Tk or are fragile under display scaling. All test-only.\n\n`test_sidebar` `test_mousewheel` fails on Tk 8.7+, which replaced the X11 `\u003cButton-4>`/`\u003cButton-5>` wheel events with `\u003cMouseWheel>`.\n\n`test_configdialog` compares ttk widget states with exact tuples, which break when a widget picks up transient `active`/`hover` states from the pointer (whose position shifts with the scaling). The tested methods only toggle `disabled`, so the tests should assert that flag alone.\n\nSeveral `test_configdialog` tests re-mask a method at the end, which is skipped on a mid-test failure; `addCleanup()` makes it unconditional.\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-153742\n* gh-154404\n* gh-154405\n* gh-154406\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2026-07-15T05:14:16Z","url":"https://github.com/python/cpython/issues/153741"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:a98b5fd2-37b9-4b95-f0cb-d6c315772007 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC18:136107:47F5B6:609890:6AECCCCC |
| html-safe-nonce | 2ff8fb9ea18f3e8e912fb855aadeeb652ff0dada4455c03b006c48a83940d344 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzE4OjEzNjEwNzo0N0Y1QjY6NjA5ODkwOjZBRUNDQ0NDIiwidmlzaXRvcl9pZCI6IjMyNjgyMjIzNjMxNTY0MDEzNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8d7501351649e4e13b56958fbeec741b2a87f53bb8337e8b83da58c190fa1ce8 |
| hovercard-subject-tag | issue:4889507931 |
| 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/python/cpython/153741/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5d2ea512ac5c518bbc2ea7f0a47900455e17d3c574d1c58e486a369126e00fad/python/cpython/issues/153741 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5d2ea512ac5c518bbc2ea7f0a47900455e17d3c574d1c58e486a369126e00fad/python/cpython/issues/153741 |
| og:image:alt | Several IDLE GUI tests fail on newer Tk or are fragile under display scaling. All test-only. test_sidebar test_mousewheel fails on Tk 8.7+, which replaced the X11 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | dc0b519c5798dc1150b88dc4c06a8b9634d0069218dc04e469970e76aad74016 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | db139f0bf57b59bf9a8c4abb0849924d6c6ca559 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width