Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update test_cmd_line.py to check vxworks platform directly
  • Loading branch information
LihuaZhao committed Apr 17, 2019
commit d3c2377e021078376448a965f86c33551b477338
5 changes: 1 addition & 4 deletions Lib/test/test_cmd_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
# Debug build?
Py_DEBUG = hasattr(sys, "gettotalrefcount")

# Support preexec?
SUBPROCESS_SUPPORTS_PREEXEC = (sys.platform != "vxworks")

Copy link
Copy Markdown
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.

# XXX (ncoghlan): Move to script_helper and make consistent with run_python
def _kill_python_and_exit_code(p):
data = kill_python(p)
Expand Down Expand Up @@ -371,7 +368,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(SUBPROCESS_SUPPORTS_PREEXEC,
@unittest.skipIf(sys.platform == "vxworks",
"test needs preexec support in subprocess.Popen")
Comment thread
vstinner marked this conversation as resolved.
def _test_no_stdio(self, streams):
code = """if 1:
Expand Down