mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix some minor windows compatibility things
This commit is contained in:
parent
de2ead13a1
commit
b9bc6212c1
2 changed files with 4 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ xfailif_windows_no_node = pytest.mark.xfail(
|
|||
|
||||
|
||||
def platform_supports_pcre():
|
||||
return cmd_output('grep', '-P', '', os.devnull, retcode=None)[0] == 1
|
||||
output = cmd_output('grep', '-P', 'setup', 'setup.py', retcode=None)
|
||||
return output[0] == 0 and 'from setuptools import setup' in output[1]
|
||||
|
||||
|
||||
xfailif_no_pcre_support = pytest.mark.xfail(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue