Repository navigation
bpo-31904 : skip test_cmd_line case for VxWorks doesn't support preexec #12648
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
Changes from 3 commits
e64be8c
3762b12
48839c2
700aca1
d3c2377
9195390
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,11 @@ | |
| # Debug build? | ||
| Py_DEBUG = hasattr(sys, "gettotalrefcount") | ||
|
|
||
| def _supports_preexec(): | ||
| if sys.platform == "vxworks": | ||
| return False | ||
| else: | ||
| return True | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hum, please revert this unrelated change. |
||
| # XXX (ncoghlan): Move to script_helper and make consistent with run_python | ||
| def _kill_python_and_exit_code(p): | ||
|
|
@@ -369,6 +374,7 @@ def test_closed_stdout(self): | |
| # Issue #7111: Python should work without standard streams | ||
|
|
||
| @unittest.skipIf(os.name != 'posix', "test needs POSIX semantics") | ||
| @unittest.skipUnless(_supports_preexec(), "test needs preexec support in subprocess.Popen") | ||
| def _test_no_stdio(self, streams): | ||
| code = """if 1: | ||
| import os, sys | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Skip test case in test_cmd_line for VxWorks doesn't support preexec when do Popen | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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". |
||
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")