Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e02c489

Browse files
tdeoasottile
authored andcommitted
PCRE tests work on osx
1 parent b514e75 commit e02c489

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

testing/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from pre_commit import parse_shebang
1010
from pre_commit.languages.docker import docker_is_running
11+
from pre_commit.languages.pcre import GREP
1112
from pre_commit.util import cmd_output
1213
from pre_commit.util import cwd
1314

@@ -86,7 +87,7 @@ def cmd_output_mocked_pre_commit_home(*args, **kwargs):
8687

8788

8889
def platform_supports_pcre():
89-
output = cmd_output('grep', '-P', "name='pre", 'setup.py', retcode=None)
90+
output = cmd_output(GREP, '-P', "name='pre", 'setup.py', retcode=None)
9091
return output[0] == 0 and "name='pre_commit'," in output[1]
9192

9293

0 commit comments

Comments
 (0)