]> granicus.if.org Git - python/commitdiff
bpo-31904: Port test_cmd_line to VxWorks (#12648)
authorLihua Zhao <44661095+LihuaZhao@users.noreply.github.com>
Wed, 17 Apr 2019 15:33:25 +0000 (23:33 +0800)
committerVictor Stinner <vstinner@redhat.com>
Wed, 17 Apr 2019 15:33:25 +0000 (17:33 +0200)
subprocess.Popen doesn't support preexec on VxWorks.

Lib/test/test_cmd_line.py

index 21511b896cad1787b14a7b1a3fb37e532b94e450..f7925eb795c71e684966e9415a2cdd7b099ad78c 100644 (file)
@@ -369,6 +369,8 @@ class CmdLineTest(unittest.TestCase):
     # Issue #7111: Python should work without standard streams
 
     @unittest.skipIf(os.name != 'posix', "test needs POSIX semantics")
+    @unittest.skipIf(sys.platform == "vxworks",
+                         "test needs preexec support in subprocess.Popen")
     def _test_no_stdio(self, streams):
         code = """if 1:
             import os, sys