(
ops: Sequence[str],
results: Sequence[bool],
expls: Sequence[str],
each_obj: Sequence[object],
)
| 488 | |
| 489 | |
| 490 | def _call_reprcompare( |
| 491 | ops: Sequence[str], |
| 492 | results: Sequence[bool], |
| 493 | expls: Sequence[str], |
| 494 | each_obj: Sequence[object], |
| 495 | ) -> str: |
| 496 | for i, res, expl in zip(range(len(ops)), results, expls): |
| 497 | try: |
| 498 | done = not res |
| 499 | except Exception: |
| 500 | done = True |
| 501 | if done: |
| 502 | break |
| 503 | if util._reprcompare is not None: |
| 504 | custom = util._reprcompare(ops[i], each_obj[i], each_obj[i + 1]) |
| 505 | if custom is not None: |
| 506 | return custom |
| 507 | return expl |
| 508 | |
| 509 | |
| 510 | def _call_assertion_pass(lineno: int, orig: str, expl: str) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected