cpython/Lib/test/test_tkinter
Serhiy Storchaka 7ce09fc93b
[3.12] gh-128014: Fix passing default='' to the tkinter method wm_iconbitmap() (GH-128015) (GH-128420)
(cherry picked from commit 58e9f95c4a)

Co-authored-by: Zhikang Yan <2951256653@qq.com>
2025-01-02 16:21:00 +00:00
..
__init__.py
__main__.py
README
support.py
test_colorchooser.py
test_font.py
test_geometry_managers.py [3.12] gh-104855: Update Tkinter tests for Tcl/Tk 8.7 and 9.0 (GH-120824) (GH-120865) 2024-06-22 07:10:04 +00:00
test_images.py
test_loadtk.py
test_messagebox.py
test_misc.py [3.12] gh-128014: Fix passing default='' to the tkinter method wm_iconbitmap() (GH-128015) (GH-128420) 2025-01-02 16:21:00 +00:00
test_simpledialog.py
test_text.py
test_variables.py [3.12] gh-104855: Update Tkinter tests for Tcl/Tk 8.7 and 9.0 (GH-120824) (GH-120865) 2024-06-22 07:10:04 +00:00
test_widgets.py [3.12] gh-120873: Add tests for new widget options in Tk 8.7 (GH-120877) (GH-120880) 2024-06-22 13:38:08 +00:00
widget_tests.py [3.12] gh-120873: Add tests for new widget options in Tk 8.7 (GH-120877) (GH-120880) 2024-06-22 13:38:08 +00:00

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).