diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-12 20:35:30 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-12 20:35:30 +0300 |
| commit | 4cfb5bee89965c7b85772ee2d0c3bf689acd23b2 (patch) | |
| tree | 0c1ec46a9575a1bc26cae1e9538169c5b596f4f8 /Lib/tkinter/test | |
| parent | 2ac7a89843c75a590b5994d89e99744baea29cf2 (diff) | |
| download | cpython-git-4cfb5bee89965c7b85772ee2d0c3bf689acd23b2.tar.gz | |
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/test')
| -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 017681f038..067fc71c8f 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 |
