MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / test_kill_process_exception

Function test_kill_process_exception

tests/launcher/test_utils.py:347–353  ·  view source on GitHub ↗

Test exception during kill.

(mock_run, mock_platform)

Source from the content-addressed store, hash-verified

345@patch("launcher.utils.platform.system", return_value="Linux")
346@patch("launcher.utils.subprocess.run")
347def test_kill_process_exception(mock_run, mock_platform):
348 """Test exception during kill."""
349 mock_run.side_effect = RuntimeError("Unexpected error")
350
351 success = kill_process_interactive(1234)
352
353 assert success is False
354
355
356# ==================== input_with_timeout TESTS ====================

Callers

nothing calls this directly

Calls 1

kill_process_interactiveFunction · 0.90

Tested by

no test coverage detected