def skip_unless_internalhash(test):
 ok = (sys.hash_info.algorithm in {'fnv', 'siphash24'})
 msg = 'Requires SipHash24 or FNV'
 return (test if ok else unittest.skip(msg)(test))

def skip_unless_internalhash ( test ) : ok = ( sys . hash_info . algorithm in { 'fnv' , 'siphash24' } ) msg = 'Requires SipHash24 or FNV' return ( test if ok else unittest . skip ( msg ) ( test ) )
skip decorator for tests that depend on siphash24 or fnv .