Commit 931af45f authored by Serhiy Storchaka's avatar Serhiy Storchaka

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.
parent bc1165c4
...@@ -20,6 +20,7 @@ class AbstractTkTest: ...@@ -20,6 +20,7 @@ class AbstractTkTest:
@classmethod @classmethod
def tearDownClass(cls): def tearDownClass(cls):
cls.root.update_idletasks()
cls.root.destroy() cls.root.destroy()
cls.root = None cls.root = None
tkinter._default_root = None tkinter._default_root = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment