]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-151678: Add tests for tkinter.Menu (GH-151685) (GH-151710)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jun 2026 09:25:05 +0000 (11:25 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 09:25:05 +0000 (09:25 +0000)
commit7044daa1a9d20ed8a85cd84990423890be44089e
tree9e7925dfcf9e2f0375da041c502fda1c54b46d71
parent22c000eeb4341f650f2c660b29d49f3f44741392
[3.14] gh-151678: Add tests for tkinter.Menu (GH-151685) (GH-151710)

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