From 4f2f1a64940253b0eb3b387b43999483584a93ac Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 12 Dec 2017 06:57:39 +0100 Subject: [PATCH] Make sure editor test doesn't run on Windows --- tests/end2end/features/test_editor_bdd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/end2end/features/test_editor_bdd.py b/tests/end2end/features/test_editor_bdd.py index 3e2b2ee8d..260197a46 100644 --- a/tests/end2end/features/test_editor_bdd.py +++ b/tests/end2end/features/test_editor_bdd.py @@ -26,6 +26,8 @@ import signal import pytest_bdd as bdd bdd.scenarios('editor.feature') +from qutebrowser.utils import utils + @bdd.when(bdd.parsers.parse('I set up a fake editor replacing "{text}" by ' '"{replacement}"')) @@ -71,6 +73,7 @@ def set_up_editor_empty(quteproc, tmpdir): @bdd.when(bdd.parsers.parse('I set up a fake editor that waits')) def set_up_editor_wait(quteproc, tmpdir): """Set up editor.command to a small python script inserting a text.""" + assert not utils.is_windows pidfile = tmpdir / 'editor_pid' script = tmpdir / 'script.py' script.write(textwrap.dedent("""