Skip to content

Conversation

@LihuaZhao
Copy link
Contributor

@LihuaZhaoLihuaZhao 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.

@LihuaZhao
Copy link
ContributorAuthor

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.

# 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
ContributorAuthor

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.

@bedevere-bot
Copy link

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

@LihuaZhaoLihuaZhao changed the title bpo-31904: skip test_cmd_line case for VxWorks doesn't support preexecbpo-36648 : skip test_cmd_line case for VxWorks doesn't support preexecApr 17, 2019
@LihuaZhaoLihuaZhao changed the title bpo-36648 : skip test_cmd_line case for VxWorks doesn't support preexecbpo-31094 : skip test_cmd_line case for VxWorks doesn't support preexecApr 17, 2019
@asvetlovasvetlov changed the title bpo-31094 : skip test_cmd_line case for VxWorks doesn't support preexecbpo-31904 : skip test_cmd_line case for VxWorks doesn't support preexecApr 17, 2019
@pxinwrpxinwr deleted the fix-skip-cmd-line branch July 12, 2021 09:42
@kuhlenoughkuhlenoughmannequin mentioned this pull request Jan 12, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@LihuaZhao@bedevere-bot@vstinner@the-knights-who-say-ni