diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-12 17:36:03 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-12 17:36:03 (GMT) |
commit | 0f032a0456da250feb0c1fbff79fd057568184f8 (patch) | |
tree | 8cc17607d8a19c5ccfda6f74d6cf47abf2c86d66 /Lib/tkinter | |
parent | 5382c2590cd5884259b48eb3637da95d27f98091 (diff) | |
parent | 4cfb5bee89965c7b85772ee2d0c3bf689acd23b2 (diff) | |
download | cpython-0f032a0456da250feb0c1fbff79fd057568184f8.zip cpython-0f032a0456da250feb0c1fbff79fd057568184f8.tar.gz cpython-0f032a0456da250feb0c1fbff79fd057568184f8.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.
Diffstat (limited to 'Lib/tkinter')
-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 |