mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #47384 from dwoz/test_pip_fix
Fix py2 version of pip test
This commit is contained in:
commit
37822c0cbb
@ -301,6 +301,8 @@ class PipTestCase(TestCase, LoaderModuleMockMixin):
|
||||
if salt.utils.is_windows():
|
||||
venv_path = 'c:\\test_env'
|
||||
bin_path = os.path.join(venv_path, 'Scripts', 'pip.exe')
|
||||
if six.PY2:
|
||||
bin_path = bin_path.encode('string-escape')
|
||||
else:
|
||||
venv_path = '/test_env'
|
||||
bin_path = os.path.join(venv_path, 'bin', 'pip')
|
||||
|
Loading…
Reference in New Issue
Block a user