()
| 1446 | |
| 1447 | |
| 1448 | def test_script_do_not_raise_on_interrupt(): |
| 1449 | ip = get_ipython() |
| 1450 | |
| 1451 | thread = Thread(target=_interrupt_after_1s) |
| 1452 | thread.start() |
| 1453 | ip.run_cell_magic( |
| 1454 | "script", |
| 1455 | f"--no-raise-error {sys.executable}", |
| 1456 | "from time import sleep; sleep(2)", |
| 1457 | ) |
| 1458 | thread.join() |
| 1459 | |
| 1460 | |
| 1461 | def test_script_out(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…