]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-153741: Harden IDLE GUI tests for newer Tk and display scaling (GH-153742...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Jul 2026 01:49:48 +0000 (03:49 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 01:49:48 +0000 (01:49 +0000)
commita111ea1d7e090add94f204555ce2b122341dfea8
treef49c5d11c3c88e2ea97e0498f91538617832ab44
parentfe66754f245d2ff3e80680429806b016992519dc
[3.15] gh-153741: Harden IDLE GUI tests for newer Tk and display scaling (GH-153742) (#154404)

gh-153741: Harden IDLE GUI tests for newer Tk and display scaling (GH-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>
Lib/idlelib/idle_test/test_configdialog.py
Lib/idlelib/idle_test/test_sidebar.py