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:36:03 +03:00
commit 0f032a0456
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