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

Method __eq__

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

Source from the content-addressed store, hash-verified

287 )
288
289 def __eq__(self, actual) -> bool:
290 try:
291 if set(actual.keys()) != set(self.expected.keys()):
292 return False
293 except AttributeError:
294 return False
295
296 return super().__eq__(actual)
297
298 def _yield_comparisons(self, actual):
299 for k in self.expected.keys():

Callers

nothing calls this directly

Calls 1

__eq__Method · 0.45

Tested by

no test coverage detected