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(
|
||||
|
|
|
|||
|
|
@ -340,6 +340,7 @@ def test_additional_python_dependencies_installed(tempdir_factory, store):
|
|||
assert 'mccabe' in output
|
||||
|
||||
|
||||
@xfailif_windows_no_ruby
|
||||
@pytest.mark.integration
|
||||
def test_additional_ruby_dependencies_installed(tempdir_factory, store):
|
||||
path = make_repo(tempdir_factory, 'ruby_hooks_repo')
|
||||
|
|
@ -352,6 +353,7 @@ def test_additional_ruby_dependencies_installed(tempdir_factory, store):
|
|||
assert 'thread_safe' in output
|
||||
|
||||
|
||||
@xfailif_windows_no_node
|
||||
@pytest.mark.integration
|
||||
def test_additional_node_dependencies_installed(tempdir_factory, store):
|
||||
path = make_repo(tempdir_factory, 'node_hooks_repo')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue