mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-26 10:02:22 +08:00
Merge pull request #623 from pre-commit/py3-plus-which
use shutil.which instead of distutils.spawn
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user