Title: On macOS with Python 3.15, test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk/Tcl 9.1 · Issue #159517 · python/cpython · GitHub
Open Graph Title: On macOS with Python 3.15, test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk/Tcl 9.1 · Issue #159517 · python/cpython
X Title: On macOS with Python 3.15, test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name "::tk::unsupported::MacWindowStyle"` on Tk/Tcl 9.1 · Issue #159517 · python/cpython
Description: Tcl/Tk was recently upgraded from Tcl 9.0/Tk 9.0 to Tcl 9.1/Tk 9.1 on macOS GitHub Action. Since this update, many tests of test_idle and test_tkinter started to fail on "macOS (free-threading) / build and test (macos-26)" (GHA CI) with ...
Open Graph Description: Tcl/Tk was recently upgraded from Tcl 9.0/Tk 9.0 to Tcl 9.1/Tk 9.1 on macOS GitHub Action. Since this update, many tests of test_idle and test_tkinter started to fail on "macOS (free-threading) / b...
X Description: Tcl/Tk was recently upgraded from Tcl 9.0/Tk 9.0 to Tcl 9.1/Tk 9.1 on macOS GitHub Action. Since this update, many tests of test_idle and test_tkinter started to fail on "macOS (free-threading...
Opengraph URL: https://github.com/python/cpython/issues/159517
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On macOS with Python 3.15, test_idle and test_tkinter fail with `_tkinter.TclError: invalid command name \"::tk::unsupported::MacWindowStyle\"` on Tk/Tcl 9.1","articleBody":"Tcl/Tk was recently upgraded from Tcl 9.0/Tk 9.0 to Tcl 9.1/Tk 9.1 on macOS GitHub Action. Since this update, many tests of test_idle and test_tkinter started to fail on \"macOS (free-threading) / build and test (macos-26)\" (GHA CI) with `_tkinter.TclError: invalid command name \"::tk::unsupported::MacWindowStyle\"`.\n\nExample of failed build: https://github.com/python/cpython/actions/runs/38874850453/job/116887409891?pr=159515.\n\ntest.pythoninfo after:\n\n```\ntkinter.TCL_VERSION: 9.1\ntkinter.TK_VERSION: 9.1\ntkinter.info_patchlevel: 9.1.0\n```\n\n---\n\nPrevious build when the tests passed: https://github.com/python/cpython/actions/runs/38680918836/job/116256273820\n\ntest.pythoninfo before:\n\n```\ntkinter.TCL_VERSION: 9.0\ntkinter.TK_VERSION: 9.0\ntkinter.info_patchlevel: 9.0.4\n```\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-159518\n* gh-159522\n* gh-159527\n* gh-159624\n* gh-159625\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-10-16T10:05:52Z","url":"https://github.com/python/cpython/issues/159517"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:807c7dcf-f60c-ed6d-22ec-f7d598bcc90f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B662:17FB7:2D7930A:39BFEA1:6B01EE12 |
| html-safe-nonce | 2b6fbfeedd03344c1336a54a728ba4d3debfac1b17cb7293168db0299338837c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjYyOjE3RkI3OjJENzkzMEE6MzlCRkVBMTo2QjAxRUUxMiIsInZpc2l0b3JfaWQiOiIyMzQ0MzIzODUyMTAxODczMTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fef2610a1019fb8798ec9b5e423952ff29f0279ac75e081fe34faa2e85157ebc |
| hovercard-subject-tag | issue:5882245823 |
| 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/159517/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b816b83f9d41b6796f858400a92c72c4e1b4cf1895908928cc39f3f8913deb5/python/cpython/issues/159517 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b816b83f9d41b6796f858400a92c72c4e1b4cf1895908928cc39f3f8913deb5/python/cpython/issues/159517 |
| og:image:alt | Tcl/Tk was recently upgraded from Tcl 9.0/Tk 9.0 to Tcl 9.1/Tk 9.1 on macOS GitHub Action. Since this update, many tests of test_idle and test_tkinter started to fail on "macOS (free-threading) / b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width