mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
better no-cover for windows
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user