Skip to content

Commit

Permalink
- replace map call with zip
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed May 13, 2017
1 parent 8ebd991 commit d0f1c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Products/PluginIndexes/DateRangeIndex/tests.py
Expand Up @@ -151,7 +151,7 @@ def test_retrieval(self):
results, used = self._checkApply(index, {'work': value}, matches)
matches = sorted(matches, key=lambda d: d[1].name())

for result, match in map(None, results, matches):
for result, match in zip(results, matches):
self.assertEqual(index.getEntryForObject(result),
match[1].datum())

Expand Down

0 comments on commit d0f1c29

Please sign in to comment.