Skip to content

Fix and harden IDLE GUI tests for newer Tk and display scaling #153741

Description

@serhiy-storchaka

Several IDLE GUI tests fail on newer Tk or are fragile under display scaling. All test-only.

test_sidebar test_mousewheel fails on Tk 8.7+, which replaced the X11 <Button-4>/<Button-5> wheel events with <MouseWheel>.

test_configdialog compares ttk widget states with exact tuples, which break when a widget picks up transient active/hover states from the pointer (whose position shifts with the scaling). The tested methods only toggle disabled, so the tests should assert that flag alone.

Several test_configdialog tests re-mask a method at the end, which is skipped on a mid-test failure; addCleanup() makes it unconditional.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixestestsTests in the Lib/test dirtopic-IDLE

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions