MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_ignore_exit_code

Function test_ignore_exit_code

tests/commands/hazmat_test.py:70–77  ·  view source on GitHub ↗
(capfd)

Source from the content-addressed store, hash-verified

68
69
70def test_ignore_exit_code(capfd):
71 ret = main((
72 'ignore-exit-code', sys.executable, '-c', 'raise SystemExit("bye")',
73 ))
74 assert ret == 0
75 out, err = capfd.readouterr()
76 assert out == ''
77 assert _norm(err) == 'bye\n'
78
79
80def test_n1(capfd):

Callers

nothing calls this directly

Calls 2

mainFunction · 0.90
_normFunction · 0.70

Tested by

no test coverage detected