Merge pull request #623 from pre-commit/py3-plus-which

use shutil.which instead of distutils.spawn
This commit is contained in:
Anthony Sottile
2021-07-07 14:09:09 -04:00
committed by GitHub

View File

@ -1,4 +1,4 @@
import distutils.spawn
import shutil
import pytest
@ -75,7 +75,7 @@ def test_integration(temp_git_dir):
def has_gitlfs():
return distutils.spawn.find_executable('git-lfs') is not None
return shutil.which('git-lfs') is not None
xfailif_no_gitlfs = pytest.mark.xfail(