]> granicus.if.org Git - python/commitdiff
Always handle non-handled events before destoying root widget in tests.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 12 Oct 2014 17:35:30 +0000 (20:35 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 12 Oct 2014 17:35:30 +0000 (20:35 +0300)
This gets rid of  Tcl warnings when they are handled later when the root is
already destroyed.

Lib/tkinter/test/support.py

index 017681f038461d75ad489379d2538e11a0fc0bdd..067fc71c8fb710f75d8fb8c6b10867f3af0102b5 100644 (file)
@@ -22,6 +22,7 @@ class AbstractTkTest:
 
     @classmethod
     def tearDownClass(cls):
+        cls.root.update_idletasks()
         cls.root.destroy()
         cls.root = None
         tkinter._default_root = None