Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Aug 15, 2022
1 parent 708fc60 commit 7c39291
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spyder/app/tests/test_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5198,7 +5198,7 @@ def foo(x):
debug_button = main_window.debug_toolbar.widgetForAction(debug_action)
check_focus(debug_button)

# Go to the next line while debugging
# debug cell while debugging
debug_next_action = main_window.debug_toolbar_actions[1]
debug_next_button = main_window.debug_toolbar.widgetForAction(
debug_next_action)
Expand Down
4 changes: 3 additions & 1 deletion spyder/plugins/ipythonconsole/widgets/main_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,9 @@ def norm(text):
str(function),
repr(cell_name),
norm(filename).replace("'", r"\'")))

if function == "debugcell":
# To keep focus in editor after running debugfile
client.shellwidget._pdb_focus_to_editor = focus_to_editor
# External kernels and run_cell_copy, just execute the code
else:
line = code.strip()
Expand Down

0 comments on commit 7c39291

Please sign in to comment.