From: Serhiy Storchaka Date: Sun, 12 Oct 2014 17:32:05 +0000 (+0300) Subject: Always handle non-handled events before destoying root widget in tests. X-Git-Tag: v2.7.9rc1~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e73b8c64b8cc2531b21135e0d0f07de11dc76ab3;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/lib-tk/test/test_ttk/support.py b/Lib/lib-tk/test/test_ttk/support.py index a9d651ca2c71..c335f2927bba 100644 --- a/Lib/lib-tk/test/test_ttk/support.py +++ b/Lib/lib-tk/test/test_ttk/support.py @@ -20,6 +20,7 @@ class AbstractTkTest: @classmethod def tearDownClass(cls): + cls.root.update_idletasks() cls.root.destroy() cls.root = None tkinter._default_root = None