mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Make the pcre check for a more compliant implementation
This commit is contained in:
parent
82369fd99f
commit
f8c82f99fd
1 changed files with 2 additions and 2 deletions
|
|
@ -75,8 +75,8 @@ xfailif_windows_no_node = pytest.mark.xfail(
|
|||
|
||||
|
||||
def platform_supports_pcre():
|
||||
output = cmd_output('grep', '-P', 'setup', 'setup.py', retcode=None)
|
||||
return output[0] == 0 and 'from setuptools import setup' in output[1]
|
||||
output = cmd_output('grep', '-P', "name='pre", 'setup.py', retcode=None)
|
||||
return output[0] == 0 and "name='pre_commit'," in output[1]
|
||||
|
||||
|
||||
xfailif_no_pcre_support = pytest.mark.xfail(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue