[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

Martin Panter report at bugs.python.org
Thu Oct 20 20:51:31 EDT 2016


Martin Panter added the comment:

I just got this failure again today. I think I have seen it once or twice before. Is the failure actually indicating a problem with Python, or is the test just too strict?

It seems that it may be like a test ensuring that a random.randint(1, 100) is never equal to 81: the probability of it failing is low, but not close enough to zero to rely on it never failing. On the other hand, a test ensuring that a 512-bit cryptographic hash doesn’t collide might be valid because the probability is low enough.

----------
nosy: +martin.panter
versions: +Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26163>
_______________________________________


More information about the Python-bugs-list mailing list