aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-02-20 07:39:28 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-02-20 07:39:28 -0800
commit337779b6f214c3e72fdae8e96465e772491bcb8f (patch)
tree16e3e9ab83584c831faee1e52493ab8c4437f3d7 /tests/utils.py
parent0fd37212b802289fd207cd4cdca8e30459932db9 (diff)
parent26811800a7ef162b7e868ca50856fb1a243d5ed6 (diff)
downloadcryptography-337779b6f214c3e72fdae8e96465e772491bcb8f.tar.gz
cryptography-337779b6f214c3e72fdae8e96465e772491bcb8f.tar.bz2
cryptography-337779b6f214c3e72fdae8e96465e772491bcb8f.zip
Merge pull request #644 from reaperhulk/bytes-pkcs-loader
Change PKCS1 loader to load bytes for examples
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 6679e907..0d9567f9 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -192,7 +192,7 @@ def load_pkcs1_vectors(vector_data):
):
if example_vector:
for key, value in six.iteritems(example_vector):
- hex_str = "".join(value).replace(" ", "")
+ hex_str = "".join(value).replace(" ", "").encode("ascii")
example_vector[key] = hex_str
examples.append(example_vector)
@@ -213,7 +213,7 @@ def load_pkcs1_vectors(vector_data):
line.startswith("# =============================================")
):
for key, value in six.iteritems(example_vector):
- hex_str = "".join(value).replace(" ", "")
+ hex_str = "".join(value).replace(" ", "").encode("ascii")
example_vector[key] = hex_str
examples.append(example_vector)
example_vector = None