Title: gh-152093: Fix test_tk_caret() on macOS by serhiy-storchaka · Pull Request #152115 · python/cpython · GitHub
Open Graph Title: gh-152093: Fix test_tk_caret() on macOS by serhiy-storchaka · Pull Request #152115 · python/cpython
X Title: gh-152093: Fix test_tk_caret() on macOS by serhiy-storchaka · Pull Request #152115 · python/cpython
Description: On macOS the caret position is recorded only while the window is the key (active) window: Tk_SetCaretPos() returns early without updating the display's caret when ![w isKeyWindow] (macosx/tkMacOSXKeyEvent.c). On X11 it is always stored. In the GHA macOS job the test's window is not the key window, so the set is a no-op and the query reads back the default zeroed position, failing the equality assertion. On Aqua the test now checks only that the query returns the expected keys; the exact round-trip is still verified on the other platforms. Issue: gh-152093
Open Graph Description: On macOS the caret position is recorded only while the window is the key (active) window: Tk_SetCaretPos() returns early without updating the display's caret when ![w isKeyWindow] (macosx/tkMac...
X Description: On macOS the caret position is recorded only while the window is the key (active) window: Tk_SetCaretPos() returns early without updating the display's caret when ![w isKeyWindow] (macosx/t...
Opengraph URL: https://github.com/python/cpython/pull/152115
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6405e6d4-224f-450a-0d17-f96ae9519992 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AEE0:31A65C:57A1:7A82:6A55FBB5 |
| html-safe-nonce | a20045a59468e0def841d95b6976b0288da61c4c6972bf5aff612e92167a75ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUUwOjMxQTY1Qzo1N0ExOjdBODI6NkE1NUZCQjUiLCJ2aXNpdG9yX2lkIjoiNjcwMTIwMzA1MDEyMjgzNjkxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9ce38e0a20ac165a2ef808846394f6138006c2ee89c7bfefb30e45f2030686e4 |
| hovercard-subject-tag | pull_request:3930160987 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/152115/files |
| twitter:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| og:image:alt | On macOS the caret position is recorded only while the window is the key (active) window: Tk_SetCaretPos() returns early without updating the display's caret when ![w isKeyWindow] (macosx/tkMac... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3725c7f9b2a6e3a27ef57c5aed13428c0f65e045 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width