Lines Matching refs:Popen
83 class PopenExecuteChildRaises(subprocess.Popen):
94 p = subprocess.Popen([sys.executable, "-c", "import sys; sys.exit(0)"],
108 p = subprocess.Popen([sys.executable, "-c", "import sys; sys.exit(0)"],
241 self.assertRaises(TypeError, subprocess.Popen, invalid_arg_name=1)
242 argcount = subprocess.Popen.__init__.__code__.co_argcount
244 self.assertRaises(TypeError, subprocess.Popen, *too_many_args)
249 p = subprocess.Popen([sys.executable, "-c", 'print("banana")'],
271 p = subprocess.Popen([sys.executable, "-c", code],
281 p = subprocess.Popen([sys.executable, "-c", 'print("banana")'],
292 p = subprocess.Popen(args, **kwargs)
342 p = subprocess.Popen([python_arg, "-c",
375 self.assertRaises(FileNotFoundError, subprocess.Popen,
377 self.assertRaises(FileNotFoundError, subprocess.Popen,
392 self.assertRaises(FileNotFoundError, subprocess.Popen,
394 self.assertRaises(FileNotFoundError, subprocess.Popen,
410 self.assertRaises(FileNotFoundError, subprocess.Popen,
435 p = subprocess.Popen([sys.executable, "-c",
450 p = subprocess.Popen([sys.executable, "-c",
462 p = subprocess.Popen([sys.executable, "-c",
470 p = subprocess.Popen([sys.executable, "-c",
481 p = subprocess.Popen([sys.executable, "-c",
492 p = subprocess.Popen([sys.executable, "-c",
501 p = subprocess.Popen([sys.executable, "-c",
512 p = subprocess.Popen([sys.executable, "-c",
523 p = subprocess.Popen([sys.executable, "-c",
536 p = subprocess.Popen([sys.executable, "-c",
553 p = subprocess.Popen([sys.executable, "-c",
567 p = subprocess.Popen([sys.executable, "-c",
589 p = subprocess.Popen([sys.executable, "-c", code],
598 p = subprocess.Popen([sys.executable, "-c",
606 p = subprocess.Popen([sys.executable, "-c",
615 p = subprocess.Popen([sys.executable, "-c",
625 with subprocess.Popen([sys.executable, "-c",
653 with subprocess.Popen([sys.executable, "-c",
667 subprocess.Popen([cmd, "-c", "pass"])
671 subprocess.Popen([sys.executable, "-c", "pass#\0"])
678 subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
684 subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
690 subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
695 with subprocess.Popen([sys.executable, "-c",
704 p = subprocess.Popen([sys.executable, "-c",
712 p = subprocess.Popen([sys.executable, "-c",
720 p = subprocess.Popen([sys.executable, "-c",
728 p = subprocess.Popen([sys.executable, "-c",
743 p = subprocess.Popen([sys.executable, "-c",
763 p = subprocess.Popen([sys.executable, "-c",
791 p = subprocess.Popen((sys.executable, "-c", "pass"), **options)
802 p = subprocess.Popen([sys.executable, "-c",
815 p = subprocess.Popen([sys.executable, "-c",
833 p = subprocess.Popen([sys.executable, "-c",
869 p = subprocess.Popen(args, **{'stdin': subprocess.PIPE,
888 p = subprocess.Popen([sys.executable, "-c",
913 p = subprocess.Popen([sys.executable, "-c",
930 p = subprocess.Popen([sys.executable, "-c", "pass"],
939 p = subprocess.Popen([sys.executable, "-c",
981 popen = subprocess.Popen(args,
1001 popen = subprocess.Popen(args,
1035 p = subprocess.Popen([sys.executable, "-c",
1067 p = subprocess.Popen([sys.executable, "-c",
1078 p = subprocess.Popen([sys.executable, "-c", "pass"])
1084 p = subprocess.Popen([sys.executable,
1097 subprocess.Popen([sys.executable, "-c", "pass"], "orange")
1101 p = subprocess.Popen([sys.executable, "-c", "pass"], None)
1104 p = subprocess.Popen([sys.executable, "-c", "pass"], bufsize=None)
1109 with subprocess.Popen([sys.executable, "-c", "import sys;"
1149 subprocess.Popen(NONEXISTING_CMD,
1186 proc = subprocess.Popen(cmd,
1205 subprocess.Popen(NONEXISTING_CMD,
1225 proc = subprocess.Popen([sys.executable, '-c',
1293 subprocess.Popen (["*"], stdin=ifhandle, stdout=ofhandle,
1308 p = subprocess.Popen([sys.executable, "-c", 'pass'],
1319 p = subprocess.Popen([sys.executable, "-c", 'pass'],
1343 with subprocess.Popen(args, **kw) as process:
1377 subprocess.Popen(['exit', '0'], cwd='/some/nonexistent/directory')
1533 p = subprocess.Popen([sys.executable, "-c", ""],
1547 p = subprocess.Popen([sys.executable, "-c", ""],
1561 p = subprocess.Popen([self._nonexistent_dir, "-c", ""])
1577 class PopenNoDestructor(subprocess.Popen):
1664 p = subprocess.Popen([sys.executable, "-c",
1693 p = subprocess.Popen([sys.executable, "-c",
1705 p = subprocess.Popen([sys.executable, "-c", ""],
1717 class _TestExecuteChildPopen(subprocess.Popen):
1721 subprocess.Popen.__init__(self, *args, **kwargs)
1725 subprocess.Popen._execute_child(self, *args, **kwargs)
1779 self.assertRaises(RuntimeError, subprocess.Popen,
1784 self.assertRaises(AttributeError, subprocess.Popen,
1824 p = subprocess.Popen(fname)
1844 p = subprocess.Popen(["echo $FRUIT"], shell=1,
1854 p = subprocess.Popen("echo $FRUIT", shell=1,
1888 p = subprocess.Popen("echo $0", executable=sh, shell=True,
1900 p = subprocess.Popen([sys.executable, "-c", """if 1:
1923 p = subprocess.Popen([sys.executable, "-c", """if 1:
1996 out, err = subprocess.Popen([sys.executable, "-c",
2043 subprocess.Popen([
2076 p = subprocess.Popen([sys.executable, "-c",
2120 p = subprocess.Popen([sys.executable, "-c",
2281 p1 = subprocess.Popen([sys.executable, sleeper],
2287 p2 = subprocess.Popen([sys.executable, fd_status],
2307 p1 = subprocess.Popen([sys.executable, qcat],
2311 p2 = subprocess.Popen([sys.executable, qgrep, subdata],
2358 p = subprocess.Popen([sys.executable, fd_status],
2366 p = subprocess.Popen([sys.executable, fd_status],
2378 p = subprocess.Popen([sys.executable, fd_status],
2407 p = subprocess.Popen([sys.executable, '-c', textwrap.dedent(
2487 p = subprocess.Popen([sys.executable, fd_status],
2518 p = subprocess.Popen(args,
2550 with subprocess.Popen([sys.executable, fd_status],
2564 p = subprocess.Popen([sys.executable, "-c", "import sys; sys.exit(0)"],
2570 p = subprocess.Popen([sys.executable, "-c", "import sys; sys.exit(0)"],
2576 p = subprocess.Popen([sys.executable, "-c", "import sys; sys.exit(0)"],
2584 p = subprocess.Popen([sys.executable, sigchild_ignore],
2595 p = subprocess.Popen([sys.executable, "-c",
2613 p = subprocess.Popen([sys.executable, "-c",
2634 p = subprocess.Popen([sys.executable, "-c",
2654 with subprocess.Popen(NONEXISTING_CMD,
2670 p = subprocess.Popen([sys.executable, fd_status],
2752 proc = subprocess.Popen([sys.executable, '-c', 'pass'])
2761 proc = subprocess.Popen([sys.executable, '-c', 'pass'])
2771 proc = subprocess.Popen([sys.executable, '-h'],
2786 proc = subprocess.Popen([sys.executable, '-h'],
2801 proc = subprocess.Popen(args)
2860 proc = subprocess.Popen(cmd,
2898 subprocess.Popen([sys.executable, "-c", "pass"], env=BadEnv())
2919 p = subprocess.Popen([sys.executable, "-c",
2926 p = subprocess.Popen([sys.executable, "-c",
2937 p = subprocess.Popen([sys.executable, "-c",
2949 p = subprocess.Popen([sys.executable, "-c",
2972 p = subprocess.Popen(["set"], shell=1,
2982 p = subprocess.Popen("set", shell=1,
2993 p = subprocess.Popen("set", shell=1,
3008 p = subprocess.Popen([sys.executable, "-c", """if 1:
3028 p = subprocess.Popen([sys.executable, "-c", """if 1:
3070 class RecordingPopen(subprocess.Popen):
3078 @mock.patch.object(subprocess.Popen, "_communicate")
3091 with mock.patch.object(subprocess.Popen, "_wait") as mock__wait:
3130 with subprocess.Popen(*args, **kwargs) as unused_process:
3199 p = subprocess.Popen(*args, **kwargs)
3228 with subprocess.Popen([sys.executable, "-c",
3241 with subprocess.Popen([sys.executable, "-c",
3248 with subprocess.Popen([sys.executable, "-c",
3257 with subprocess.Popen(NONEXISTING_CMD,
3264 proc = subprocess.Popen([sys.executable, '-c', 'pass'],