Skip to content

[3.14] gh-153741: Harden IDLE GUI tests for newer Tk and display scaling (GH-153742)#154405

Merged
terryjreedy merged 1 commit into
python:3.14from
miss-islington:backport-a2581eb-3.14
Jul 22, 2026
Merged

[3.14] gh-153741: Harden IDLE GUI tests for newer Tk and display scaling (GH-153742)#154405
terryjreedy merged 1 commit into
python:3.14from
miss-islington:backport-a2581eb-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

In test_sidebar.test_mousewheel, only use the X11 / events when testing on
x11 Tk before 8.7. Otherwise, use as on other systems.

In test_configdialog, assert the 'disabled' state flag alone instead of
the exact ttk state tuple (which transient pointer states break), and
restore the tests' method masks with addCleanup().
(cherry picked from commit a2581eb)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

…ng (pythonGH-153742)

In test_sidebar.test_mousewheel, only use the X11 <Button-4>/<Button-5> events when testing on
x11 Tk before 8.7.  Otherwise, use <Mousewheel> as on other systems.

In test_configdialog, assert the 'disabled' state flag alone instead of
the exact ttk state tuple (which transient pointer states break), and
restore the tests' method masks with addCleanup().
(cherry picked from commit a2581ebc7a93ec573f64d3a5e29cbd9053de7a1f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 22, 2026
@terryjreedy
terryjreedy enabled auto-merge (squash) July 22, 2026 01:18
@terryjreedy
terryjreedy merged commit 5f80c0e into python:3.14 Jul 22, 2026
86 of 88 checks passed
@miss-islington
miss-islington deleted the backport-a2581eb-3.14 branch July 22, 2026 02:34
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.

3 participants