MCPcopy Index your code
hub / github.com/python/cpython / _captured_script

Function _captured_script

Lib/test/test_interpreters/utils.py:335–341  ·  view source on GitHub ↗
(script, *, stdout=True, stderr=False, exc=False)

Source from the content-addressed store, hash-verified

333
334
335def _captured_script(script, *, stdout=True, stderr=False, exc=False):
336 return CapturingResults.wrap_script(
337 script,
338 stdout=stdout,
339 stderr=stderr,
340 exc=exc,
341 )
342
343
344def clean_up_interpreters():

Callers 6

_run_outputFunction · 0.70
_run_stringMethod · 0.70
capturingMethod · 0.70
test_successMethod · 0.70
test_in_threadMethod · 0.70
test_execMethod · 0.70

Calls 1

wrap_scriptMethod · 0.80

Tested by 3

test_successMethod · 0.56
test_in_threadMethod · 0.56
test_execMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…