Skip to content

gh-157782: Fix test_ttk for Tk 9.1b1 and 9.0.5 - #157783

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-157782-ttk-empty-justify
Sep 19, 2026
Merged

serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-157782-ttk-empty-justify

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Since Tk ticket aba849a99b the empty string is the default of -justify of ttk::entry, ttk::combobox and ttk::spinbox, and of -anchor of ttk::label, and means the theme default. The tests checked that it is rejected. The change is in Tk 9.1b1 and will be in Tk 9.0.5, hence the (9, 0, 5) gate.

Tested with Tk 8.6.17, 9.0.3, the current core-9-0-branch (9.0.5) and 9.1b1.

The empty string is now accepted for -justify of ttk::entry,
ttk::combobox and ttk::spinbox, and for -anchor of ttk::label.
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Sep 19, 2026
@serhiy-storchaka serhiy-storchaka added skip news needs backport to 3.15 pre-release feature fixes, bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.13 bugs and security fixes labels Sep 19, 2026
@serhiy-storchaka
serhiy-storchaka merged commit 47c8f84 into python:main Sep 19, 2026
61 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@serhiy-storchaka
serhiy-storchaka deleted the gh-157782-ttk-empty-justify branch September 19, 2026 20:54
@bedevere-app

bedevere-app Bot commented Sep 19, 2026

Copy link
Copy Markdown

GH-157823 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Sep 19, 2026
@bedevere-app

bedevere-app Bot commented Sep 19, 2026

Copy link
Copy Markdown

GH-157824 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Sep 19, 2026
@bedevere-app

bedevere-app Bot commented Sep 19, 2026

Copy link
Copy Markdown

GH-157825 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Sep 19, 2026
serhiy-storchaka added a commit that referenced this pull request Sep 19, 2026
…-157825)

The empty string is now accepted for -justify of ttk::entry,
ttk::combobox and ttk::spinbox, and for -anchor of ttk::label.
(cherry picked from commit 47c8f84)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Sep 19, 2026
…-157824)

The empty string is now accepted for -justify of ttk::entry,
ttk::combobox and ttk::spinbox, and for -anchor of ttk::label.
(cherry picked from commit 47c8f84)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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.

1 participant