summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-10-12 17:32:05 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-10-12 17:32:05 (GMT)
commite73b8c64b8cc2531b21135e0d0f07de11dc76ab3 (patch)
treec377919b18af25bfe3017e82172a4fe59ecc0dbe
parent9511b546e47d900c7a6b5ac01915d5d5b4896889 (diff)
downloadcpython-e73b8c64b8cc2531b21135e0d0f07de11dc76ab3.zip
cpython-e73b8c64b8cc2531b21135e0d0f07de11dc76ab3.tar.gz
cpython-e73b8c64b8cc2531b21135e0d0f07de11dc76ab3.tar.bz2
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.
-rw-r--r--Lib/lib-tk/test/test_ttk/support.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/lib-tk/test/test_ttk/support.py b/Lib/lib-tk/test/test_ttk/support.py
index a9d651c..c335f29 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