Skip to content

Commit ac6b983

Browse files
committed
fix tests
1 parent 4d412bd commit ac6b983

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_hmac.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,11 +1522,11 @@ def do_test_hmac_digest_overflow_error_switch_to_slow(self, hmac, size):
15221522
bigmsg = b'M' * size
15231523

15241524
with patch.object(hmac, "_compute_digest_fallback") as slow:
1525-
self.assertIsInstance(hmac.digest(bigkey, b'm', "md5"), bytes)
1525+
hmac.digest(bigkey, b'm', "md5")
15261526
slow.assert_called_once()
15271527

15281528
with patch.object(hmac, "_compute_digest_fallback") as slow:
1529-
self.assertIsInstance(hmac.digest(b'k', bigmsg, "md5"), bytes)
1529+
hmac.digest(b'k', bigmsg, "md5")
15301530
slow.assert_called_once()
15311531

15321532
@hashlib_helper.requires_hashdigest("md5", openssl=True)
@@ -1537,7 +1537,7 @@ def test_hmac_digest_no_overflow_error_in_fallback(self, size):
15371537
for key, msg in [(b'K' * size, b'm'), (b'k', b'M' * size)]:
15381538
with self.subTest(keysize=len(key), msgsize=len(msg)):
15391539
with patch.object(hmac, "_compute_digest_fallback") as slow:
1540-
self.assertIsInstance(hmac.digest(key, msg, "md5"), bytes)
1540+
hmac.digest(key, msg, "md5")
15411541
slow.assert_called_once()
15421542

15431543

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy