Skip to content

[3.15] gh-69134: Harden tkinter GUI tests that depend on a mapped widget (GH-152499)#152516

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-0fff6bd-3.15
Jun 29, 2026
Merged

[3.15] gh-69134: Harden tkinter GUI tests that depend on a mapped widget (GH-152499)#152516
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-0fff6bd-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Add wait_until_mapped() and AbstractTkTest.require_mapped() to
test_tkinter.support and use them to guard the assertions that need a
widget to be actually mapped (winfo_width(), identify(), coords(), ...).
This avoids intermittent failures under window managers that do not map
the widget promptly, without skipping the unrelated checks.
(cherry picked from commit 0fff6bd)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…et (pythonGH-152499)

Add wait_until_mapped() and AbstractTkTest.require_mapped() to
test_tkinter.support and use them to guard the assertions that need a
widget to be actually mapped (winfo_width(), identify(), coords(), ...).
This avoids intermittent failures under window managers that do not map
the widget promptly, without skipping the unrelated checks.
(cherry picked from commit 0fff6bd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 28, 2026 17:20
@serhiy-storchaka serhiy-storchaka merged commit 9bea12a into python:3.15 Jun 29, 2026
94 of 96 checks passed
@miss-islington miss-islington deleted the backport-0fff6bd-3.15 branch June 29, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants