Reduce deluge of failure message

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31790 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ed31a068
...@@ -180,9 +180,10 @@ class TestXHTML(ERP5TypeTestCase): ...@@ -180,9 +180,10 @@ 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%s\n' \ message = '%s fields to modify' % len(error_list)
% '\n\t'.join(str(e) for e in error_list) #message += '\n\t' + '\n\t'.join(fieldname + ": " + message
self.fail(message) # for fieldname, message in error_list)
self.fail(message) # uncomment above for details on each field
def test_portalTypesDomainTranslation(self): def test_portalTypesDomainTranslation(self):
# according to bt5-Module.Creation.Guidelines document, module # according to bt5-Module.Creation.Guidelines document, module
......
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