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

Function skip_unless_internalhash

Lib/test/test_hash.py:43–47  ·  view source on GitHub ↗

Skip decorator for tests that depend on SipHash24 or FNV

(test)

Source from the content-addressed store, hash-verified

41 return int32, int64
42
43def skip_unless_internalhash(test):
44 """Skip decorator for tests that depend on SipHash24 or FNV"""
45 ok = sys.hash_info.algorithm in {"fnv", "siphash13", "siphash24"}
46 msg = "Requires SipHash13, SipHash24 or FNV"
47 return test if ok else unittest.skip(msg)(test)
48
49
50class HashEqualityTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

skipMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…