mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 04:54:16 +00:00
Skip the symlink tests on windows
This commit is contained in:
parent
896c0cfdc0
commit
da882286e3
1 changed files with 3 additions and 0 deletions
|
|
@ -1,9 +1,12 @@
|
||||||
|
import os
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from pre_commit_hooks.check_symlinks import check_symlinks
|
from pre_commit_hooks.check_symlinks import check_symlinks
|
||||||
from testing.util import get_resource_path
|
from testing.util import get_resource_path
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.xfail(os.name == 'nt', reason='No symlink support on windows')
|
||||||
@pytest.mark.parametrize(('filename', 'expected_retval'), (
|
@pytest.mark.parametrize(('filename', 'expected_retval'), (
|
||||||
('broken_symlink', 1),
|
('broken_symlink', 1),
|
||||||
('working_symlink', 0),
|
('working_symlink', 0),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue