]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077) (GH-29093)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 20 Oct 2021 14:08:43 +0000 (07:08 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Oct 2021 14:08:43 +0000 (16:08 +0200)
commit2ce38167000fef3a71f1783acdda2a2cf7a2df39
tree28c567c3fc2dabae51e3f33c53bace3852be0b90
parent67e10be3fee7c69d4ece26e75a0b7a84dab68ce5
bpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077) (GH-29093)

Since v8.6.11, a few configuration options seem to accept an empty value
where they did not previously; particularly the `type` of a `Menu`
widget, and the `compound` of any ttk widget with a label.  Providing an
explicit expected error message to `checkEnumParam` bypasses the check
of an empty value, which no longer raises `TclError`.
(cherry picked from commit 4fe454c6f54b0948af67b53af6c2f35af6377e69)

Co-authored-by: Zachary Ware <zach@python.org>
Lib/tkinter/test/test_tkinter/test_widgets.py
Lib/tkinter/test/test_ttk/test_widgets.py