()
| 1009 | |
| 1010 | |
| 1011 | def test_run_cell_async(): |
| 1012 | loop = asyncio.get_event_loop() |
| 1013 | ip.run_cell("import asyncio") |
| 1014 | coro = ip.run_cell_async("await asyncio.sleep(0.01)\n5") |
| 1015 | assert asyncio.iscoroutine(coro) |
| 1016 | result = loop.run_until_complete(coro) |
| 1017 | assert isinstance(result, interactiveshell.ExecutionResult) |
| 1018 | assert result.result == 5 |
| 1019 | |
| 1020 | |
| 1021 | def test_should_run_async(): |
nothing calls this directly
no test coverage detected