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.
This commit is contained in:
parent
2ac7a89843
commit
4cfb5bee89
|
@ -22,6 +22,7 @@ class AbstractTkTest:
|
|||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
cls.root.update_idletasks()
|
||||
cls.root.destroy()
|
||||
cls.root = None
|
||||
tkinter._default_root = None
|
||||
|
|
Loading…
Reference in New Issue