Uh oh!
There was an error while loading. Please reload this page.
bpo-28624: Add test for subprocess to check that cmd arg supports PathLike - #157
Conversation
the-knights-who-say-ni
commented
Feb 18, 2017
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow these steps to help rectify the issue:
Thanks again to your contribution and we look forward to looking at it! |
There was a problem hiding this comment.
make suspicious fails here with "default role used". Not sure, but you may have to put double backticks around os.PathLike.
There was a problem hiding this comment.
:ref:os.PathLike would be a preferable fix here (turning this into a cross reference to the ABC's docs)
There was a problem hiding this comment.
Actually, if you follow Berker's suggestion below (which seems like a good idea to me), that will also fix this.
There was a problem hiding this comment.
Add two spaces before "*cwd* also accepts a os.PathLike object."
There was a problem hiding this comment.
It would be better to follow the style in the rest of stdlib:
[...] child. *cmd* can be a :class:`str` and :term:`path-like <path-like object>` object.There was a problem hiding this comment.
And please add a versionchanged directive to properly document os.PathLike support:
.. versionchanged:: 3.6
*cwd* parameter accepts a :term:`path-like object`.There was a problem hiding this comment.
No need to add a comment here.
There was a problem hiding this comment.
You can create a pathlib.Path instance from temp_dir and pass it to cwd.
There was a problem hiding this comment.
@sayanchowdhury and I were discussing that at the PyCon Pune sprints and I suggested doing it this way to avoid adding a new dependency to the test cases.
271a1ad to
1cb8660Comparesayanchowdhury
commented
Feb 19, 2017
Thanks for the review. I have updated the PR. |
1cb8660 to
da4f28aCompare
(Oops, after chatting to @sayanchowdhury, I realised this suggestion wasn't as useful as I thought - |
da4f28a to
e153659CompareI ran |
berkerpeksag
left a comment
There was a problem hiding this comment.
I was going to merge this, but just noticed a small typo. I think this also deserves a Misc/NEWS entry since we are aim to support path-like objects in the stdlib in Python 3.6.
There was a problem hiding this comment.
Sorry for the typo. Fixed it.
e153659 to
6c208d2Comparesayanchowdhury
commented
Feb 22, 2017
Should add to section |
There was a problem hiding this comment.
Hmm, you only mention string and PathLike, how about bytes? Is it acceptable?
There was a problem hiding this comment.
I added a test for bytes too and it's seems to be passing too. Also updated the docs.
6c208d2 to
c096044Compareberkerpeksag
commented
Feb 26, 2017
Can we please keep this PR specific to |
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
sayanchowdhury
commented
Feb 26, 2017
Okay, I'll then go ahead and keep the changes |
c096044 to
3370e0bComparesayanchowdhury
commented
Feb 26, 2017
I have updated the code. |
…ts PathLike objects (python#157) (cherry picked from commit d5c11f7)
berkerpeksag
commented
Feb 26, 2017
Thanks! |
#157 added the test, but it's currently (correctly) broken on windows.
#157 added the test, but it's currently (correctly) broken on windows.
ncoghlan
commented
May 28, 2017
Added the sprint label, as this PR was submitted at the PyCon Pune 2017 core development sprint. |
Detected by gcc -Wmisleading-indentation.
No description provided.