From: Serhiy Storchaka Date: Sun, 12 Oct 2014 17:35:30 +0000 (+0300) Subject: Always handle non-handled events before destoying root widget in tests. X-Git-Tag: v3.5.0a1~679^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cfb5bee89965c7b85772ee2d0c3bf689acd23b2;p=python 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/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