Skip to content

[3.13] gh-69134: Wait until mapped in SimpleDialog keyboard tests (GH-152690)#153106

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-7d619c2-3.13
Jul 5, 2026
Merged

[3.13] gh-69134: Wait until mapped in SimpleDialog keyboard tests (GH-152690)#153106
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-7d619c2-3.13

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Manual backport of #152690 (miss-islington could not backport it automatically).

The SimpleDialog ttk modernization is not on 3.13, so only two of the keyboard tests it touched exist here — test_return_activates_default and test_return_no_default (the buildbot flake). This adds the mapped-wait to those two.

…ts (pythonGH-152690)

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 these tests,
as pythonGH-152599 did for the other keyboard tests.

(cherry picked from commit 7d619c2)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 5, 2026 11:18
@serhiy-storchaka serhiy-storchaka merged commit 18735fd into python:3.13 Jul 5, 2026
42 checks passed
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