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

Method __lt__

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

Source from the content-addressed store, hash-verified

512 return hash(tuple(self))
513
514 def __lt__(self, other: object) -> bool:
515 if not isinstance(other, (CaptureResult, tuple)):
516 return NotImplemented
517 return tuple(self) < tuple(other)
518
519 def __repr__(self) -> str:
520 return f"CaptureResult(out={self.out!r}, err={self.err!r})"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected