Skip to content

Commit a1cd4ca

Browse files
authored
gh-132388: fix typos in Lib/test/test_hmac.py (#132480)
Fix typos that slipped in GH-132389 (commit 9634085).
1 parent 084d6dc commit a1cd4ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_hmac.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ def test_with_fallback(self):
14531453
cache.pop('foo')
14541454

14551455

1456-
class BuiiltinMiscellaneousTests(BuiltinModuleMixin, unittest.TestCase):
1456+
class BuiltinMiscellaneousTests(BuiltinModuleMixin, unittest.TestCase):
14571457
"""HMAC-BLAKE2 is not standardized as BLAKE2 is a keyed hash function.
14581458
14591459
In particular, there is no official test vectors for HMAC-BLAKE2.
@@ -1464,9 +1464,9 @@ class BuiiltinMiscellaneousTests(BuiltinModuleMixin, unittest.TestCase):
14641464
@classmethod
14651465
def setUpClass(cls):
14661466
super().setUpClass()
1467-
cls.blake2 = blake2 = import_module("_blake2")
1468-
cls.blake2b = blake2.blake2b
1469-
cls.blake2s = blake2.blake2s
1467+
cls.blake2 = import_module("_blake2")
1468+
cls.blake2b = cls.blake2.blake2b
1469+
cls.blake2s = cls.blake2.blake2s
14701470

14711471
def assert_hmac_blake_correctness(self, digest, key, msg, hashfunc):
14721472
self.assertIsInstance(digest, bytes)

0 commit comments

Comments
 (0)