]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-69134: Wait until mapped in SimpleDialog keyboard tests (GH-152690) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 5 Jul 2026 11:37:41 +0000 (14:37 +0300)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 11:37:41 +0000 (11:37 +0000)
commit84860163827d3d29604ebf985d3d9846e4962992
tree5ebcf415b6c6d6b8d5354ba295484f67d4e9fc95
parent9daaae8019748284fd490dd6f81a99acc46363cc
[3.14] gh-69134: Wait until mapped in SimpleDialog keyboard tests (GH-152690) (GH-153105)

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 GH-152599 did for the other keyboard tests.

(cherry picked from commit 7d619c2fea131722d0bfdad150c081c44cc0abd7)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_tkinter/test_simpledialog.py