Skip to content

Commit 4cfb5be

Browse files
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.
1 parent 2ac7a89 commit 4cfb5be

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/tkinter/test/support.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def setUpClass(cls):
2222

2323
@classmethod
2424
def tearDownClass(cls):
25+
cls.root.update_idletasks()
2526
cls.root.destroy()
2627
cls.root = None
2728
tkinter._default_root = None

0 commit comments

Comments
 (0)