MCPcopy Create free account
hub / github.com/pybind/pybind11 / _make_explanation

Function _make_explanation

tests/conftest.py:64–68  ·  view source on GitHub ↗

Explanation for a failed assert -- the a and b arguments are List[str]

(a, b)

Source from the content-addressed store, hash-verified

62
63
64def _make_explanation(a, b):
65 """Explanation for a failed assert -- the a and b arguments are List[str]"""
66 return ["--- actual / +++ expected"] + [
67 line.strip("\n") for line in difflib.ndiff(a, b)
68 ]
69
70
71class Output:

Callers 3

__eq__Method · 0.85
__eq__Method · 0.85
__eq__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected