-
-
Notifications
You must be signed in to change notification settings - Fork 30.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
bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT #20088
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: @peanut-lord For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
…thon into fix-shutil-which-windows
Misc/NEWS.d/next/Library/2020-05-14-16-01-34.bpo-40592.Cmk855.rst
Outdated
Show resolved
Hide resolved
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
I have made the requested changes; please review again |
Thanks for making the requested changes! @zooba: please review the changes made to this pull request. |
@zooba Could you please re-review the changes and provide feedback? |
@zooba Added the requested changes :) |
This reverts commit 6af00e7.
@zooba Currently, the test pipeline fails with the following message:
That's pretty odd as other tests, like |
You might need to merge from upstream, I think someone rearranged the test helpers. The PR checks are going to run against the merge result, but if there are no direct conflicts then it won't warn that you made the changes against an older version. |
@zooba Silly me, fixed it! Thank you! |
Thanks @peanutlord for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
… char in PATHEXT (pythonGH-20088) shutil.which will not return None anymore for empty str in PATHEXT Empty PATHEXT will now be defaulted to _WIN_DEFAULT_PATHEXT (cherry picked from commit da6f098) Co-authored-by: Christopher Marchfelder <marchfelder@googlemail.com>
GH-22912 is a backport of this pull request to the 3.9 branch. |
… char in PATHEXT (pythonGH-20088) shutil.which will not return None anymore for empty str in PATHEXT Empty PATHEXT will now be defaulted to _WIN_DEFAULT_PATHEXT (cherry picked from commit da6f098) Co-authored-by: Christopher Marchfelder <marchfelder@googlemail.com>
GH-22913 is a backport of this pull request to the 3.8 branch. |
|
… char in PATHEXT (pythonGH-20088) shutil.which will not return None anymore for empty str in PATHEXT Empty PATHEXT will now be defaulted to _WIN_DEFAULT_PATHEXT
Additional note: created a new
test_pathext_with_empty_str()
test, but copies roughly 10loc fromtest_pathext()
. We could also add theassertEqual
with a newwith
block to thetest_pathext
.https://bugs.python.org/issue40592