Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lib/test/test_hmac.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,15 +367,15 @@ def test_with_bytearray(self):
digestmod="sha256")
except Exception:
self.fail("Constructor call with bytearray arguments raised exception.")
self.assertEqual(h.hexdigest(), self.expected)
self.assertEqual(h.hexdigest(), self.expected)

@requires_hashdigest('sha256')
def test_with_memoryview_msg(self):
try:
h = hmac.HMAC(b"key", memoryview(b"hash this!"), digestmod="sha256")
except Exception:
self.fail("Constructor call with memoryview msg raised exception.")
self.assertEqual(h.hexdigest(), self.expected)
self.assertEqual(h.hexdigest(), self.expected)

@requires_hashdigest('sha256')
def test_withmodule(self):
Expand Down