aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_hmac.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat/primitives/test_hmac.py')
-rw-r--r--tests/hazmat/primitives/test_hmac.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hazmat/primitives/test_hmac.py b/tests/hazmat/primitives/test_hmac.py
index 81d9ac86..42726a7c 100644
--- a/tests/hazmat/primitives/test_hmac.py
+++ b/tests/hazmat/primitives/test_hmac.py
@@ -42,7 +42,7 @@ class TestHMAC(object):
assert isinstance(h.hexdigest(), str)
def test_hmac_no_digestmod(self):
- with pytest.raises(ValueError):
+ with pytest.raises(TypeError):
hmac.HMAC(key=b"shortkey")