Commit 44cbe8cc authored by Nicolas Dumazet's avatar Nicolas Dumazet

str.join is much faster than successive substitutions and concatenating


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31700 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 70cc1788
...@@ -165,9 +165,8 @@ class TestXHTML(ERP5TypeTestCase): ...@@ -165,9 +165,8 @@ class TestXHTML(ERP5TypeTestCase):
field.get_value('field_id'))) field.get_value('field_id')))
if error_list: if error_list:
message = '\nDead proxy field list\n' message = '\nDead proxy field list%s\n' \
for error in error_list: % '\n\t'.join(str(e) for e in error_list)
message += '\t%s\n' % str(error)
self.fail(message) self.fail(message)
def test_configurationOfFieldLibrary(self): def test_configurationOfFieldLibrary(self):
...@@ -179,9 +178,8 @@ class TestXHTML(ERP5TypeTestCase): ...@@ -179,9 +178,8 @@ class TestXHTML(ERP5TypeTestCase):
error_list.append((modifiable_field.object_id, error_list.append((modifiable_field.object_id,
modifiable_field.choice_item_list[0][0])) modifiable_field.choice_item_list[0][0]))
if error_list: if error_list:
message = '\nField to modify\n' message = '\nField to modify%s\n' \
for error in error_list: % '\n\t'.join(str(e) for e in error_list)
message += '\t%s\n' % str(error)
self.fail(message) self.fail(message)
def test_portalTypesDomainTranslation(self): def test_portalTypesDomainTranslation(self):
...@@ -198,9 +196,8 @@ class TestXHTML(ERP5TypeTestCase): ...@@ -198,9 +196,8 @@ class TestXHTML(ERP5TypeTestCase):
error_list.append('"%s" should use erp5_ui' % \ error_list.append('"%s" should use erp5_ui' % \
portal_type.getId()) portal_type.getId())
if error_list: if error_list:
message = '\nBad portal_type domain translation list\n' message = '\nBad portal_type domain translation list%s\n' \
for error in error_list: % '\n\t'.join(error_list)
message += '\t%s\n' % str(error)
self.fail(message) self.fail(message)
def test_emptySelectionNameInListbox(self): def test_emptySelectionNameInListbox(self):
......
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