Skip to content

[3.15] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599)#152605

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-be4eebb-3.15
Jun 29, 2026
Merged

[3.15] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599)#152605
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-be4eebb-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

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 be4eebb)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…thonGH-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.
(cherry picked from commit be4eebb8386d07f360dd835a0ecb4a1eb6385736)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jun 29, 2026
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) June 29, 2026 15:37
@serhiy-storchaka serhiy-storchaka merged commit 05cf007 into python:3.15 Jun 29, 2026
56 checks passed
@miss-islington miss-islington deleted the backport-be4eebb-3.15 branch June 29, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants