Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Apr 6, 2020
1 parent fa5c76e commit 6dafbdb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -1670,10 +1670,11 @@ def test_pdb_without_comm(ipyconsole, qtbot):

with qtbot.waitSignal(shell.executed):
shell.execute("get_ipython().kernel.frontend_comm.close()")
with qtbot.waitSignal(shell.executed):
shell.execute("%debug print()")
with qtbot.waitSignal(shell.executed):
shell.execute("print('Two: ' + str(1+1))")
shell.execute("%debug print()")
qtbot.waitUntil(lambda: control.toPlainText().split()[-1] == 'ipdb>')
qtbot.keyClicks(control, "print('Two: ' + str(1+1))")
qtbot.keyClick(control, Qt.Key_Enter)
qtbot.waitUntil(lambda: control.toPlainText().split()[-1] == 'ipdb>')

assert "Two: 2" in control.toPlainText()

Expand Down

0 comments on commit 6dafbdb

Please sign in to comment.