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

Method __eq__

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

Source from the content-addressed store, hash-verified

361 )
362
363 def __eq__(self, actual) -> bool:
364 try:
365 if len(actual) != len(self.expected):
366 return False
367 except TypeError:
368 return False
369 return super().__eq__(actual)
370
371 def _yield_comparisons(self, actual):
372 return zip(actual, self.expected)

Callers

nothing calls this directly

Calls 1

__eq__Method · 0.45

Tested by

no test coverage detected