Commit 722733e9 authored by Terry Jan Reedy's avatar Terry Jan Reedy Committed by GitHub

[2.7] Fix 2.7 test -R test_IDLE failure on Windows (GH-13958)

Cherry-picked from 66d47da8.
parent ee15aa2b
...@@ -46,7 +46,6 @@ class SearchDialogBaseTest(unittest.TestCase): ...@@ -46,7 +46,6 @@ class SearchDialogBaseTest(unittest.TestCase):
self.dialog.default_command = None self.dialog.default_command = None
toplevel = Toplevel(self.root) toplevel = Toplevel(self.root)
self.addCleanup(toplevel.destroy)
text = Text(toplevel) text = Text(toplevel)
self.dialog.open(text) self.dialog.open(text)
self.assertEqual(self.dialog.top.state(), 'normal') self.assertEqual(self.dialog.top.state(), 'normal')
...@@ -55,7 +54,8 @@ class SearchDialogBaseTest(unittest.TestCase): ...@@ -55,7 +54,8 @@ class SearchDialogBaseTest(unittest.TestCase):
self.dialog.open(text, searchphrase="hello") self.dialog.open(text, searchphrase="hello")
self.assertEqual(self.dialog.ent.get(), 'hello') self.assertEqual(self.dialog.ent.get(), 'hello')
self.dialog.close() toplevel.update_idletasks()
toplevel.destroy()
def test_create_widgets(self): def test_create_widgets(self):
self.dialog.create_entries = Func() self.dialog.create_entries = Func()
......
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