]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-69134: Wait until mapped in SimpleDialog keyboard tests (GH-152690) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 5 Jul 2026 11:42:24 +0000 (14:42 +0300)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 11:42:24 +0000 (11:42 +0000)
commit0416fcd7cf454b3b8d87467f3b6442a647136a1a
treea8b5c67f3a110a8e8cb4592c830d6ce0e6652850
parent202e751f792cc4218f1b9fea08e30c06c3bddd30
[3.15] gh-69134: Wait until mapped in SimpleDialog keyboard tests (GH-152690) (GH-153104)

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