Skip to content

Commit 26af2ce

Browse files
committed
Add failing test for pre-commit#90.
1 parent 4f122a3 commit 26af2ce

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/repository_test.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import mock
22
import os
33
import pytest
4+
from plumbum import local
45

56
import pre_commit.constants as C
67
from pre_commit import repository
@@ -167,3 +168,13 @@ def test_reinstall(config_for_python_hooks_repo):
167168
# TODO: how to assert this?
168169
repo = Repository(config_for_python_hooks_repo)
169170
repo.require_installed(PrefixedCommandRunner(C.HOOKS_WORKSPACE))
171+
172+
173+
@pytest.mark.xfail
174+
@pytest.mark.integration
175+
def test_really_long_file_paths(config_for_python_hooks_repo):
176+
path = 'really_long' * 10
177+
local['git']['init', path]()
178+
with local.cwd(path):
179+
repo = Repository(config_for_python_hooks_repo)
180+
repo.require_installed(PrefixedCommandRunner(C.HOOKS_WORKSPACE))

0 commit comments

Comments
 (0)