From 70d1c71e46811bd3d44249d5361f99613d4ce5af Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 12 Aug 2015 15:39:46 +0200 Subject: Convert zip() result to list() In Python 3, zip() returns an iterator. To get a list, it must be explicitly converted. In most cases, zip() result is iterated over so this is not necessary. Reviewed-By: Christian Heimes Reviewed-By: Jan Cholasta --- ipatests/test_ipapython/test_ipautil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipatests') diff --git a/ipatests/test_ipapython/test_ipautil.py b/ipatests/test_ipapython/test_ipautil.py index ee0f559cf..609e1f0e5 100644 --- a/ipatests/test_ipapython/test_ipautil.py +++ b/ipatests/test_ipapython/test_ipautil.py @@ -173,8 +173,8 @@ class TestCIDict(object): assert ("key2", "val2") in items_set assert ("KEY3", "VAL3") in items_set - assert list(self.cidict.items()) == list(self.cidict.iteritems()) == zip( - self.cidict.keys(), self.cidict.values()) + assert list(self.cidict.items()) == list(self.cidict.iteritems()) == list(zip( + self.cidict.keys(), self.cidict.values())) def test_iter(self): items = [] -- cgit