MCPcopy Index your code
hub / github.com/ipython/ipython / test_run_cell_async

Function test_run_cell_async

tests/test_interactiveshell.py:1152–1159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1150
1151
1152def test_run_cell_async():
1153 ip.run_cell("import asyncio")
1154 coro = ip.run_cell_async("await asyncio.sleep(0.01)\n5")
1155 assert asyncio.iscoroutine(coro)
1156 loop = asyncio.new_event_loop()
1157 result = loop.run_until_complete(coro)
1158 assert isinstance(result, interactiveshell.ExecutionResult)
1159 assert result.result == 5
1160
1161
1162def test_run_cell_await():

Callers

nothing calls this directly

Calls 2

run_cell_asyncMethod · 0.80
run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…