mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix py2 version of pip test
This commit is contained in:
parent
57c75ff660
commit
a37a9da1fb
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue