зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1390699 - Follow-up: Use find_executable() to locate echo. r=ahal
MozReview-Commit-ID: QY8dajeXs0
This commit is contained in:
Родитель
11d8d1c88e
Коммит
c29574c405
|
@ -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'
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче