Lines Matching defs:exit

148                               "import sys; sys.exit(47)"])
169 "import sys; sys.exit(47)"])
190 [sys.executable, "-c", "import sys; sys.exit(5)"])
292 'sys.exit(os.getenv("FRUIT")=="banana")'],
348 # We include sys.exit() to prevent the test runner from hanging
350 args = pre_args + ["import sys; sys.exit(47)"]
428 "sys.exit(47)"],
524 'import sys; sys.exit(sys.stdin.read() == "pear")'],
539 'import sys; sys.exit(sys.stdin.read() == "pear")'],
551 'import sys; sys.exit(sys.stdin.read() == "pear")'],
630 'sys.exit(rc)'],
674 ' "import os, sys; sys.exit(os.write(sys.stdout.fileno(), '
860 'sys.exit(sys.stdin.read() == "pear")'],
957 "import sys; sys.exit(47)"])
1116 # to stderr at exit of subprocess.
1548 subprocess.Popen(['exit', '0'], cwd='/some/nonexistent/directory')
1579 cp = self.run_python("import sys; sys.exit(47)")
1586 self.run_python("import sys; sys.exit(47)", check=True)
1661 'sys.exit(33 if os.getenv("FRUIT")=="banana" else 31)'),
1668 # any arguments that exit fast
1682 args = [path, '-c', b'import sys; sys.exit(57)']
1689 args = [path, '-c', 'import sys; sys.exit(57)']
2150 self.assertIn("non-zero exit status 2.", error_string)
2267 fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" %
2279 "import sys; sys.exit(47)"],
2283 "import sys; sys.exit(47)"],
2312 fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" %
3106 # let some time for the process to exit, and create a new Popen: this
3285 # bpo-38630: send_signal() must poll the process exit status to reduce
3302 # Don't check the returncode value: the test reads the exit status,
3309 p = subprocess.Popen([sys.executable, '-c', 'exit(1)'])
3311 # wait for process to exit
3405 "import sys; sys.exit(47)"],
3420 "import sys; sys.exit(47)"],
3521 ' -c "import sys; sys.exit(47)"')
3550 sys.exit(42)
3611 # child process isn't actually going to exit rapidly.
3760 "import sys; sys.exit(100)"]) as proc:
3768 "sys.exit(sys.stdin.read() == 'context')"],