Commit 0b975e60 authored by Nicolas Delaby's avatar Nicolas Delaby

Output ready to read error message


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42278 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea2f68ed
...@@ -81,8 +81,10 @@ class TestAllFormats(CloudoooTestCase): ...@@ -81,8 +81,10 @@ class TestAllFormats(CloudoooTestCase):
self.assertFalse(magic_result.endswith(": empty")) self.assertFalse(magic_result.endswith(": empty"))
except Fault, err: except Fault, err:
fault_list.append((source_format, extension[0], err.faultString)) fault_list.append((source_format, extension[0], err.faultString))
if fault_list != []: if fault_list:
self.fail(fault_list) template_message = 'input_format: %r\noutput_format: %r\n traceback:\n%s'
message = '\n'.join([template_message % fault for fault in fault_list])
self.fail('Failed Conversions:\n' + message)
def test_suite(): def test_suite():
......
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