-
-
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-31904 : skip test_cmd_line case for VxWorks doesn't support preexec #12648
Conversation
support preexec subprocess.Popen doesn't support preexec, test_cmd_line need to skip the case which use preexec
Lib/test/test_cmd_line.py
Outdated
if sys.platform == "vxworks": | ||
return False | ||
else: | ||
return True |
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.
I suggest:
SUBPROCESS_SUPPORTS_PREEXEC = (sys.platform != "vxworks")
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 |
I have made the requested changes; please review again. |
Thanks for making the requested changes! @vstinner: please review the changes made to this pull request. |
Lib/test/test_cmd_line.py
Outdated
@@ -18,7 +18,6 @@ | |||
# Debug build? | |||
Py_DEBUG = hasattr(sys, "gettotalrefcount") | |||
|
|||
|
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.
Hum, please revert this unrelated change.
@@ -0,0 +1 @@ | |||
Skip test case in test_cmd_line for VxWorks doesn't support preexec when do Popen |
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.
Honestly, I'm not sure that it's worth it to document invidivual tests changes. Can you please remove the NEWS entry? I will simply add the GitHub label "skip news".
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 And if you don't make the requested changes, you will be poked with soft cushions! |
I have made the requested changes; please review again. |
Thanks for making the requested changes! @vstinner: please review the changes made to this pull request. |
@vstinner: Please replace |
subprocess.Popen doesn't support preexec on VxWorks, test_cmd_line need to skip the case which use preexec
https://bugs.python.org/issue31904