]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Jun 2026 15:30:23 +0000 (18:30 +0300)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2026 15:30:23 +0000 (15:30 +0000)
commitbe4eebb8386d07f360dd835a0ecb4a1eb6385736
treedda5217589be05a584f799f42b2d1d7fc55c5d95
parent1b0c05f14807a43d070127b3d8eac1af8de27f28
gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599)

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.

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