8000 bpo-14322: added test case for invalid update to hmac by CCLDArjun · Pull Request #26636 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-14322: added test case for invalid update to hmac #26636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 25, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
oops it got added twice
  • Loading branch information
CCLDArjun authored Jun 10, 2021
commit 5e99fa47510a1062583f35ee04d8579ffd5069a9
7 changes: 0 additions & 7 deletions Lib/test/test_hmac.py
66F5
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,6 @@ def test_with_str_update(self):
h.update("invalid update")


class UpdateTestCase(unittest.TestCase):
@hashlib_helper.requires_hashdigest('sha256')
def test_with_str_update(self):
with self.assertRaises(TypeError):
h = hmac.new(b"key", digestmod='sha256')
h.update("invalid update")

class CopyTestCase(unittest.TestCase):

@hashlib_helper.requires_hashdigest('sha256')
Expand Down
0