MCPcopy Index your code
hub / github.com/RustPython/RustPython / run_in_separated_process

Method run_in_separated_process

Lib/test/test_msvcrt.py:66–71  ·  view source on GitHub ↗
(self, code)

Source from the content-addressed store, hash-verified

64 # CREATE_NEW_CONSOLE creates a "popup" window.
65 @requires_resource('gui')
66 def run_in_separated_process(self, code):
67 # Run test in a separated process to avoid stdin conflicts.
68 # See: gh-110147
69 cmd = [sys.executable, '-c', code]
70 subprocess.run(cmd, check=True, capture_output=True,
71 creationflags=subprocess.CREATE_NEW_CONSOLE)
72
73 def test_kbhit(self):
74 code = dedent('''

Callers 2

test_kbhitMethod · 0.95
check_getwchMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected