From 30eabddbade7647e0fb53500356e252eed245c6a Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 28 Oct 2013 12:52:47 -0500 Subject: change type of exception raised, fix docs typo --- tests/hazmat/primitives/test_hmac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/hazmat') 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") -- cgit v1.2.3