]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-69134: Wait until mapped in SimpleDialog keyboard tests (GH-152690)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 5 Jul 2026 10:51:34 +0000 (13:51 +0300)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 10:51:34 +0000 (13:51 +0300)
commit7d619c2fea131722d0bfdad150c081c44cc0abd7
tree5f365685b9caa0d6d2797bb8fd74e4cd1fe3a539
parent2ab620b41af57e24c11c131bec02f682561ecfaa
gh-69134: Wait until mapped in SimpleDialog keyboard tests (GH-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 each of
these tests, as GH-152599 did for the other keyboard tests.

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