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
|
|
@ -11,7 +11,7 @@ def test_norm_version_expanduser():
|
|||
if os.name == 'nt': # pragma: no cover (nt)
|
||||
path = r'~\python343'
|
||||
expected_path = r'{}\python343'.format(home)
|
||||
else: # pragma: no cover (non-nt)
|
||||
else: # pragma: windows no cover
|
||||
path = '~/.pyenv/versions/3.4.3/bin/python'
|
||||
expected_path = home + '/.pyenv/versions/3.4.3/bin/python'
|
||||
result = python.norm_version(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue