aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2013-11-01 16:28:41 -0700
committerDavid Reid <dreid@dreid.org>2013-11-01 16:28:41 -0700
commit753ae19feaf33e4328a707d5588797c2a800c0c7 (patch)
tree0657e053e7247330118d12306367ca23e0a52448 /tests
parent87744771e7ef142bf97b46c399421a504a4ce4ad (diff)
downloadcryptography-753ae19feaf33e4328a707d5588797c2a800c0c7.tar.gz
cryptography-753ae19feaf33e4328a707d5588797c2a800c0c7.tar.bz2
cryptography-753ae19feaf33e4328a707d5588797c2a800c0c7.zip
Encode Reasons.
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/primitives/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py
index 1dfad6e5..b4a8a3e6 100644
--- a/tests/hazmat/primitives/utils.py
+++ b/tests/hazmat/primitives/utils.py
@@ -154,7 +154,7 @@ def hmac_test(backend, algorithm, params, only_if, skip_message):
key = params[2]
h = hmac.HMAC(binascii.unhexlify(key), algorithm)
h.update(binascii.unhexlify(msg))
- assert h.finalize() == binascii.unhexlify(md)
+ assert h.finalize() == binascii.unhexlify(md.encode("ascii"))
def generate_base_hmac_test(hash_cls, only_if=None, skip_message=None):