MCPcopy
hub / github.com/pex-tool/pex / test_executor_execute_nonzero

Function test_executor_execute_nonzero

tests/test_executor.py:67–73  ·  view source on GitHub ↗
(exit_code)

Source from the content-addressed store, hash-verified

65
66@pytest.mark.parametrize("exit_code", [1, 127, -1])
67def test_executor_execute_nonzero(exit_code):
68 # type: (int) -> None
69 with pytest.raises(Executor.NonZeroExit) as exc:
70 Executor.execute("exit %s" % exit_code, shell=True)
71
72 if exit_code > 0:
73 assert exc.value.exit_code == exit_code
74
75
76@pytest.mark.parametrize("cmd", TEST_CMD_PARAMETERS)

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected