Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query the pip path for test test_issue_2087_missing_pip #47645

Merged
merged 1 commit into from May 15, 2018

Conversation

Ch3LL
Copy link
Contributor

@Ch3LL Ch3LL commented May 14, 2018

What does this PR do?

The following tests are failing on macosx python3:

integration.modules.test_pip.PipModuleTest.test_issue_2087_missing_pip                                                                                                              
integration.states.test_pip.PipStateTest.test_issue_2087_missing_pip

This is because when the virtualenv is created its created with python2 because the default python is 2 on the macosx hosts. My understanding of the virtualenv.create module is that it will use the default python version installed unless python=python3 is passed to the command. I could be wrong about this code analysis as I am not certain if its suppose to grab the version of python that salt is running.

This PR changes the test to query what the site-packages path is for the pip package before we try to remove it, instead of assuming the path is the same version of python as the test runner.

@Ch3LL Ch3LL requested a review from twangboy May 14, 2018 20:05
@rallytime rallytime added bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch ZRELEASED - 2018.3.1 ZRELEASED - 2017.7.6 labels May 15, 2018
@twangboy
Copy link
Contributor

@Ch3LL Actually I think the version of is bundled within virtualenv itself and does not rely on the System python. At least that's what I think @terminalmage and I worked out.

@rallytime rallytime merged commit a4921e8 into saltstack:2017.7.6 May 15, 2018
@rallytime rallytime added ZZZ[Done]-back-ported-bf RETIRED The pull request has been back-ported to an older branch. and removed bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch labels May 15, 2018
rallytime pushed a commit that referenced this pull request May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ZRELEASED - 2017.7.6 ZRELEASED - 2018.3.1 ZZZ[Done]-back-ported-bf RETIRED The pull request has been back-ported to an older branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants