use shutil.which instead of distutils.spawn

This commit is contained in:
Anthony Sottile 2021-07-07 14:06:01 -04:00
parent 8fa80b3606
commit 301195efa9
1 changed files with 2 additions and 2 deletions

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(