FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.15] gh-69134: Harden tkinter GUI tests that depend on a mapped widget (GH-152499) by miss-islington · Pull Request #152516 · python/cpython · GitHub

Repository navigation

[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

serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-0fff6bd-3.15

Conversation

miss-islington commented Jun 28, 2026 •
edited by bedevere-app Bot
Loading

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 enabled auto-merge (squash) June 28, 2026 17:20
serhiy-storchaka merged commit 9bea12a into python:3.15 Jun 29, 2026
94 of 96 checks passed
miss-islington deleted the backport-0fff6bd-3.15 branch June 29, 2026 14:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL