MCPcopy
hub / github.com/pytest-dev/pytest / __eq__

Method __eq__

src/_pytest/python_api.py:375–381  ·  view source on GitHub ↗
(self, actual)

Source from the content-addressed store, hash-verified

373 )
374
375 def __eq__(self, actual) -> bool:
376 try:
377 if len(actual) != len(self.expected):
378 return False
379 except TypeError:
380 return False
381 return super().__eq__(actual)
382
383 def _yield_comparisons(self, actual):
384 return zip(actual, self.expected, strict=True)

Callers

nothing calls this directly

Calls 1

__eq__Method · 0.45

Tested by

no test coverage detected