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

Method __eq__

src/_pytest/capture.py:506–509  ·  view source on GitHub ↗
(self, other: object)

Source from the content-addressed store, hash-verified

504 return tuple(self).index(value)
505
506 def __eq__(self, other: object) -> bool:
507 if not isinstance(other, (CaptureResult, tuple)):
508 return NotImplemented
509 return tuple(self) == tuple(other)
510
511 def __hash__(self) -> int:
512 return hash(tuple(self))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected