Commit cc26310e authored by Victor Stinner's avatar Victor Stinner

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

the error message.
parent 1500d49c
...@@ -330,6 +330,7 @@ class HashDistributionTestCase(unittest.TestCase): ...@@ -330,6 +330,7 @@ class HashDistributionTestCase(unittest.TestCase):
base = "abcdefghabcdefg" base = "abcdefghabcdefg"
for i in range(1, len(base)): for i in range(1, len(base)):
prefix = base[:i] prefix = base[:i]
with self.subTest(prefix=prefix):
s15 = set() s15 = set()
s255 = set() s255 = set()
for c in range(256): for c in range(256):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment