MCPcopy Create free account
hub / github.com/python/cpython / __lt__

Method __lt__

Lib/doctest.py:590–597  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

588
589 # This lets us sort tests by name:
590 def __lt__(self, other):
591 if not isinstance(other, DocTest):
592 return NotImplemented
593 self_lno = self.lineno if self.lineno is not None else -1
594 other_lno = other.lineno if other.lineno is not None else -1
595 return ((self.name, self.filename, self_lno, id(self))
596 <
597 (other.name, other.filename, other_lno, id(other)))
598
599######################################################################
600## 3. DocTestParser

Callers

nothing calls this directly

Calls 1

idFunction · 0.85

Tested by

no test coverage detected