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

Function test_script_do_not_raise_on_interrupt

tests/test_magic.py:1448–1458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1446
1447
1448def 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
1461def test_script_out():

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
run_cell_magicMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…