From e73b8c64b8cc2531b21135e0d0f07de11dc76ab3 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 12 Oct 2014 20:32:05 +0300 Subject: [PATCH] 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/lib-tk/test/test_ttk/support.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.50.1