Lines Matching defs:sys
4 import sys
16 if sys.platform != 'win32':
23 PROGRAM_BLOCKED = [sys.executable, '-c', 'import time; time.sleep(3600)']
27 sys.executable, '-c',
28 ';'.join(('import sys',
29 'data = sys.stdin.buffer.read()',
30 'sys.stdout.buffer.write(data)'))]
180 if sys.platform == 'win32':
187 if sys.platform == 'win32':
188 blocking_shell_command = f'{sys.executable} -c "import time; time.sleep(2)"'
192 if sys.platform == 'win32':
202 if sys.platform == 'win32':
207 if sys.platform == 'win32':
220 if sys.platform == 'win32':
226 @unittest.skipIf(sys.platform == 'win32', "Don't have SIGHUP")
234 args = [sys.executable, '-c', code]
263 sys.executable, '-c', 'pass',
299 'import sys',
300 'sys.stdout.write("x" * %s)' % size,
301 'sys.stdout.flush()',
315 sys.executable, '-c', code,
341 code = 'import sys; data = sys.stdin.read(); print(len(data))'
343 sys.executable, '-c', code,
360 code = 'import sys; data = sys.stdin.read(); print(len(data))'
362 sys.executable, '-c', code,
379 code = 'import sys; data = sys.stdin.read(); print(len(data))'
381 sys.executable, '-c', code,
398 code = 'import sys; data = sys.stdin.read(); print(len(data))'
400 sys.executable, '-c', code,
417 code = 'import sys; data = sys.stdin.read(); print(len(data))'
419 sys.executable, '-c', code,
433 @unittest.skipIf(sys.platform != 'linux', "Don't have /dev/stdin")
439 sys.executable, '-c', code,
586 if (sys.platform != 'win32' and
591 if sys.platform == 'win32':
602 sys.executable,
623 code = '\n'.join(['import sys',
625 ' sys.stdout.write("x" * 4096)',
626 'sys.stdout.flush()',
627 'sys.exit(1)'])
630 sys.executable, '-c', code,
646 await subprocess.create_subprocess_exec(sys.executable,
650 await subprocess.create_subprocess_exec(sys.executable,
654 await subprocess.create_subprocess_exec(sys.executable,
663 await subprocess.create_subprocess_shell(sys.executable,
667 await subprocess.create_subprocess_shell(sys.executable,
671 await subprocess.create_subprocess_shell(sys.executable,
679 os_helper.FakePath(sys.executable), '-c', 'pass')
682 sys.executable, '-c', 'pass', os_helper.FakePath('.'))
698 res = await asyncio.gather(*[get_command_stdout(sys.executable, '-c',
705 if sys.platform != 'win32':
782 os_helper.FakePath(sys.executable), '-c', 'pass')