cpython/Lib/tkinter/test
Miss Islington (bot) af08bcab8f
[3.11] gh-100814: Fix exception for invalid callable value of Tkinter image option (GH-107692) (GH-107723)
Passing a callable object as an option value to a Tkinter image now raises
the expected TclError instead of an AttributeError.
(cherry picked from commit 50e3cc9748)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-08-16 11:07:02 +03:00
..
test_tkinter [3.11] gh-100814: Fix exception for invalid callable value of Tkinter image option (GH-107692) (GH-107723) 2023-08-16 11:07:02 +03:00
test_ttk [3.11] gh-104496: Use correct Tcl or Tk version in Tkinter tests (GH-107688) (GH-107719) 2023-08-07 14:48:43 +00:00
README
__init__.py
support.py [3.11] gh-104496: Use correct Tcl or Tk version in Tkinter tests (GH-107688) (GH-107719) 2023-08-07 14:48:43 +00:00
widget_tests.py [3.11] gh-104496: Use correct Tcl or Tk version in Tkinter tests (GH-107688) (GH-107719) 2023-08-07 14:48:43 +00:00

README

Writing new tests
=================

Precaution
----------

    New tests should always use only one Tk window at once, like all the
    current tests do. This means that you have to destroy the current window
    before creating another one, and clean up after the test. The motivation
    behind this is that some tests may depend on having its window focused
    while it is running to work properly, and it may be hard to force focus
    on your window across platforms (right now only test_traversal at
    test_ttk.test_widgets.NotebookTest depends on this).