MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _repr_compare

Method _repr_compare

src/_pytest/python_api.py:91–96  ·  view source on GitHub ↗
(self, other_side: Any)

Source from the content-addressed store, hash-verified

89 raise NotImplementedError
90
91 def _repr_compare(self, other_side: Any) -> List[str]:
92 return [
93 "comparison failed",
94 f"Obtained: {other_side}",
95 f"Expected: {self}",
96 ]
97
98 def __eq__(self, actual) -> bool:
99 return all(

Callers 1

_compare_eq_anyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected