diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-12 17:32:05 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-12 17:32:05 (GMT) |
commit | e73b8c64b8cc2531b21135e0d0f07de11dc76ab3 (patch) | |
tree | c377919b18af25bfe3017e82172a4fe59ecc0dbe | |
parent | 9511b546e47d900c7a6b5ac01915d5d5b4896889 (diff) | |
download | cpython-e73b8c64b8cc2531b21135e0d0f07de11dc76ab3.zip cpython-e73b8c64b8cc2531b21135e0d0f07de11dc76ab3.tar.gz cpython-e73b8c64b8cc2531b21135e0d0f07de11dc76ab3.tar.bz2 |
Always handle non-handled events before destoying root widget in tests.
This gets rid of Tcl warnings when they are handled later when the root is
already destroyed.
-rw-r--r-- | Lib/lib-tk/test/test_ttk/support.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/lib-tk/test/test_ttk/support.py b/Lib/lib-tk/test/test_ttk/support.py index a9d651c..c335f29 100644 --- a/Lib/lib-tk/test/test_ttk/support.py +++ b/Lib/lib-tk/test/test_ttk/support.py @@ -20,6 +20,7 @@ class AbstractTkTest: @classmethod def tearDownClass(cls): + cls.root.update_idletasks() cls.root.destroy() cls.root = None tkinter._default_root = None |