mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Change the builtin hash algorithms' names to lower case names
as promised by hashlib's documentation.
This commit is contained in:
parent
f0e521036c
commit
37d5cebb48
6 changed files with 11 additions and 8 deletions
|
@ -233,9 +233,9 @@ class HashLibTestCase(unittest.TestCase):
|
|||
self.assertEqual(m.block_size, block_size)
|
||||
self.assertEqual(m.digest_size, digest_size)
|
||||
self.assertEqual(len(m.digest()), digest_size)
|
||||
self.assertEqual(m.name.lower(), name.lower())
|
||||
self.assertEqual(m.name, name)
|
||||
# split for sha3_512 / _sha3.sha3 object
|
||||
self.assertIn(name.split("_")[0], repr(m).lower())
|
||||
self.assertIn(name.split("_")[0], repr(m))
|
||||
|
||||
def test_blocksize_name(self):
|
||||
self.check_blocksize_name('md5', 64, 16)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue