mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix terminal width detection.
This commit is contained in:
parent
06830ab590
commit
fa9db4ec23
3 changed files with 6 additions and 4 deletions
|
|
@ -382,7 +382,10 @@ def test_installed_from_venv(tmpdir_factory):
|
|||
# Should still pick up the python from when we installed
|
||||
ret, output = _get_commit_output(
|
||||
tmpdir_factory,
|
||||
env_base={'HOME': os.environ['HOME']},
|
||||
env_base={
|
||||
'HOME': os.environ['HOME'],
|
||||
'TERM': os.environ.get('TERM', ''),
|
||||
},
|
||||
)
|
||||
assert ret == 0
|
||||
assert NORMAL_PRE_COMMIT_RUN.match(output)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue