MCPcopy Index your code
hub / github.com/RustPython/RustPython / _make_error

Function _make_error

Lib/test/support/strace_helper.py:104–110  ·  view source on GitHub ↗
(reason, details)

Source from the content-addressed store, hash-verified

102 res = None
103
104 def _make_error(reason, details):
105 return StraceResult(
106 strace_returncode=-1,
107 python_returncode=-1,
108 event_bytes= f"error({reason},details={details!r}) = -1".encode('utf-8'),
109 stdout=res.out if res else b"",
110 stderr=res.err if res else b"")
111
112 # Run strace, and get out the raw text
113 try:

Callers 1

strace_pythonFunction · 0.85

Calls 2

StraceResultClass · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected