mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
better no-cover for windows
This commit is contained in:
parent
8c550d0157
commit
2af0b0b4f3
6 changed files with 11 additions and 15 deletions
|
|
@ -84,7 +84,7 @@ def test_install_refuses_core_hookspath(in_git_dir, store):
|
|||
assert install(C.CONFIG_FILE, store)
|
||||
|
||||
|
||||
@xfailif_no_symlink # pragma: no cover (non-windows)
|
||||
@xfailif_no_symlink # pragma: windows no cover
|
||||
def test_install_hooks_dead_symlink(in_git_dir, store):
|
||||
hook = in_git_dir.join('.git/hooks').ensure_dir().join('pre-commit')
|
||||
os.symlink('/fake/baz', hook.strpath)
|
||||
|
|
|
|||
|
|
@ -781,8 +781,8 @@ def test_include_exclude_base_case(some_filenames):
|
|||
]
|
||||
|
||||
|
||||
@xfailif_no_symlink
|
||||
def test_matches_broken_symlink(tmpdir): # pragma: no cover (non-windows)
|
||||
@xfailif_no_symlink # pragma: windows no cover
|
||||
def test_matches_broken_symlink(tmpdir):
|
||||
with tmpdir.as_cwd():
|
||||
os.symlink('does-not-exist', 'link')
|
||||
ret = _filter_by_include_exclude({'link'}, '', '^$')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue