Commit 434027d3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

py2/py3: explicitly cast to list in ERP5Type/tests.

parent a5a38e5c
...@@ -146,7 +146,7 @@ def main(): ...@@ -146,7 +146,7 @@ def main():
assert revision == test_result.revision, (revision, test_result.revision) assert revision == test_result.revision, (revision, test_result.revision)
while suite.acquire(): while suite.acquire():
test = test_result.start(suite.running.keys()) test = test_result.start(list(suite.running.keys()))
if test is not None: if test is not None:
suite.start(test.name, lambda status_dict, __test=test: suite.start(test.name, lambda status_dict, __test=test:
__test.stop(**status_dict)) __test.stop(**status_dict))
......
...@@ -600,7 +600,7 @@ def updateCellList(portal, line, cell_type, cell_range_method, cell_dict_list): ...@@ -600,7 +600,7 @@ def updateCellList(portal, line, cell_type, cell_range_method, cell_dict_list):
def getSortedCategoryList(line, base_id, category_list): def getSortedCategoryList(line, base_id, category_list):
result = [] result = []
index_list = line.index[base_id].keys() index_list = list(line.index[base_id].keys())
index_list.sort() index_list.sort()
for category in category_list: for category in category_list:
for index in index_list: for index in index_list:
...@@ -677,7 +677,7 @@ def updateCellList(portal, line, cell_type, cell_range_method, cell_dict_list): ...@@ -677,7 +677,7 @@ def updateCellList(portal, line, cell_type, cell_range_method, cell_dict_list):
*category_list) *category_list)
cell.edit(**mapped_value_dict) cell.edit(**mapped_value_dict)
cell.setMappedValuePropertyList(mapped_value_dict.keys()) cell.setMappedValuePropertyList(list(mapped_value_dict.keys()))
base_category_list = [category_path base_category_list = [category_path
for category_path in category_list for category_path in category_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment