MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / _check_in_separate_process

Function _check_in_separate_process

tests_python/test_utilities.py:316–330  ·  view source on GitHub ↗
(method_name, module_name="test_utilities", update_env={})

Source from the content-addressed store, hash-verified

314
315
316def _check_in_separate_process(method_name, module_name="test_utilities", update_env={}):
317 import subprocess
318
319 cwd, environ = _build_launch_env()
320 environ.update(update_env)
321
322 subprocess.check_call(
323 [
324 sys.executable,
325 "-c",
326 "import %(module_name)s;%(module_name)s.%(method_name)s()" % dict(method_name=method_name, module_name=module_name),
327 ],
328 env=environ,
329 cwd=cwd,
330 )
331
332
333@pytest.mark.skipif(not IS_CPYTHON, reason="Functionality to trace other threads requires CPython.")

Callers 4

test_tracing_basicFunction · 0.85
test_find_main_thread_idFunction · 0.85
test_gevent_notifyFunction · 0.85

Calls 2

_build_launch_envFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected