Merge pull request #1 from pre-commit/asottile_check_symlinks

Skip the symlink tests on windows
This commit is contained in:
Ben Chess 2016-01-15 10:36:20 -05:00
commit ee1e98a884

View file

@ -1,9 +1,12 @@
import os
import pytest
from pre_commit_hooks.check_symlinks import check_symlinks
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'), (
('broken_symlink', 1),
('working_symlink', 0),