]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132388: fix typos in `Lib/test/test_hmac.py` (#132480)
authorabhi-jha <abhi_jha1995@rediffmail.com>
Sun, 13 Apr 2025 22:26:58 +0000 (18:26 -0400)
committerGitHub <noreply@github.com>
Sun, 13 Apr 2025 22:26:58 +0000 (22:26 +0000)
Fix typos that slipped in GH-132389 (commit 9634085af3670b1eb654e3c7820aca66f358f39f).

Lib/test/test_hmac.py

index 3055a036c811b64e4d0ce8ccb44e8fac5d857d0c..8370ba30601fae1d3bf0601c028f7931b9db93dc 100644 (file)
@@ -1453,7 +1453,7 @@ class PyMiscellaneousTests(unittest.TestCase):
             cache.pop('foo')
 
 
-class BuiiltinMiscellaneousTests(BuiltinModuleMixin, unittest.TestCase):
+class BuiltinMiscellaneousTests(BuiltinModuleMixin, unittest.TestCase):
     """HMAC-BLAKE2 is not standardized as BLAKE2 is a keyed hash function.
 
     In particular, there is no official test vectors for HMAC-BLAKE2.
@@ -1464,9 +1464,9 @@ class BuiiltinMiscellaneousTests(BuiltinModuleMixin, unittest.TestCase):
     @classmethod
     def setUpClass(cls):
         super().setUpClass()
-        cls.blake2 = blake2 = import_module("_blake2")
-        cls.blake2b = blake2.blake2b
-        cls.blake2s = blake2.blake2s
+        cls.blake2 = import_module("_blake2")
+        cls.blake2b = cls.blake2.blake2b
+        cls.blake2s = cls.blake2.blake2s
 
     def assert_hmac_blake_correctness(self, digest, key, msg, hashfunc):
         self.assertIsInstance(digest, bytes)