Skip to content

gh-69134: Wait until mapped in SimpleDialog keyboard tests#152690

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-69134-map-simpledialog-tests
Open

gh-69134: Wait until mapped in SimpleDialog keyboard tests#152690
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-69134-map-simpledialog-tests

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jun 30, 2026

Copy link
Copy Markdown
Member

The SimpleDialog tests generate key events after focus_force(). On Windows these are only delivered once the toplevel is mapped, so they could be dropped and the test fail intermittently — seen on the AMD64 Windows10 buildbot, where test_return_no_default failed on the first run and passed on the re-run.

Unlike the query dialogs (whose __init__ calls wait_visibility()), SimpleDialog only waits for its window in go(), which these tests bypass. Wait until the window is mapped in the create() helper, as GH-152599 did for the other keyboard tests.

The SimpleDialog keyboard tests generate key events after focus_force(),
which on Windows are dropped until the toplevel is mapped, so they could
fail intermittently (seen on the Windows10 buildbot as
test_return_no_default).  Wait until the window is mapped in each of
these tests, as pythonGH-152599 did for the other keyboard tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka force-pushed the gh-69134-map-simpledialog-tests branch from 99cf022 to 1b5a7b2 Compare June 30, 2026 16:06
@serhiy-storchaka serhiy-storchaka added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 30, 2026
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 1b5a7b2 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F152690%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants