Skip to content

Commit

Permalink
Fix code checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymoteusz Jankowski committed Dec 1, 2019
1 parent a6a3cbc commit f79711d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dvc/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,5 +423,5 @@ def resolve_output(inp, out):


def is_exec_found(exec_name):
cmd = '({}) 2>/dev/null'.format(exec_name)
return hasattr(os, 'system') and os.system(cmd) == 0
cmd = "({}) 2>/dev/null".format(exec_name)
return hasattr(os, "system") and os.system(cmd) == 0
4 changes: 2 additions & 2 deletions tests/func/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def test_makedirs_permissions(tmpdir):

def test_is_exec_found_returns_true_when_program_exists():
result = utils.is_exec_found("python")
assert result == True
assert result is True


def test_is_exec_found_returns_false_when_program_is_missing():
result = utils.is_exec_found("some-missing-program")
assert result == False
assert result is False

0 comments on commit f79711d

Please sign in to comment.