Issue #20162: test_hash_distribution() uses subTest() to mention the prefix in

the error message.
This commit is contained in:
Victor Stinner 2014-01-07 14:40:51 +01:00
parent 1500d49c22
commit cc26310e2e

View file

@ -330,6 +330,7 @@ class HashDistributionTestCase(unittest.TestCase):
base = "abcdefghabcdefg"
for i in range(1, len(base)):
prefix = base[:i]
with self.subTest(prefix=prefix):
s15 = set()
s255 = set()
for c in range(256):