Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexander Emmerich
erp5
Commits
155fa4cc
Commit
155fa4cc
authored
Oct 07, 2022
by
Kazuhiko Shiozaki
Committed by
Arnaud Fontaine
Mar 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2/py3: explicitly cast to list in ERP5Type/tests.
parent
35e1a629
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
product/ERP5Type/tests/runTestSuite.py
product/ERP5Type/tests/runTestSuite.py
+1
-1
product/ERP5Type/tests/utils.py
product/ERP5Type/tests/utils.py
+2
-2
No files found.
product/ERP5Type/tests/runTestSuite.py
View file @
155fa4cc
...
@@ -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
))
...
...
product/ERP5Type/tests/utils.py
View file @
155fa4cc
...
@@ -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
=
li
ne
.
index
[
base_id
].
keys
(
)
index_list
=
li
st
(
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment