Bug 1390699 - Follow-up: Use find_executable() to locate echo. r=ahal

MozReview-Commit-ID: QY8dajeXs0
This commit is contained in:
Tom Prince
2017-08-17 00:19:12 -06:00
parent 40cab4912d
commit 4940d19984

View File

@@ -4,8 +4,8 @@
import os
import sys
from distutils.spawn import find_executable
import py
import pytest
from mozlint import cli
@@ -39,7 +39,7 @@ def test_cli_run_with_fix(run, capfd):
assert out.endswith('{}\n')
@pytest.mark.skipif(not py.path.local.sysfind("echo"), reason="No `echo` executable found.")
@pytest.mark.skipif(not find_executable("echo"), reason="No `echo` executable found.")
def test_cli_run_with_edit(run, parser, capfd):
os.environ['EDITOR'] = 'echo'