From 98afd76692e04277fd7a81db7da9480a31cfe18c Mon Sep 17 00:00:00 2001 From: Mohammed Attia Date: Wed, 12 Mar 2014 16:28:57 +0200 Subject: Use iteritems from the six module for Python 3 compatibility --- tests/test_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.3