Skip to content

Commit

Permalink
Merge pull request #20733 from ccordoba12/fix-tests
Browse files Browse the repository at this point in the history
PR: Fix `test_clickable_ipython_tracebacks`
  • Loading branch information
ccordoba12 authored Mar 26, 2023
2 parents 7d0b649 + 1b26784 commit 138dafb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spyder/app/tests/test_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -6124,6 +6124,7 @@ def test_PYTHONPATH_in_consoles(main_window, qtbot, tmp_path,


@flaky(max_runs=3)
@pytest.mark.skipif(sys.platform == 'darwin', reason="Fails on Mac")
def test_clickable_ipython_tracebacks(main_window, qtbot, tmpdir):
"""
Test that file names in IPython console tracebacks are clickable.
Expand Down Expand Up @@ -6151,7 +6152,9 @@ def test_clickable_ipython_tracebacks(main_window, qtbot, tmpdir):
qtbot.keyClicks(code_editor, '1/0')

# Run test file
qtbot.keyClick(code_editor, Qt.Key_F5)
run_parameters = generate_run_parameters(main_window, test_file)
CONF.set('run', 'last_used_parameters', run_parameters)
qtbot.mouseClick(main_window.run_button, Qt.LeftButton)
qtbot.wait(500)

# Find last 'File' line in traceback, which corresponds to the file we
Expand Down

0 comments on commit 138dafb

Please sign in to comment.