summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-11-22 00:59:30 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-11-22 00:59:30 (GMT)
commit21fb9f17619f8b360d2444b098f0fba511969df4 (patch)
tree4dc534b02311566fa163a41baa66f8cacd00b139
parentfc3f50cac958744cc3ce05bc19114b188a9830d5 (diff)
parent4e17e042376ee5c64fad538bba19d786bbdf391c (diff)
downloadcpython-21fb9f17619f8b360d2444b098f0fba511969df4.zip
cpython-21fb9f17619f8b360d2444b098f0fba511969df4.tar.gz
cpython-21fb9f17619f8b360d2444b098f0fba511969df4.tar.bz2
merge
-rw-r--r--Lib/test/test_set.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index afa6e7f..0202981 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)