(self, other)
| 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 |