diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-18 20:53:04 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-18 20:53:04 -0500 |
commit | ba3b471e4b0f56e65acdb9d5daf64eb726d9c371 (patch) | |
tree | 7b9a2189fbf2c0f409ea43035ddb9bd29323addc /tests/primitives/test_hashes.py | |
parent | bb069c2fee6460185ee435ea848d80bab2ccec6c (diff) | |
download | cryptography-ba3b471e4b0f56e65acdb9d5daf64eb726d9c371.tar.gz cryptography-ba3b471e4b0f56e65acdb9d5daf64eb726d9c371.tar.bz2 cryptography-ba3b471e4b0f56e65acdb9d5daf64eb726d9c371.zip |
change api.supports_hash to take a hash class rather than a str
* This change means hash class names will be byte strings and we no
longer need to encode to ascii on hashobject.name in
create_hash_context
Diffstat (limited to 'tests/primitives/test_hashes.py')
-rw-r--r-- | tests/primitives/test_hashes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/primitives/test_hashes.py b/tests/primitives/test_hashes.py index 1bc2e9e9..4ad5c89a 100644 --- a/tests/primitives/test_hashes.py +++ b/tests/primitives/test_hashes.py @@ -23,6 +23,6 @@ class TestSHA1(object): hashes.SHA1, digest_size=20, block_size=64, - only_if=lambda api: api.supports_hash("sha1"), + only_if=lambda api: api.supports_hash(hashes.SHA1), skip_message="Does not support SHA1", ) |