Skip to content

Commit ef667a3

Browse files
authored
Update test_widgets.py
1 parent 3db734f commit ef667a3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/matplotlib/tests/test_widgets.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,15 @@ def test_TextBox():
347347

348348
assert tool.text == ''
349349
assert text_change_event.call_count == 1
350-
350+
351+
do_event(tool, '_click')
352+
353+
tool.set_val('x**2')
351354
tool.begin_typing(tool.text)
352355
tool.stop_typing()
353-
do_event(tool, '_click')
354356

355-
assert submit_event.call_count == 2
357+
assert submit_event.call_count == 3
356358

357-
tool.set_val('x**2')
358359
do_event(tool, '_click')
359360
do_event(tool, '_keypress', key='+')
360361
do_event(tool, '_keypress', key='5')

0 commit comments

Comments
 (0)