mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-10 21:34:18 +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
|
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