Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ run
Function
run
Lib/test/test_interpreters/utils.py:366–371 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
364
def
_running(interp):
365
r, w = os.pipe()
366
def
run():
367
interp.exec(dedent(f
""
"
368
# wait for "signal"
369
with
open({r})
as
rpipe:
370
rpipe.read()
371
""
"))
372
373
t = threading.Thread(target=run)
374
t.start()
Callers
15
test_func_in___main___valid
Method · 0.70
test_stdin_stdout
Method · 0.50
test_communicate
Method · 0.50
test_communicate_none_input
Method · 0.50
test_create_connection_ssl_1
Method · 0.50
test_shutdown_cleanly
Method · 0.50
test_flush_before_shutdown
Method · 0.50
test_remote_shutdown_receives_trailing_data
Method · 0.50
test_remote_shutdown_receives_trailing_data_on_slow_socket
Method · 0.50
test_eager_task_factory_set
Method · 0.50
test_await_future_during_eager_step
Method · 0.50
test_eager_completion
Method · 0.50
Calls
2
dedent
Function · 0.90
exec
Method · 0.80
Tested by
15
test_func_in___main___valid
Method · 0.56
test_stdin_stdout
Method · 0.40
test_communicate
Method · 0.40
test_communicate_none_input
Method · 0.40
test_create_connection_ssl_1
Method · 0.40
test_shutdown_cleanly
Method · 0.40
test_flush_before_shutdown
Method · 0.40
test_remote_shutdown_receives_trailing_data
Method · 0.40
test_remote_shutdown_receives_trailing_data_on_slow_socket
Method · 0.40
test_eager_task_factory_set
Method · 0.40
test_await_future_during_eager_step
Method · 0.40
test_eager_completion
Method · 0.40