]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-100814: Fix exception for invalid callable value of Tkinter image option (GH-107692)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 7 Aug 2023 14:38:55 +0000 (17:38 +0300)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2023 14:38:55 +0000 (17:38 +0300)
commit50e3cc9748eb2103eb7ed6cc5a74d177df3cfb13
tree8f1961ca698d9824dba4acf185e2dd2176ed89a8
parent835e38891535649321230f94121410244c583966
gh-100814: Fix exception for invalid callable value of Tkinter image option (GH-107692)

Passing a callable object as an option value to a Tkinter image now raises
the expected TclError instead of an AttributeError.
Lib/test/test_tkinter/test_images.py
Lib/tkinter/__init__.py
Misc/NEWS.d/next/Library/2023-08-06-15-29-00.gh-issue-100814.h195gW.rst [new file with mode: 0644]