Commit fd4bcf25 authored by Nicolas Delaby's avatar Nicolas Delaby

Collect all failures before raise error.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42280 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b975e60
...@@ -78,7 +78,9 @@ class TestAllFormats(CloudoooTestCase): ...@@ -78,7 +78,9 @@ class TestAllFormats(CloudoooTestCase):
source_format, source_format,
extension[0]) extension[0])
magic_result = file_detector.from_buffer(decodestring(data_output)) magic_result = file_detector.from_buffer(decodestring(data_output))
self.assertFalse(magic_result.endswith(": empty")) file_is_empty = not magic_result.endswith(": empty")
if file_is_empty:
fault_list.append((source_format, extension[0], magic_result))
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:
......
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