]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-151678: Add tests for tkinter.Menu (GH-151685) (GH-151711)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jun 2026 09:23:43 +0000 (11:23 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 09:23:43 +0000 (09:23 +0000)
commitc0c992056046f4fd62bb6ee58eaae72d90671243
treeee29b7e8b632ae540db14956eb66c162ecad9e82
parent423f620f31199f52a6b5029205afd612be941eb9
[3.13] gh-151678: Add tests for tkinter.Menu (GH-151685) (GH-151711)

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