]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 29 Jun 2026 17:31:58 +0000 (19:31 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2026 17:31:58 +0000 (17:31 +0000)
commitf5969e78ddde3db399836b5a88144aa7c1420a94
treeff9a01a9e5abd30c0ff9442ac0cea10e12a8944a
parent79249038315b7bb8288a37415ca94e63753ec852
[3.14] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599) (GH-152606)

test_virtual_events and test_selection_event 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.  Wait until the
widget is mapped, as the other GUI tests already do.
(cherry picked from commit be4eebb8386d07f360dd835a0ecb4a1eb6385736)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_tkinter/test_widgets.py
Lib/test/test_ttk/test_widgets.py