[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Jay Yin
Jay Yin added the comment: no problem, thanks for helping and fixing the issue, I can now help contribute to python =D -- ___ Python tracker

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 255dbd2102d5dec5ffbd0b94084377e98c3b56c4 by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-32667: Fix tests when $PATH contains a file (GH-5322) (#5323)

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread STINNER Victor
STINNER Victor added the comment: Thank you Jay Yin for your bug report. I fixed the bug in Python 2.7, 3.6 and master. -- ___ Python tracker

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6996f284d4d90aa05c46d9fe6f38d1030454b224 by Victor Stinner in branch '2.7': bpo-32667: Fix tests when $PATH contains a file (#5324) https://github.com/python/cpython/commit/6996f284d4d90aa05c46d9fe6f38d1030454b224

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Jay Yin
Change by Jay Yin : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Jay Yin
Change by Jay Yin : -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Jay Yin
Change by Jay Yin : -- resolution: -> fixed ___ Python tracker ___ ___

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Jay Yin
Change by Jay Yin : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +5169 ___ Python tracker ___ ___

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +5168 ___ Python tracker ___

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset b31206a223955d614d7769f95fb979d60f77bf87 by Victor Stinner in branch 'master': bpo-32667: Fix tests when $PATH contains a file (#5322) https://github.com/python/cpython/commit/b31206a223955d614d7769f95fb979d60f77bf87

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread STINNER Victor
STINNER Victor added the comment: Attached PR 5322 fixes the issue. Example to reproduce the bug: $ touch file $ PATH=$PATH:$PWD/file ./python -m test test_subprocess -m test_invalid_args -v (...) ==

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +5167 stage: -> patch review ___ Python tracker ___

[issue32667] test_subprocess and test_dtrace fails if the last entry of $PATH is a file

2018-01-25 Thread STINNER Victor
STINNER Victor added the comment: I discussed with Jay Yin on IRC and we understood the issue on his setup: the last entry of his PATH environment variable is a path to an existing *file*, not a directory. In this case, subprocess.Popen() fails with ENOTDIR if the