Skip to content
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

Merged
merged 6 commits into from
Apr 17, 2019

Conversation

LihuaZhao
Copy link
Contributor

@LihuaZhao LihuaZhao commented Apr 1, 2019

subprocess.Popen doesn't support preexec on VxWorks, test_cmd_line need to skip the case which use preexec

https://bugs.python.org/issue31904

support preexec

subprocess.Popen doesn't support preexec, test_cmd_line need to skip the
case which use preexec
if sys.platform == "vxworks":
return False
else:
return True
Copy link
Member

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")

@bedevere-bot
Copy link

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. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Lib/test/test_cmd_line.py Show resolved Hide resolved
@LihuaZhao
Copy link
Contributor Author

I have made the requested changes; please review again.

@bedevere-bot
Copy link

Thanks for making the requested changes!

@vstinner: please review the changes made to this pull request.

@@ -18,7 +18,6 @@
# Debug build?
Py_DEBUG = hasattr(sys, "gettotalrefcount")


Copy link
Member

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
Copy link
Member

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".

@bedevere-bot
Copy link

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. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

And if you don't make the requested changes, you will be poked with soft cushions!

@LihuaZhao
Copy link
Contributor Author

I have made the requested changes; please review again.

@bedevere-bot
Copy link

Thanks for making the requested changes!

@vstinner: please review the changes made to this pull request.

@vstinner vstinner merged commit 2954550 into python:master Apr 17, 2019
@bedevere-bot
Copy link

@vstinner: Please replace # with GH- in the commit message next time. Thanks!

@LihuaZhao LihuaZhao changed the title bpo-31904: skip test_cmd_line case for VxWorks doesn't support preexec bpo-36648 : skip test_cmd_line case for VxWorks doesn't support preexec Apr 17, 2019
@LihuaZhao LihuaZhao changed the title bpo-36648 : skip test_cmd_line case for VxWorks doesn't support preexec bpo-31094 : skip test_cmd_line case for VxWorks doesn't support preexec Apr 17, 2019
@asvetlov asvetlov changed the title bpo-31094 : skip test_cmd_line case for VxWorks doesn't support preexec bpo-31904 : skip test_cmd_line case for VxWorks doesn't support preexec Apr 17, 2019
@pxinwr pxinwr deleted the fix-skip-cmd-line branch July 12, 2021 09:42
@kuhlenough kuhlenough mannequin mentioned this pull request Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants