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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e73b8c64b8cc2531b21135e0d0f07de11dc76ab3;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/lib-tk/test/test_ttk/support.py b/Lib/lib-tk/test/test_ttk/support.py index a9d651ca2c..c335f2927b 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