Skip to content

Commit

Permalink
Skip test_file_shortcut on Linux under CI
Browse files Browse the repository at this point in the history
This test fails like similar tests in the same file because there
is no proper X server.
  • Loading branch information
jitseniesen committed Feb 26, 2025
1 parent 2081126 commit 82e32b7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,11 @@ def test_shortcuts_for_new_editors(editorstack, qtbot):
qtbot.keyClick(editor, Qt.Key_1, modifier=Qt.ControlModifier)
assert editor.toPlainText() == '# Line5\nLine6\nLine7\nLine8\n'


@pytest.mark.skipif(
sys.platform.startswith('linux') and running_in_ci(),
reason="It fails on Linux due to the lack of a proper X server."
)
@pytest.mark.parametrize(
'key, modifier, action',
[
Expand Down

0 comments on commit 82e32b7

Please sign in to comment.