Skip to content

Commit

Permalink
Merge pull request #47645 from Ch3LL/py3_rm_pip
Browse files Browse the repository at this point in the history
query the pip path for test test_issue_2087_missing_pip
  • Loading branch information
Nicole Thomas committed May 15, 2018
2 parents e441733 + 225d90a commit a4921e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions tests/integration/modules/test_pip.py
Expand Up @@ -11,7 +11,6 @@
import os
import re
import shutil
import sys
import tempfile

# Import Salt Testing libs
Expand Down Expand Up @@ -73,8 +72,7 @@ def test_issue_2087_missing_pip(self):

# Let's remove the pip binary
pip_bin = os.path.join(self.venv_dir, 'bin', 'pip')
py_dir = 'python{0}.{1}'.format(*sys.version_info[:2])
site_dir = os.path.join(self.venv_dir, 'lib', py_dir, 'site-packages')
site_dir = self.run_function('virtualenv.get_distribution_path', [self.venv_dir, 'pip'])
if salt.utils.is_windows():
pip_bin = os.path.join(self.venv_dir, 'Scripts', 'pip.exe')
site_dir = os.path.join(self.venv_dir, 'lib', 'site-packages')
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/states/test_pip.py
Expand Up @@ -236,8 +236,7 @@ def test_issue_2087_missing_pip(self):

# Let's remove the pip binary
pip_bin = os.path.join(venv_dir, 'bin', 'pip')
py_dir = 'python{0}.{1}'.format(*sys.version_info[:2])
site_dir = os.path.join(venv_dir, 'lib', py_dir, 'site-packages')
site_dir = self.run_function('virtualenv.get_distribution_path', [venv_dir, 'pip'])
if salt.utils.is_windows():
pip_bin = os.path.join(venv_dir, 'Scripts', 'pip.exe')
site_dir = os.path.join(venv_dir, 'lib', 'site-packages')
Expand Down

0 comments on commit a4921e8

Please sign in to comment.