mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Fix typos mostly in comments, docs and test names (GH-15209)
This commit is contained in:
parent
15119bc2a7
commit
39d87b5471
46 changed files with 60 additions and 60 deletions
|
|
@ -445,7 +445,7 @@ class CompareDigestTestCase(unittest.TestCase):
|
|||
a, b = bytearray(b"foobar"), bytearray(b"foobar")
|
||||
self.assertTrue(hmac.compare_digest(a, b))
|
||||
|
||||
# Testing bytearrays of diffeent lengths
|
||||
# Testing bytearrays of different lengths
|
||||
a, b = bytearray(b"foobar"), bytearray(b"foo")
|
||||
self.assertFalse(hmac.compare_digest(a, b))
|
||||
|
||||
|
|
@ -458,7 +458,7 @@ class CompareDigestTestCase(unittest.TestCase):
|
|||
self.assertTrue(hmac.compare_digest(a, b))
|
||||
self.assertTrue(hmac.compare_digest(b, a))
|
||||
|
||||
# Testing byte bytearray of diffeent lengths
|
||||
# Testing byte bytearray of different lengths
|
||||
a, b = bytearray(b"foobar"), b"foo"
|
||||
self.assertFalse(hmac.compare_digest(a, b))
|
||||
self.assertFalse(hmac.compare_digest(b, a))
|
||||
|
|
@ -472,7 +472,7 @@ class CompareDigestTestCase(unittest.TestCase):
|
|||
a, b = "foobar", "foobar"
|
||||
self.assertTrue(hmac.compare_digest(a, b))
|
||||
|
||||
# Testing str of diffeent lengths
|
||||
# Testing str of different lengths
|
||||
a, b = "foo", "foobar"
|
||||
self.assertFalse(hmac.compare_digest(a, b))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue