]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-151678: Add tests for tkinter.Menu (GH-151685) (GH-151709)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jun 2026 09:28:03 +0000 (11:28 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 09:28:03 +0000 (09:28 +0000)
commitcfe461944dac8e40e21ebc5bca8b73420c78527e
treebde1f1324d7b023ad06523afff7ecaacc0f333ee
parent2c09c0ed29fe1d21cc5177b2cc1c0a27fb31f446
[3.15] gh-151678: Add tests for tkinter.Menu (GH-151685) (GH-151709)

Cover previously-untested Menu methods in MenuTest: adding, inserting and
deleting items of every type, index resolution, invoking items, entry x/y
positions, and post/unpost/tk_popup mapping.

Also test per-entry configuration options and the errors raised for
invalid indices, entry types, option names and option values.
(cherry picked from commit ef5c32a40be50a33a9b7ac39ee64e6893bc22f60)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_tkinter/test_widgets.py