From 753ae19feaf33e4328a707d5588797c2a800c0c7 Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 1 Nov 2013 16:28:41 -0700 Subject: Encode Reasons. --- tests/hazmat/primitives/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3