diff options
author | Raymond Hettinger <python@rcn.com> | 2016-11-21 16:59:04 -0800 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-11-21 16:59:04 -0800 |
commit | 4e17e042376ee5c64fad538bba19d786bbdf391c (patch) | |
tree | 33eda382b4413748a3003057469a45c8796a485a | |
parent | 6b3481c4edf9bdb42f78eeb2680150626db3087a (diff) | |
download | cpython-git-4e17e042376ee5c64fad538bba19d786bbdf391c.tar.gz |
Issue #26163: Disable periodically failing test which was overly demanding of the frozenset hash function effectiveness
-rw-r--r-- | Lib/test/test_set.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py index afa6e7f141..0202981d67 100644 --- a/Lib/test/test_set.py +++ b/Lib/test/test_set.py @@ -730,9 +730,6 @@ class TestFrozenSet(TestJointOps, unittest.TestCase): addhashvalue(hash(frozenset([e for e, m in elemmasks if m&i]))) self.assertEqual(len(hashvalues), 2**n) - def letter_range(n): - return string.ascii_letters[:n] - def zf_range(n): # https://en.wikipedia.org/wiki/Set-theoretic_definition_of_natural_numbers nums = [frozenset()] @@ -748,7 +745,7 @@ class TestFrozenSet(TestJointOps, unittest.TestCase): for n in range(18): t = 2 ** n mask = t - 1 - for nums in (range, letter_range, zf_range): + for nums in (range, zf_range): u = len({h & mask for h in map(hash, powerset(nums(n)))}) self.assertGreater(4*u, t) |