mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-30 10:16:54 +00:00
Merge pull request #1 from pre-commit/asottile_check_symlinks
Skip the symlink tests on windows
This commit is contained in:
commit
ee1e98a884
1 changed files with 3 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue