[Python-checkins] cpython (merge 3.4 -> default): Always handle non-handled events before destoying root widget in tests.

serhiy.storchaka python-checkins at python.org
Sun Oct 12 19:38:34 CEST 2014


https://hg.python.org/cpython/rev/770b404b8b54
changeset:   93003:770b404b8b54
parent:      92999:8e4afcaa196c
parent:      93002:f6f098bdb843
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Oct 12 20:36:03 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