diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-01 09:57:25 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-01 09:57:25 -0800 |
commit | 9b1a82e42bdd546220225430aa06e3b732fb0155 (patch) | |
tree | 606953d632264e9fb257ff777b496b55b83d235e /tests | |
parent | 58ee8c55acc585fb90a99f6102fa4a7d56072b27 (diff) | |
download | cryptography-9b1a82e42bdd546220225430aa06e3b732fb0155.tar.gz cryptography-9b1a82e42bdd546220225430aa06e3b732fb0155.tar.bz2 cryptography-9b1a82e42bdd546220225430aa06e3b732fb0155.zip |
Switch to TypeError
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/primitives/twofactor/test_hotp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hazmat/primitives/twofactor/test_hotp.py b/tests/hazmat/primitives/twofactor/test_hotp.py index fc74ee7f..4c726b77 100644 --- a/tests/hazmat/primitives/twofactor/test_hotp.py +++ b/tests/hazmat/primitives/twofactor/test_hotp.py @@ -46,7 +46,7 @@ class TestHOTP(object): def test_invalid_algorithm(self, backend): secret = os.urandom(16) - with pytest.raises(ValueError): + with pytest.raises(TypeError): HOTP(secret, 6, MD5(), backend) @pytest.mark.parametrize("params", vectors) |