Skip to content

Commit cd89906

Browse files
blurb-it[bot]arshalaromal
authored andcommitted
📜🤖 Added by blurb_it.
1 parent 7dca6e2 commit cd89906

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎Lib/test/test_tkinter/test_simpledialog.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def open(self, query, **kw):
444444
d.focus_force()
445445
d.update()
446446
return d
447-
447+
448448
def enter(self, d, value, key='<Return>'):
449449
d.entry.delete(0, 'end')
450450
d.entry.insert(0, value)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix race condition in :mod:`tkinter.simpledialog` tests by explicitly setting focus to entry before generating events.

0 commit comments

Comments
 (0)