]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-128846: Make tkinter tests robust against Tcl/Tk 9.0 (GH-153484)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 11 Jul 2026 04:25:46 +0000 (07:25 +0300)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2026 04:25:46 +0000 (07:25 +0300)
commit59e183c54f619cd777dfe5bb86e535f001670f5e
tree24d78c21de58117d861239e3e9f9481e3edac8a9
parent5baaa5b86d8359fa34d72d3eaadb369a28e3ae82
[3.13] gh-128846: Make tkinter tests robust against Tcl/Tk 9.0 (GH-153484)

Backport the test-only parts of the Tcl/Tk 8.7/9.0/9.1 test adaptations so
that test_tkinter and test_ttk pass when Python 3.13 is built against
Tcl/Tk 9.0 (for example the Homebrew build used on macOS), while still
passing against the Tcl/Tk 8.6 that 3.13 ships.

Combines the test changes from:

* gh-124111: Update tkinter for compatibility with Tcl/Tk 9.0.0 (GH-124156)
* gh-124111: test macOS CI with Tk 9 (GH-137424)
* gh-145736: Fix Tkinter tests for Tk 8.7, 9.0 and 9.1 (GH-145738)

The corresponding non-test changes (Modules/_tkinter.c, Lib/tkinter/ttk.py,
PCbuild and CI configuration) are not backported.
Lib/test/test_tkinter/test_misc.py
Lib/test/test_tkinter/test_widgets.py
Lib/test/test_tkinter/widget_tests.py
Lib/test/test_ttk/test_style.py
Lib/test/test_ttk/test_widgets.py