MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_raise_keyboard_interrupt

Function test_raise_keyboard_interrupt

tests/test_cmd2.py:1125–1128  ·  view source on GitHub ↗
(base_app)

Source from the content-addressed store, hash-verified

1123
1124
1125def test_raise_keyboard_interrupt(base_app) -> None:
1126 with pytest.raises(KeyboardInterrupt) as excinfo:
1127 base_app._raise_keyboard_interrupt()
1128 assert "Got a keyboard interrupt" in str(excinfo.value)
1129
1130
1131@pytest.mark.skipif(sys.platform.startswith("win"), reason="SIGTERM only handled on Linux/Mac")

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…