MCPcopy
hub / github.com/python-trio/trio / main

Function main

src/trio/_core/_tests/test_run.py:98–99  ·  view source on GitHub ↗
(x: object)

Source from the content-addressed store, hash-verified

96
97def test_initial_task_error() -> None:
98 async def main(x: object) -> NoReturn:
99 raise ValueError(x)
100
101 with pytest.raises(ValueError, match=r"^17$") as excinfo:
102 _core.run(main, 17)

Callers

nothing calls this directly

Calls 15

sleepFunction · 0.85
agen_fnFunction · 0.85
_create_kwargsFunction · 0.85
to_thread_run_syncFunction · 0.85
start_soonMethod · 0.80
cancelMethod · 0.80
spawn_system_taskMethod · 0.80
current_trio_tokenMethod · 0.80
addMethod · 0.80
startMethod · 0.80
sleep_foreverFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…