mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 16:44:42 +04:00
show color in hook outputs when attached to a tty
This commit is contained in:
parent
c8620f35e1
commit
7c3404ef1f
27 changed files with 200 additions and 76 deletions
|
|
@ -91,7 +91,7 @@ def test_normexe_does_not_exist_sep():
|
|||
assert excinfo.value.args == ('Executable `./i-dont-exist-lol` not found',)
|
||||
|
||||
|
||||
@pytest.mark.xfail(os.name == 'nt', reason='posix only',)
|
||||
@pytest.mark.xfail(os.name == 'nt', reason='posix only')
|
||||
def test_normexe_not_executable(tmpdir): # pragma: windows no cover
|
||||
tmpdir.join('exe').ensure()
|
||||
with tmpdir.as_cwd(), pytest.raises(OSError) as excinfo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue