()
| 1150 | |
| 1151 | |
| 1152 | def 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 | |
| 1162 | def test_run_cell_await(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…