Skip to content

Commit

Permalink
TST: Try to fix flaky test on linux runs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbellister-slac committed Jul 6, 2023
1 parent 5cd98ca commit df84dcf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pydm/tests/widgets/test_lineedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,9 +644,8 @@ def test_focus_out_event(qtbot, qapp, display_value):
pydm_lineedit.check_enable_state()

pydm_lineedit._display = display_value
pydm_lineedit.setFocus()
qapp.processEvents()
def wait_focus():
pydm_lineedit.setFocus()
qapp.processEvents()
return pydm_lineedit.hasFocus()

Expand Down

0 comments on commit df84dcf

Please sign in to comment.