Fix py2 version of pip test

This commit is contained in:
Daniel A. Wozniak 2018-04-28 02:24:39 -07:00
parent 57c75ff660
commit a37a9da1fb
No known key found for this signature in database
GPG Key ID: 166B9D2C06C82D61

View File

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