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

Method __eq__

tests/conftest.py:83–94  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

81 __hash__ = None
82
83 def __eq__(self, other):
84 # Ignore constructor/destructor output which is prefixed with "###"
85 a = [
86 line
87 for line in self.string.strip().splitlines()
88 if not line.startswith("###")
89 ]
90 b = _strip_and_dedent(other).splitlines()
91 if a == b:
92 return True
93 self.explanation = _make_explanation(a, b)
94 return False
95
96
97class Unordered(Output):

Callers

nothing calls this directly

Calls 2

_strip_and_dedentFunction · 0.85
_make_explanationFunction · 0.85

Tested by

no test coverage detected