Commit e73b8c64 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 9511b546
......@@ -20,6 +20,7 @@ class AbstractTkTest:
@classmethod
def tearDownClass(cls):
cls.root.update_idletasks()
cls.root.destroy()
cls.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