Lines Matching refs:subprocess
7 import subprocess
75 subprocess.run([shell_true]).returncode == 0):
89 for inst in subprocess._active:
91 subprocess._cleanup()
93 subprocess._active, "subprocess._active not empty"
103 class PopenExecuteChildRaises(subprocess.Popen):
114 p = subprocess.Popen(ZERO_RETURN_CMD,
115 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
116 stderr=subprocess.PIPE)
128 p = subprocess.Popen(ZERO_RETURN_CMD,
129 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
130 stderr=subprocess.PIPE, bufsize=0)
143 rc = subprocess.call([sys.executable, "-c",
152 self.assertRaises(subprocess.TimeoutExpired, subprocess.call,
158 rc = subprocess.check_call(ZERO_RETURN_CMD)
163 with self.assertRaises(subprocess.CalledProcessError) as c:
164 subprocess.check_call([sys.executable, "-c",
170 output = subprocess.check_output(
176 with self.assertRaises(subprocess.CalledProcessError) as c:
177 subprocess.check_output(
183 output = subprocess.check_output(
185 stderr=subprocess.STDOUT)
194 output = subprocess.check_output(
202 output = subprocess.check_output(
210 output = subprocess.check_output(
217 output = subprocess.check_output(
224 output = subprocess.check_output(
233 output = subprocess.check_output(
246 output = subprocess.check_output(
255 with self.assertRaises(subprocess.TimeoutExpired) as c:
256 output = subprocess.check_output(
272 rc = subprocess.call([sys.executable, "-c",
282 self.assertRaises(TypeError, subprocess.Popen, invalid_arg_name=1)
283 argcount = subprocess.Popen.__init__.__code__.co_argcount
285 self.assertRaises(TypeError, subprocess.Popen, *too_many_args)
290 p = subprocess.Popen([sys.executable, "-c", 'print("banana")'],
291 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
312 p = subprocess.Popen([sys.executable, "-c", code],
313 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
322 p = subprocess.Popen([sys.executable, "-c", 'print("banana")'],
323 stdin=subprocess.PIPE, stdout=subprocess.PIPE)
333 p = subprocess.Popen(args, **kwargs)
405 p = subprocess.Popen([python_arg, "-c",
411 stdout=subprocess.PIPE,
445 self.assertRaises(FileNotFoundError, subprocess.Popen,
447 self.assertRaises(FileNotFoundError, subprocess.Popen,
462 self.assertRaises(FileNotFoundError, subprocess.Popen,
464 self.assertRaises(FileNotFoundError, subprocess.Popen,
480 self.assertRaises(FileNotFoundError, subprocess.Popen,
505 p = subprocess.Popen([sys.executable, "-c",
507 stdin=subprocess.PIPE)
520 p = subprocess.Popen([sys.executable, "-c",
532 p = subprocess.Popen([sys.executable, "-c",
540 p = subprocess.Popen([sys.executable, "-c",
542 stdout=subprocess.PIPE)
551 p = subprocess.Popen([sys.executable, "-c",
562 p = subprocess.Popen([sys.executable, "-c",
571 p = subprocess.Popen([sys.executable, "-c",
573 stderr=subprocess.PIPE)
582 p = subprocess.Popen([sys.executable, "-c",
593 p = subprocess.Popen([sys.executable, "-c",
606 p = subprocess.Popen([sys.executable, "-c",
613 stdout=subprocess.PIPE,
614 stderr=subprocess.PIPE)
623 p = subprocess.Popen([sys.executable, "-c",
628 stdout=subprocess.PIPE,
629 stderr=subprocess.STDOUT)
637 p = subprocess.Popen([sys.executable, "-c",
659 p = subprocess.Popen([sys.executable, "-c", code],
660 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
668 p = subprocess.Popen([sys.executable, "-c",
671 stdout=subprocess.DEVNULL)
676 p = subprocess.Popen([sys.executable, "-c",
680 stderr=subprocess.DEVNULL)
685 p = subprocess.Popen([sys.executable, "-c",
688 stdin=subprocess.DEVNULL)
706 p = subprocess.Popen(
710 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
711 stderr=subprocess.PIPE, pipesize=pipesize)
729 p = subprocess.Popen(
733 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
734 stderr=subprocess.PIPE, pipesize=-1)
756 with subprocess.Popen([sys.executable, "-c",
759 stdout=subprocess.PIPE,
783 with subprocess.Popen([sys.executable, "-c",
785 stdout=subprocess.PIPE, env={}) as p:
797 subprocess.Popen([cmd, "-c", "pass"])
801 subprocess.Popen([sys.executable, "-c", "pass#\0"])
808 subprocess.Popen(ZERO_RETURN_CMD, env=newenv)
814 subprocess.Popen(ZERO_RETURN_CMD, env=newenv)
820 subprocess.Popen(ZERO_RETURN_CMD, env=newenv)
825 with subprocess.Popen([sys.executable, "-c",
828 stdout=subprocess.PIPE,
834 p = subprocess.Popen([sys.executable, "-c",
837 stdin=subprocess.PIPE)
842 p = subprocess.Popen([sys.executable, "-c",
844 stdout=subprocess.PIPE)
850 p = subprocess.Popen([sys.executable, "-c",
852 stderr=subprocess.PIPE)
858 p = subprocess.Popen([sys.executable, "-c",
862 stdin=subprocess.PIPE,
863 stdout=subprocess.PIPE,
864 stderr=subprocess.PIPE)
873 p = subprocess.Popen([sys.executable, "-c",
880 stdin=subprocess.PIPE,
881 stdout=subprocess.PIPE,
882 stderr=subprocess.PIPE)
883 self.assertRaises(subprocess.TimeoutExpired, p.communicate, "banana",
893 p = subprocess.Popen([sys.executable, "-c",
902 stdout=subprocess.PIPE)
903 self.assertRaises(subprocess.TimeoutExpired, p.communicate, timeout=0.4)
914 options['stdin'] = subprocess.PIPE
916 options['stdout'] = subprocess.PIPE
918 options['stderr'] = subprocess.PIPE
921 p = subprocess.Popen(ZERO_RETURN_CMD, **options)
932 p = subprocess.Popen([sys.executable, "-c",
945 p = subprocess.Popen([sys.executable, "-c",
951 stdin=subprocess.PIPE,
952 stdout=subprocess.PIPE,
953 stderr=subprocess.PIPE)
963 p = subprocess.Popen([sys.executable, "-c",
966 stdin=subprocess.PIPE,
967 stdout=subprocess.PIPE,
968 stderr=subprocess.PIPE)
999 p = subprocess.Popen(args, **{'stdin': subprocess.PIPE,
1000 'stdout': subprocess.PIPE,
1018 p = subprocess.Popen([sys.executable, "-c",
1032 stderr=subprocess.PIPE,
1033 stdout=subprocess.PIPE,
1043 p = subprocess.Popen([sys.executable, "-c",
1050 stdin=subprocess.PIPE,
1060 p = subprocess.Popen(ZERO_RETURN_CMD,
1061 stdin=subprocess.PIPE,
1062 stdout=subprocess.PIPE,
1069 p = subprocess.Popen([sys.executable, "-c",
1082 stdin=subprocess.PIPE,
1083 stderr=subprocess.PIPE,
1084 stdout=subprocess.PIPE,
1110 popen = subprocess.Popen(args,
1111 stdin=subprocess.PIPE,
1112 stdout=subprocess.PIPE,
1130 popen = subprocess.Popen(args,
1131 stdin=subprocess.PIPE,
1132 stdout=subprocess.PIPE,
1164 p = subprocess.Popen([sys.executable, "-c",
1167 stdin=subprocess.PIPE,
1168 stdout=subprocess.PIPE,
1169 stderr=subprocess.PIPE)
1178 self.assertEqual(subprocess.list2cmdline(['a b c', 'd', 'e']),
1180 self.assertEqual(subprocess.list2cmdline(['ab"c', '\\', 'd']),
1182 self.assertEqual(subprocess.list2cmdline(['ab"c', ' \\', 'd']),
1184 self.assertEqual(subprocess.list2cmdline(['a\\\\\\b', 'de fg', 'h']),
1186 self.assertEqual(subprocess.list2cmdline(['a\\"b', 'c', 'd']),
1188 self.assertEqual(subprocess.list2cmdline(['a\\\\b c', 'd', 'e']),
1190 self.assertEqual(subprocess.list2cmdline(['a\\\\b\\ c', 'd', 'e']),
1192 self.assertEqual(subprocess.list2cmdline(['ab', '']),
1196 p = subprocess.Popen([sys.executable, "-c",
1198 stdin=subprocess.PIPE)
1207 p = subprocess.Popen(ZERO_RETURN_CMD)
1213 p = subprocess.Popen([sys.executable,
1215 with self.assertRaises(subprocess.TimeoutExpired) as c:
1224 subprocess.Popen(ZERO_RETURN_CMD, "orange")
1228 p = subprocess.Popen(ZERO_RETURN_CMD, None)
1231 p = subprocess.Popen(ZERO_RETURN_CMD, bufsize=None)
1236 with subprocess.Popen([sys.executable, "-c", "import sys;"
1239 stdin=subprocess.PIPE,
1240 stdout=subprocess.PIPE,
1241 stderr=subprocess.DEVNULL,
1277 subprocess.Popen(NONEXISTING_CMD,
1278 stdout=subprocess.PIPE,
1279 stderr=subprocess.PIPE)
1314 proc = subprocess.Popen(cmd,
1315 stderr=subprocess.PIPE,
1333 subprocess.Popen(NONEXISTING_CMD,
1334 stdin=subprocess.PIPE,
1335 stdout=subprocess.PIPE,
1336 stderr=subprocess.PIPE)
1353 proc = subprocess.Popen([sys.executable, '-c',
1411 output = subprocess.check_output([sys.executable, '-c', code])
1421 subprocess.Popen (["*"], stdin=ifhandle, stdout=ofhandle,
1436 p = subprocess.Popen(ZERO_RETURN_CMD,
1437 stdin=subprocess.PIPE,
1438 stdout=subprocess.PIPE,
1439 stderr=subprocess.PIPE)
1458 with unittest.mock.patch.object(subprocess.Popen, '_execute_child'):
1460 p = subprocess.Popen(cmd, shell=shell)
1466 p = subprocess.Popen(ZERO_RETURN_CMD,
1467 stdin=subprocess.PIPE)
1489 kw = {stream: subprocess.PIPE}
1490 with subprocess.Popen(args, **kw) as process:
1505 ZERO_RETURN_CMD, stdin=subprocess.PIPE,
1506 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1518 subprocess.call(['/opt/nonexistent_binary', 'with', 'some', 'args'])
1524 subprocess.Popen(['exit', '0'], cwd='/some/nonexistent/directory')
1528 self.assertIsInstance(subprocess.Popen[bytes], types.GenericAlias)
1529 self.assertIsInstance(subprocess.CompletedProcess[str], types.GenericAlias)
1535 return subprocess.run(argv, **kwargs)
1541 with self.assertRaises(subprocess.CalledProcessError):
1545 with self.assertRaises(subprocess.CalledProcessError) as c:
1551 cp = subprocess.run(ZERO_RETURN_CMD, check=True)
1559 with self.assertRaises(subprocess.TimeoutExpired):
1564 cp = self.run_python("print('BDFL')", stdout=subprocess.PIPE)
1569 stderr=subprocess.PIPE)
1580 stdin=tf, stdout=subprocess.PIPE)
1587 input=b'pear', stdout=subprocess.PIPE)
1604 with self.assertRaises(subprocess.TimeoutExpired) as c:
1612 timeout=3, stdout=subprocess.PIPE)
1634 res = subprocess.run(path, stdout=subprocess.DEVNULL)
1637 subprocess.run(path, stdout=subprocess.DEVNULL, shell=True)
1643 res = subprocess.run(args)
1650 res = subprocess.run(args)
1694 subprocess.run('sleep 3', shell=True, timeout=0.1,
1696 except subprocess.TimeoutExpired as exc:
1742 p = subprocess.Popen([sys.executable, "-c", ""],
1757 p = subprocess.Popen([sys.executable, "-c", ""],
1772 p = subprocess.Popen([self._nonexistent_dir, "-c", ""])
1789 class PopenNoDestructor(subprocess.Popen):
1827 with self.assertRaises(subprocess.SubprocessError) as e:
1836 default_proc_status = subprocess.check_output(
1845 restored_proc_status = subprocess.check_output(
1861 output = subprocess.check_output(
1895 output = subprocess.check_output(
1914 subprocess.check_call(ZERO_RETURN_CMD, user=-1)
1917 subprocess.check_call(ZERO_RETURN_CMD,
1922 subprocess.check_call(ZERO_RETURN_CMD, user=name_uid)
1927 subprocess.check_call(ZERO_RETURN_CMD, user=65535)
1943 output = subprocess.check_output(
1961 subprocess.check_call(ZERO_RETURN_CMD, group=-1)
1964 subprocess.check_call(ZERO_RETURN_CMD,
1969 subprocess.check_call(ZERO_RETURN_CMD, group=name_group)
1974 subprocess.check_call(ZERO_RETURN_CMD, group=65535)
1987 output = subprocess.check_output(
2013 subprocess.check_call(ZERO_RETURN_CMD, extra_groups=[-1])
2016 subprocess.check_call(ZERO_RETURN_CMD,
2022 subprocess.check_call(ZERO_RETURN_CMD,
2028 subprocess.check_call(ZERO_RETURN_CMD, extra_groups=[])
2039 subprocess.check_call(
2055 p = subprocess.Popen([sys.executable, "-c",
2061 err = subprocess.CalledProcessError(-int(signal.SIGABRT), "fake cmd")
2072 err = subprocess.CalledProcessError(-9876543, "fake cmd")
2077 err = subprocess.CalledProcessError(2, "fake cmd")
2084 p = subprocess.Popen([sys.executable, "-c",
2087 stdout=subprocess.PIPE,
2096 p = subprocess.Popen([sys.executable, "-c", ""],
2098 except subprocess.SubprocessError as e:
2100 subprocess._posixsubprocess,
2108 class _TestExecuteChildPopen(subprocess.Popen):
2112 subprocess.Popen.__init__(self, *args, **kwargs)
2116 subprocess.Popen._execute_child(self, *args, **kwargs)
2138 raise subprocess.SubprocessError(
2141 with self.assertRaises(subprocess.SubprocessError):
2144 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
2145 stderr=subprocess.PIPE, preexec_fn=raise_it)
2154 subprocess.call([sys.executable, '-c', ''],
2161 subprocess.call([sys.executable, '-c', ''],
2182 subprocess.call([sys.executable, '-c', ''],
2199 p = subprocess.Popen(fname)
2206 self.assertRaises(ValueError, subprocess.call,
2210 self.assertRaises(ValueError, subprocess.call,
2219 p = subprocess.Popen(["echo $FRUIT"], shell=1,
2220 stdout=subprocess.PIPE,
2229 p = subprocess.Popen("echo $FRUIT", shell=1,
2230 stdout=subprocess.PIPE,
2244 rc = subprocess.call(fname)
2263 p = subprocess.Popen("echo $0", executable=sh, shell=True,
2264 stdout=subprocess.PIPE)
2275 p = subprocess.Popen([sys.executable, "-c", """if 1:
2282 stdin=subprocess.PIPE,
2283 stdout=subprocess.PIPE,
2284 stderr=subprocess.PIPE)
2298 p = subprocess.Popen([sys.executable, "-c", """if 1:
2304 stdin=subprocess.PIPE,
2305 stdout=subprocess.PIPE,
2306 stderr=subprocess.PIPE)
2371 out, err = subprocess.Popen([sys.executable, "-c",
2377 stdout=subprocess.PIPE,
2378 stderr=subprocess.PIPE).communicate()
2418 subprocess.Popen([
2451 p = subprocess.Popen([sys.executable, "-c",
2495 p = subprocess.Popen([sys.executable, "-c",
2554 rc = subprocess.call([sys.executable, '-c', code, str(skipped_fd)],
2583 subprocess.call(
2588 self.assertIsNone(subprocess._posixsubprocess)
2590 except subprocess.SubprocessError as err:
2592 self.assertIsNotNone(subprocess._posixsubprocess)
2609 stdout = subprocess.check_output(
2620 stdout = subprocess.check_output(
2633 exitcode = subprocess.call([abs_program]+args)
2638 exitcode = subprocess.call(cmd, shell=True)
2644 exitcode = subprocess.call([program]+args, env=env)
2650 exitcode = subprocess.call([program]+args, env=envb)
2657 p1 = subprocess.Popen([sys.executable, sleeper],
2658 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
2659 stderr=subprocess.PIPE, close_fds=False)
2663 p2 = subprocess.Popen([sys.executable, fd_status],
2664 stdout=subprocess.PIPE, close_fds=False)
2683 p1 = subprocess.Popen([sys.executable, qcat],
2684 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
2687 p2 = subprocess.Popen([sys.executable, qgrep, subdata],
2688 stdin=p1.stdout, stdout=subprocess.PIPE,
2734 p = subprocess.Popen([sys.executable, fd_status],
2735 stdout=subprocess.PIPE, close_fds=False)
2742 p = subprocess.Popen([sys.executable, fd_status],
2743 stdout=subprocess.PIPE, close_fds=True)
2754 p = subprocess.Popen([sys.executable, fd_status],
2755 stdout=subprocess.PIPE, close_fds=True,
2783 p = subprocess.Popen([sys.executable, '-c', textwrap.dedent(
2831 ''' % fd_status)], stdout=subprocess.PIPE)
2863 p = subprocess.Popen([sys.executable, fd_status],
2864 stdout=subprocess.PIPE, close_fds=True,
2877 self.assertFalse(subprocess.call(
2894 p = subprocess.Popen(args,
2895 stdout=subprocess.PIPE, close_fds=True,
2926 with subprocess.Popen([sys.executable, fd_status],
2940 p = subprocess.Popen(ZERO_RETURN_CMD,
2946 p = subprocess.Popen(ZERO_RETURN_CMD,
2952 p = subprocess.Popen(ZERO_RETURN_CMD,
2960 p = subprocess.Popen([sys.executable, sigchild_ignore],
2961 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
2971 p = subprocess.Popen([sys.executable, "-c",
2974 stdout=subprocess.PIPE,
2989 p = subprocess.Popen([sys.executable, "-c",
2992 stdout=subprocess.PIPE,
2993 stderr=subprocess.PIPE)
3003 self.assertIsNone(subprocess._active)
3006 self.assertIn(ident, [id(o) for o in subprocess._active])
3014 p = subprocess.Popen([sys.executable, "-c",
3017 stdout=subprocess.PIPE,
3018 stderr=subprocess.PIPE)
3030 self.assertIsNone(subprocess._active)
3033 self.assertIn(ident, [id(o) for o in subprocess._active])
3039 with subprocess.Popen(NONEXISTING_CMD,
3040 stdout=subprocess.PIPE,
3041 stderr=subprocess.PIPE) as proc:
3047 self.assertIsNone(subprocess._active)
3049 self.assertNotIn(ident, [id(o) for o in subprocess._active])
3059 p = subprocess.Popen([sys.executable, fd_status],
3060 stdout=subprocess.PIPE, close_fds=True,
3153 proc = subprocess.Popen(ZERO_RETURN_CMD)
3162 proc = subprocess.Popen(ZERO_RETURN_CMD)
3172 proc = subprocess.Popen([sys.executable, '-h'],
3173 stdin=subprocess.PIPE,
3174 stdout=subprocess.PIPE)
3187 proc = subprocess.Popen([sys.executable, '-h'],
3188 stdin=subprocess.PIPE,
3189 stdout=subprocess.PIPE)
3202 proc = subprocess.Popen(args)
3216 proc = subprocess.Popen(ZERO_RETURN_CMD)
3238 p = subprocess.Popen([sys.executable, '-c', 'exit(1)'])
3249 proc = subprocess.Popen([sys.executable, '-c',
3251 stdout=subprocess.PIPE)
3256 except subprocess.TimeoutExpired:
3269 startupinfo = subprocess.STARTUPINFO()
3275 subprocess.call(ZERO_RETURN_CMD,
3284 startupinfo = subprocess.STARTUPINFO(
3291 subprocess.call(ZERO_RETURN_CMD,
3296 startupinfo = subprocess.STARTUPINFO()
3297 startupinfo.dwFlags = subprocess.STARTF_USESHOWWINDOW
3298 startupinfo.wShowWindow = subprocess.SW_HIDE
3305 proc = subprocess.Popen(cmd,
3307 stderr=subprocess.STDOUT,
3314 subprocess.STARTF_USESHOWWINDOW)
3318 self.assertEqual(startupinfo.wShowWindow, subprocess.SW_HIDE)
3325 subprocess.call(sys.executable +
3331 self.assertRaises(ValueError, subprocess.call,
3343 subprocess.Popen(ZERO_RETURN_CMD, env=BadEnv())
3347 rc = subprocess.call([sys.executable, "-c",
3364 p = subprocess.Popen([sys.executable, "-c",
3366 stdout=subprocess.PIPE, close_fds=False)
3371 p = subprocess.Popen([sys.executable, "-c",
3373 stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
3380 startupinfo = subprocess.STARTUPINFO()
3382 p = subprocess.Popen([sys.executable, "-c",
3384 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
3393 startupinfo = subprocess.STARTUPINFO()
3395 p = subprocess.Popen([sys.executable, "-c",
3397 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
3403 startupinfo = subprocess.STARTUPINFO()
3405 subprocess.call(ZERO_RETURN_CMD,
3409 startupinfo = subprocess.STARTUPINFO()
3411 subprocess.call(ZERO_RETURN_CMD,
3418 p = subprocess.Popen(["set"], shell=1,
3419 stdout=subprocess.PIPE,
3428 p = subprocess.Popen("set", shell=1,
3429 stdout=subprocess.PIPE,
3439 p = subprocess.Popen("set", shell=1,
3440 stdout=subprocess.PIPE,
3448 rc = subprocess.call(sys.executable +
3454 p = subprocess.Popen([sys.executable, "-c", """if 1:
3460 stdin=subprocess.PIPE,
3461 stdout=subprocess.PIPE,
3462 stderr=subprocess.PIPE)
3474 p = subprocess.Popen([sys.executable, "-c", """if 1:
3480 stdin=subprocess.PIPE,
3481 stdout=subprocess.PIPE,
3482 stderr=subprocess.PIPE)
3516 class RecordingPopen(subprocess.Popen):
3524 @mock.patch.object(subprocess.Popen, "_communicate")
3537 with mock.patch.object(subprocess.Popen, "_wait") as mock__wait:
3541 with mock.patch.object(subprocess, "Popen",
3547 stdout=subprocess.DEVNULL, **kwargs)
3569 self._test_keyboardinterrupt_no_kill(subprocess.call, timeout=6.282)
3572 self._test_keyboardinterrupt_no_kill(subprocess.run, timeout=6.282)
3576 with subprocess.Popen(*args, **kwargs) as unused_process:
3581 self.assertEqual(subprocess.getoutput('echo xyzzy'), 'xyzzy')
3582 self.assertEqual(subprocess.getstatusoutput('echo xyzzy'),
3592 status, output = subprocess.getstatusoutput(
3602 exported = set(subprocess.__all__)
3605 for name, value in subprocess.__dict__.items():
3618 self.orig_selector = subprocess._PopenSelector
3619 subprocess._PopenSelector = selectors.SelectSelector
3623 subprocess._PopenSelector = self.orig_selector
3644 kwargs['stdout'] = subprocess.PIPE
3645 p = subprocess.Popen(*args, **kwargs)
3674 with subprocess.Popen([sys.executable, "-c",
3678 stdout=subprocess.PIPE,
3679 stderr=subprocess.PIPE) as proc:
3687 with subprocess.Popen([sys.executable, "-c",
3694 with subprocess.Popen([sys.executable, "-c",
3697 stdin=subprocess.PIPE) as proc:
3703 with subprocess.Popen(NONEXISTING_CMD,
3704 stdout=subprocess.PIPE,
3705 stderr=subprocess.PIPE) as proc:
3710 proc = subprocess.Popen(ZERO_RETURN_CMD,
3711 stdin=subprocess.PIPE,