Skip decorator for tests that depend on SipHash24 or FNV
(test)
| 41 | return int32, int64 |
| 42 | |
| 43 | def 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 | |
| 50 | class HashEqualityTestCase(unittest.TestCase): |
nothing calls this directly
no test coverage detected
searching dependent graphs…