]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] 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 16:00:20 +0000 (18:00 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2026 16:00:20 +0000 (16:00 +0000)
commit05cf0072a71790c9229c1fb89914b1a46abccc86
tree9859dd92b451c91cc88c5b947bada57ac8336ba9
parent9bea12aaca4b6950b0ff58a798b66350e72cfdcc
[3.15] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599) (GH-152605)

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