-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add unit tests for pip commands not using cwd #7987
Add unit tests for pip commands not using cwd #7987
Conversation
d4585b1
to
84baf21
Compare
Hi @sbidoul , @xavfernandez This PR is a followup of #7955 to add unit tests for the remaining 4 commands affected by this on the same principle. Would really appreciate if you can take a look at the same and share your thoughts 😊 |
I have addressed the review comments. Please let me know if there are further changes needed. |
Hi @sbidoul I have addressed the review comments. Please let me know if there are further changes needed. |
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.
@deveshks thanks for your patience. I realize there were a couple comments I had not submitted, sorry about that.
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.
@deveshks LGTM. I have verified that the test correctly react to sys.path changes in __main__.py
.
Thank you for this work!
Thanks @sbidoul for the approval. Hi @xavfernandez , @pradyunsg , If the changes look good, could I please get this PR merged as well ? |
@deveshks there were two additional comments by @xavfernandez after I approved. Can you attend them in a separate PR? |
Hi @sbidoul , @xavfernandez Thanks for catching that. It seems like the commit I made to address rewording the comments didn't show up here. As suggested, I have created a new PR to address the comments at #8012 . Please take a look 😊 |
Follow-up of #7955 . Fixes and closes #7731, closes #2926, closes #3710 and closes #7971
Add unit tests for check, freeze, show and install to verify that the behaviour of
python -m pip
is same aspip
when run from the current working directory, and verifying that adding current working directory to PYTHONPATH displays the appropriate behaviour withpython -m pip