Skip to content

Commit

Permalink
Try to fix tests on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Oct 28, 2023
1 parent 3e71c69 commit f8b58bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_tkinter/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,6 @@ def setUp(self):
self.frame = tkinter.Frame(self.root, class_='Test',
width=150, height=100)
self.frame.pack()
self.frame.focus_set()
self.frame.wait_visibility()

def assertCommandExist(self, funcid):
self.assertEqual(_info_commands(self.root, funcid), (funcid,))
Expand Down Expand Up @@ -481,6 +479,8 @@ def test2(e): pass

def test_unbind2(self):
f = self.frame
f.focus_set()
f.wait_visibility()
event = '<Control-Alt-Key-c>'
self.assertEqual(f.bind(), ())
self.assertEqual(f.bind(event), '')
Expand Down

0 comments on commit f8b58bc

Please sign in to comment.