mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
os.symlink is always an attribute in py3
This commit is contained in:
parent
5706b9149c
commit
251721b890
3 changed files with 0 additions and 10 deletions
|
|
@ -21,7 +21,6 @@ from testing.fixtures import remove_config_from_repo
|
|||
from testing.util import cmd_output_mocked_pre_commit_home
|
||||
from testing.util import cwd
|
||||
from testing.util import git_commit
|
||||
from testing.util import xfailif_no_symlink
|
||||
from testing.util import xfailif_windows
|
||||
|
||||
|
||||
|
|
@ -89,7 +88,6 @@ def test_install_refuses_core_hookspath(in_git_dir, store):
|
|||
assert install(C.CONFIG_FILE, store, hook_types=['pre-commit'])
|
||||
|
||||
|
||||
@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)
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ from testing.util import cmd_output_mocked_pre_commit_home
|
|||
from testing.util import cwd
|
||||
from testing.util import git_commit
|
||||
from testing.util import run_opts
|
||||
from testing.util import xfailif_no_symlink
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
@ -861,7 +860,6 @@ def test_include_exclude_base_case(some_filenames):
|
|||
]
|
||||
|
||||
|
||||
@xfailif_no_symlink # pragma: windows no cover
|
||||
def test_matches_broken_symlink(tmpdir):
|
||||
with tmpdir.as_cwd():
|
||||
os.symlink('does-not-exist', 'link')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue