mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Issue #20162: test_hash_distribution() uses subTest() to mention the prefix in
the error message.
This commit is contained in:
parent
1500d49c22
commit
cc26310e2e
1 changed files with 10 additions and 9 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue