diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-28 12:52:47 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-28 17:36:52 -0500 |
commit | 30eabddbade7647e0fb53500356e252eed245c6a (patch) | |
tree | 4b435acd66eb54a3d23c3f7edc509ef844d0a2f7 /tests | |
parent | 2824ab72d30e8423d17496e2c3baa47106505c8c (diff) | |
download | cryptography-30eabddbade7647e0fb53500356e252eed245c6a.tar.gz cryptography-30eabddbade7647e0fb53500356e252eed245c6a.tar.bz2 cryptography-30eabddbade7647e0fb53500356e252eed245c6a.zip |
change type of exception raised, fix docs typo
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/primitives/test_hmac.py | 2 |
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") |