bpo-37220: Fix 2.7 test -R crash on Windows. (GH-13957)

The patch needed for 2.7 should make the test more stable on 3.x also.
(cherry picked from commit 66d47da86a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Miss Islington (bot) 2019-06-16 13:52:25 -07:00 committed by GitHub
parent c289588905
commit 0c45aee803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,6 @@ class SearchDialogBaseTest(unittest.TestCase):
self.dialog.default_command = None
toplevel = Toplevel(self.root)
self.addCleanup(toplevel.destroy)
text = Text(toplevel)
self.dialog.open(text)
self.assertEqual(self.dialog.top.state(), 'normal')
@ -57,7 +56,8 @@ class SearchDialogBaseTest(unittest.TestCase):
self.dialog.open(text, searchphrase="hello")
self.assertEqual(self.dialog.ent.get(), 'hello')
self.dialog.close()
toplevel.update_idletasks()
toplevel.destroy()
def test_create_widgets(self):
self.dialog.create_entries = Func()