[Python-checkins] cpython (2.7): Always handle non-handled events before destoying root widget in tests.
serhiy.storchaka
python-checkins at python.org
Sun Oct 12 19:38:33 CEST 2014
https://hg.python.org/cpython/rev/c4a71e5f2049
changeset: 93001:c4a71e5f2049
branch: 2.7
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Oct 12 20:32:05 2014 +0300
summary:
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.
files:
Lib/lib-tk/test/test_ttk/support.py | 1 +
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
--- a/Lib/lib-tk/test/test_ttk/support.py
+++ b/Lib/lib-tk/test/test_ttk/support.py
@@ -20,6 +20,7 @@
@classmethod
def tearDownClass(cls):
+ cls.root.update_idletasks()
cls.root.destroy()
cls.root = None
tkinter._default_root = None
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list