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

Function test_CalledProcessError_str

tests/util_test.py:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def test_CalledProcessError_str():
19 error = CalledProcessError(1, ('exe',), b'output\n', b'errors\n')
20 assert str(error) == (
21 "command: ('exe',)\n"
22 'return code: 1\n'
23 'stdout:\n'
24 ' output\n'
25 'stderr:\n'
26 ' errors'
27 )
28
29
30def test_CalledProcessError_str_nooutput():

Callers

nothing calls this directly

Calls 1

CalledProcessErrorClass · 0.90

Tested by

no test coverage detected