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.
This commit is contained in:
Serhiy Storchaka 2014-10-12 20:35:30 +03:00
parent 2ac7a89843
commit 4cfb5bee89
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class AbstractTkTest:
@classmethod
def tearDownClass(cls):
cls.root.update_idletasks()
cls.root.destroy()
cls.root = None
tkinter._default_root = None