##// END OF EJS Templates
map returns an iterator in Python 3
Julia Evans -
Show More
@@ -48,8 +48,8 b' class TestExecute(PreprocessorTestsBase):'
48 for expected_cell, actual_cell in zip(expected_cells, actual_cells):
48 for expected_cell, actual_cell in zip(expected_cells, actual_cells):
49 expected_outputs = expected_cell.get('outputs', [])
49 expected_outputs = expected_cell.get('outputs', [])
50 actual_outputs = actual_cell.get('outputs', [])
50 actual_outputs = actual_cell.get('outputs', [])
51 normalized_expected_outputs = map(self.normalize_cell, expected_outputs)
51 normalized_expected_outputs = list(map(self.normalize_cell, expected_outputs))
52 normalized_actual_outputs = map(self.normalize_cell, actual_outputs)
52 normalized_actual_outputs = list(map(self.normalize_cell, actual_outputs))
53 assert normalized_expected_outputs == normalized_actual_outputs
53 assert normalized_expected_outputs == normalized_actual_outputs
54
54
55
55
General Comments 0
You need to be logged in to leave comments. Login now