]> 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:32:05 +0000 (20:32 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 12 Oct 2014 17:32:05 +0000 (20:32 +0300)
This gets rid of  Tcl warnings when they are handled later when the root is
already destroyed.

Lib/lib-tk/test/test_ttk/support.py

index a9d651ca2c710df0112ad3cb40458f847d68fd0d..c335f2927bba4624b2f4a6ad6d0d8de30c1849bf 100644 (file)
@@ -20,6 +20,7 @@ class AbstractTkTest:
 
     @classmethod
     def tearDownClass(cls):
+        cls.root.update_idletasks()
         cls.root.destroy()
         cls.root = None
         tkinter._default_root = None