summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-10-12 17:36:03 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-10-12 17:36:03 (GMT)
commit0f032a0456da250feb0c1fbff79fd057568184f8 (patch)
tree8cc17607d8a19c5ccfda6f74d6cf47abf2c86d66 /Lib/tkinter/test
parent5382c2590cd5884259b48eb3637da95d27f98091 (diff)
parent4cfb5bee89965c7b85772ee2d0c3bf689acd23b2 (diff)
downloadcpython-0f032a0456da250feb0c1fbff79fd057568184f8.zip
cpython-0f032a0456da250feb0c1fbff79fd057568184f8.tar.gz
cpython-0f032a0456da250feb0c1fbff79fd057568184f8.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.
Diffstat (limited to 'Lib/tkinter/test')
-rw-r--r--Lib/tkinter/test/support.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/tkinter/test/support.py b/Lib/tkinter/test/support.py
index 017681f..067fc71 100644
--- a/Lib/tkinter/test/support.py
+++ b/Lib/tkinter/test/support.py
@@ -22,6 +22,7 @@ class AbstractTkTest:
@classmethod
def tearDownClass(cls):
+ cls.root.update_idletasks()
cls.root.destroy()
cls.root = None
tkinter._default_root = None