-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Avoid using requests in tests #3645
Avoid using requests in tests #3645
Conversation
test_specific_package_environment_markers using requests fails when requests is pre-installed via PYTHONPATH. Closes pypa#3644
hm, so is the problem that the already installed version is being imported? if so, why? |
It is being imported because it is in This is needed because a rpm package contents are installed into a build root which isnt the same as the system image. So the de-vendored requests exists in In order the run the tests, I suspect there is a 'bug' in pipenv where it is not removing items from |
Won’t using tablib have the same problem anyway, just with a different package? If we’re to change that, I’d want it to be changed to an actual environment-free implementation. |
@uranusjr , I provide this patch because it fixes the test in my de-vendored builds. I also have a fix for Using |
I see, thanks for the explanation. |
Yeah that all makes sense to me, thanks for the details |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR and the explanation, this makes sense
test_specific_package_environment_markers using requests
fails when requests is pre-installed via PYTHONPATH.
Closes #3644