better no-cover for windows

This commit is contained in:
Anthony Sottile
2018-12-27 17:31:25 -08:00
parent 8c550d0157
commit 2af0b0b4f3
6 changed files with 11 additions and 15 deletions

View File

@@ -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)