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.
diff --git a/Lib/lib-tk/test/test_ttk/support.py b/Lib/lib-tk/test/test_ttk/support.py
index a9d651c..c335f29 100644
--- a/Lib/lib-tk/test/test_ttk/support.py
+++ b/Lib/lib-tk/test/test_ttk/support.py
@@ -20,6 +20,7 @@
@classmethod
def tearDownClass(cls):
+ cls.root.update_idletasks()
cls.root.destroy()
cls.root = None
tkinter._default_root = None