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

Function test_script_raise_on_interrupt

tests/test_magic.py:1436–1445  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1434
1435
1436def test_script_raise_on_interrupt():
1437 ip = get_ipython()
1438
1439 with pytest.raises(CalledProcessError):
1440 thread = Thread(target=_interrupt_after_1s)
1441 thread.start()
1442 ip.run_cell_magic(
1443 "script", f"{sys.executable}", "from time import sleep; sleep(2)"
1444 )
1445 thread.join()
1446
1447
1448def test_script_do_not_raise_on_interrupt():

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…