diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-12 17:35:30 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-12 17:35:30 (GMT) |
commit | 4cfb5bee89965c7b85772ee2d0c3bf689acd23b2 (patch) | |
tree | 0c1ec46a9575a1bc26cae1e9538169c5b596f4f8 | |
parent | 2ac7a89843c75a590b5994d89e99744baea29cf2 (diff) | |
download | cpython-4cfb5bee89965c7b85772ee2d0c3bf689acd23b2.zip cpython-4cfb5bee89965c7b85772ee2d0c3bf689acd23b2.tar.gz cpython-4cfb5bee89965c7b85772ee2d0c3bf689acd23b2.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/tkinter/test/support.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/tkinter/test/support.py b/Lib/tkinter/test/support.py index 017681f..067fc71 100644 --- a/Lib/tkinter/test/support.py +++ b/Lib/tkinter/test/support.py @@ -22,6 +22,7 @@ class AbstractTkTest: @classmethod def tearDownClass(cls): + cls.root.update_idletasks() cls.root.destroy() cls.root = None tkinter._default_root = None |