A SkipTest exception raised when a hash is not available.
| 579 | |
| 580 | |
| 581 | class SkipNoHash(unittest.SkipTest): |
| 582 | """A SkipTest exception raised when a hash is not available.""" |
| 583 | |
| 584 | def __init__(self, digestname, implementation=None, reason=None): |
| 585 | parts = ["missing", implementation, f"hash algorithm {digestname!r}"] |
| 586 | if reason is not None: |
| 587 | parts.insert(0, f"{reason}: ") |
| 588 | super().__init__(" ".join(filter(None, parts))) |
| 589 | |
| 590 | |
| 591 | class SkipNoHashInCall(SkipNoHash): |
no outgoing calls
no test coverage detected
searching dependent graphs…