Make sure the root windows gets destroyed

This commit is contained in:
Guilherme Polo 2009-01-28 20:02:01 +00:00
parent 7a77ee88af
commit 6d51f12c5e

View file

@ -708,10 +708,13 @@ class NotebookTest(unittest.TestCase):
class TreeviewTest(unittest.TestCase):
def setUp(self):
self.tv = ttk.Treeview()
self.root = support.get_tk_root()
self.tv = ttk.Treeview(self.root)
def tearDown(self):
self.tv.destroy()
self.root.update_idletasks()
self.root.destroy()
def test_bbox(self):