From 5934dbc144f1277b2b41dee3a51567db2ec90863 Mon Sep 17 00:00:00 2001 From: Andreas Gabriel Date: Tue, 3 Apr 2018 23:18:28 +0200 Subject: [PATCH] wrap map calls in list calls --- src/Products/ZCatalog/tests/test_cache.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Products/ZCatalog/tests/test_cache.py b/src/Products/ZCatalog/tests/test_cache.py index 14603617..2b10685e 100644 --- a/src/Products/ZCatalog/tests/test_cache.py +++ b/src/Products/ZCatalog/tests/test_cache.py @@ -106,8 +106,8 @@ def _apply_query(self, query): self.assertEqual(stats[0]['misses'], misses) # compare result - rset1 = map(lambda x: x.getRID(), res1) - rset2 = map(lambda x: x.getRID(), res2) + rset1 = list(map(lambda x: x.getRID(), res1)) + rset2 = list(map(lambda x: x.getRID(), res2)) self.assertEqual(rset1, rset2) def _get_cache_key(self, query=None): @@ -176,6 +176,6 @@ def test_cache_invalidate(self): self.assertEqual(stats[0]['misses'], misses + 1) # compare result - rset1 = map(lambda x: x.getRID(), res1) - rset2 = map(lambda x: x.getRID(), res2) + rset1 = list(map(lambda x: x.getRID(), res1)) + rset2 = list(map(lambda x: x.getRID(), res2)) self.assertEqual(rset1, rset2)