aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorMohammed Attia <skeuomorf@gmail.com>2014-03-12 16:28:57 +0200
committerMohammed Attia <skeuomorf@gmail.com>2014-03-12 16:55:07 +0200
commit98afd76692e04277fd7a81db7da9480a31cfe18c (patch)
tree4b502329cc760129581d7abdcc00eaf284b0b7a7 /tests/test_utils.py
parent613f8bc0e786bca030e47d586b6835ed76579a50 (diff)
downloadcryptography-98afd76692e04277fd7a81db7da9480a31cfe18c.tar.gz
cryptography-98afd76692e04277fd7a81db7da9480a31cfe18c.tar.bz2
cryptography-98afd76692e04277fd7a81db7da9480a31cfe18c.zip
Use iteritems from the six module for Python 3 compatibility
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 52231539..11bb919a 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -16,6 +16,8 @@ from __future__ import absolute_import, division, print_function
import os
import textwrap
+import six
+
import pretend
import pytest
@@ -1888,7 +1890,7 @@ e76422070edb71db44ff568280fdb1709f8fc3feab39f1f824adaeb2a29808815\
expected = []
for dictionary in expected_vectors:
new_dict = {}
- for k, v in dictionary.iteritems():
+ for k, v in six.iteritems(dictionary):
v = v.strip()
v = v.replace(" ", "")
v = int(v, 16)