Skip to content

gh-153513: Remove obsolete Tk version guards in tkinter tests#153615

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-153513-obsolete-version-guards
Jul 12, 2026
Merged

gh-153513: Remove obsolete Tk version guards in tkinter tests#153615
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-153513-obsolete-version-guards

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Since gh-153513, _tkinter returns int, float and pixel objects for the corresponding Tcl object types on all Tk versions.

The tests for the Text tabs and ttk padding options therefore no longer need to expect string tuples on Tk older than 8.6.14. This makes them fail on real Tk 8.6.13 (as seen on the buildbots), while passing on the newer Tk of most development machines.

Verified by relinking _tkinter against Tk 8.6.8, 8.6.9, 8.6.13, 8.6.14, 8.6.15, 8.6.18 and 9.1b1.

Fixes #153599.

Since pythongh-153513, _tkinter returns int, float and pixel objects for the
corresponding Tcl object types on all Tk versions.  The tests for the
Text "tabs" and ttk "padding" options therefore no longer need to expect
string tuples on Tk older than 8.6.14.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added tests Tests in the Lib/test dir awaiting core review labels Jul 12, 2026
@serhiy-storchaka serhiy-storchaka merged commit 832bc0b into python:main Jul 12, 2026
54 checks passed
@serhiy-storchaka serhiy-storchaka deleted the gh-153513-obsolete-version-guards branch July 12, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_tkinter and test_ttk failed on x86 Debian Non-Debug with X 3.x

1 participant