From 4cfb5bee89965c7b85772ee2d0c3bf689acd23b2 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 12 Oct 2014 20:35:30 +0300 Subject: 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. --- Lib/tkinter/test/support.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v0.12