MCPcopy Index your code
hub / github.com/python/cpython / SkipNoHash

Class SkipNoHash

Lib/test/support/hashlib_helper.py:581–588  ·  view source on GitHub ↗

A SkipTest exception raised when a hash is not available.

Source from the content-addressed store, hash-verified

579
580
581class 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
591class SkipNoHashInCall(SkipNoHash):

Callers 5

import_moduleMethod · 0.85
import_object_typeMethod · 0.85
_builtin_hashFunction · 0.85
_openssl_newFunction · 0.85
_openssl_hashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…