Skip to content

Commit

Permalink
Fix json typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed May 25, 2024
1 parent 17c2ecb commit 9c563b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spyder/app/tests/test_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -6014,21 +6014,21 @@ def test_recursive_debug(main_window, qtbot):
with qtbot.waitSignal(shell.executed):
shell.execute('s')
# a in framesbrowser
assert frames_browser.frames['pdb'][2].name == 'a'
assert frames_browser.frames['pdb'][2]["name"] == 'a'

# Recursive debug
with qtbot.waitSignal(shell.executed):
shell.execute('debug b()')
with qtbot.waitSignal(shell.executed):
shell.execute('s')
# b in framesbrowser
assert frames_browser.frames['pdb'][2].name == 'b'
assert frames_browser.frames['pdb'][2]["name"] == 'b'

# Quit recursive debugger
with qtbot.waitSignal(shell.executed):
shell.execute('q')
# a in framesbrowser
assert frames_browser.frames['pdb'][2].name == 'a'
assert frames_browser.frames['pdb'][2]["name"] == 'a'

# quit debugger
with qtbot.waitSignal(shell.executed):
Expand Down
2 changes: 1 addition & 1 deletion spyder/plugins/debugger/widgets/framesbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def show_pdb(self, pdb_stack, curindex):
def show_exception(self, etype, error, tb):
"""Set frames from exception"""
self._show_frames(
{etype.__name__: tb}, _("Exception occured"),
{etype: tb}, _("Exception occured"),
FramesBrowserState.Error)
self.sig_update_actions_requested.emit()

Expand Down

0 comments on commit 9c563b1

Please sign in to comment.