From 903f83827bdaeb1643771a9f4b2c5b31c2ecd0f5 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Tue, 8 Nov 2005 11:44:06 +0000 Subject: [PATCH] Output More useful information on a tic error. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4275 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/ERP5TypeTestCase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index 4707570b21..14f6acc815 100755 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -258,7 +258,7 @@ class ERP5TypeTestCase(PortalTestCase): # This prevents an infinite loop. count -= 1 if count == 0: - raise RuntimeError, 'tic is looping forever. These messages are pending: %r' % (portal_activities.getMessageList(),) + raise RuntimeError, 'tic is looping forever. These messages are pending: %r' % ([('/'.join(m.object_path), m.method_id, m.processing_node, m.priority) for m in portal_activities.getMessageList()],) # This give some time between messages if count % 10 == 0: from Products.CMFActivity.Activity.Queue import VALIDATION_ERROR_DELAY -- 2.30.9