[Python-checkins] cpython (3.4): 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/f6f098bdb843
changeset: 93002:f6f098bdb843
branch: 3.4
parent: 92998:12536a991007
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Oct 12 20:35:30 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/tkinter/test/support.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/tkinter/test/support.py b/Lib/tkinter/test/support.py
--- a/Lib/tkinter/test/support.py
+++ b/Lib/tkinter/test/support.py
@@ -22,6 +22,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