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

Function test_CalledProcessError_str_nooutput

tests/util_test.py:30–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def test_CalledProcessError_str_nooutput():
31 error = CalledProcessError(1, ('exe',), b'', b'')
32 assert str(error) == (
33 "command: ('exe',)\n"
34 'return code: 1\n'
35 'stdout: (none)\n'
36 'stderr: (none)'
37 )
38
39
40def test_clean_on_failure_noop(in_tmpdir):

Callers

nothing calls this directly

Calls 1

CalledProcessErrorClass · 0.90

Tested by

no test coverage detected