Commit 6baa58e0 authored by Yusei Tahara's avatar Yusei Tahara

Fixed previous changes.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18908 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c84052cb
......@@ -502,10 +502,11 @@ class ERP5TypeTestCase(PortalTestCase):
error_message = ''
error_log = self.getPortal().error_log._getLog()
if len(error_log):
last_log = error_log[-1]
error_message = '\nLast error message:\n%s\n%s\n%s\n' % (
error_log[0]['type'],
error_log[0]['value'],
error_log[0]['tb_text'],
last_log['type'],
last_log['value'],
last_log['tb_text'],
)
raise RuntimeError,\
'tic is looping forever. These messages are pending: %r %s' % (
......
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