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.4.3rc1~489 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4cfb5bee89965c7b85772ee2d0c3bf689acd23b2;p=thirdparty%2FPython%2Fcpython.git 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 017681f03846..067fc71c8fb7 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