Skip to content

Commit cb2da64

Browse files
committed
Apply Daniel suggestions
1 parent e10036c commit cb2da64

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

spyder/app/tests/test_mainwindow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6710,8 +6710,8 @@ def test_clickable_ipython_tracebacks(main_window, qtbot, tmp_path):
67106710
qtbot.keyClicks(code_editor, '1/0')
67116711

67126712
# Run test file
6713-
qtbot.mouseClick(main_window.run_button, Qt.LeftButton)
6714-
qtbot.wait(500)
6713+
with qtbot.waitSignal(shell.sig_prompt_ready):
6714+
qtbot.mouseClick(main_window.run_button, Qt.LeftButton)
67156715

67166716
# Find last 'File' line in traceback, which corresponds to the file we
67176717
# opened.

spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,10 @@ def test_kernel_kill(ipyconsole, qtbot, external_interpreter):
13951395
shell = ipyconsole.get_current_shellwidget()
13961396

13971397
# Wait for the restarter to start
1398-
qtbot.wait(3000)
1398+
qtbot.waitUntil(
1399+
lambda: shell._prompt_html is not None, timeout=SHELL_TIMEOUT
1400+
)
1401+
13991402
crash_string = 'import os, signal; os.kill(os.getpid(), signal.SIGTERM)'
14001403

14011404
# Check only one comm is open

0 commit comments

Comments
 (0)