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
Don't fail on missing pip/certifi's cacert.pem #1252
Conversation
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.
Let's add some tests for this. You can create e.g. a venv, remove it this file and see that we still pass.
Sure, tests are great. What needs to be done in tests:
this currently blows with:
With my patch, it should not. Now if I provide Python code that does and verifies the above, would you be able to guide me on where to stick that into the current test suite? |
Put it at the end of https://github.com/pypa/virtualenv/blob/master/tests/test_virtualenv.py#L334; I would also caution you to not hardcode to |
Added a test, verified that it fails without that fix. |
86b4cc9
to
4a5e1d2
Compare
a88216b
to
3756c9b
Compare
OK, I have no idea what's the problem on Windows now or how to see any details 😢 Help me please? |
Paths on windows are using the |
Windows still failing even with |
Once we get the tests passing I would like to ask you to break up into a failing test only commit, and then another on top that does the source change and fixes it. |
a2d6183
to
bc4940c
Compare
Shall I mark the test xfail in the first commit or not? I have figured out that if the script I've changed fails, there is no error output anywhere in the test log, so I've temporarily enabled that output for now to see what's wrong on the Windows Python 3 code (maybe it's juts a different exception type). However the CI won't start. |
No need for xfail just let it fail. if you ammend your commit it my trigger a redirect. |
See https://github.com/pypa/pip/blob/master/src/pip/_vendor/README.rst It is acceptable to remove the pip/_vendor/requests/cacert.pem file from pip Virtualenv should not error on that
See https://github.com/pypa/pip/blob/master/src/pip/_vendor/README.rst It is acceptable to remove the pip/_vendor/requests/cacert.pem file from pip Virtualenv now doesn't error on that
thanks |
Thanks to you. |
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.
cool
See https://github.com/pypa/pip/blob/master/src/pip/_vendor/README.rst
It is acceptable to remove the pip/_vendor/requests/cacert.pem file from pip
Virtualenv should not error on that