[Erp5-report] r31582 jerome - /erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jan 5 17:54:47 CET 2010


Author: jerome
Date: Tue Jan  5 17:54:44 2010
New Revision: 31582

URL: http://svn.erp5.org?rev=31582&view=rev
Log:
when the portal cannot be created, the first test in the test class will fail,
all other will now be skipped, so that we can read the first error message easilly.


Modified:
    erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py

Modified: erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py?rev=31582&r1=31581&r2=31582&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/ERP5TypeTestCase.py [utf8] Tue Jan  5 17:54:44 2010
@@ -798,8 +798,8 @@
       title = self.getTitle()
       from Products.ERP5Type.Base import _aq_reset
       if portal_name in failed_portal_installation:
-        raise RuntimeError, 'Installation of %s already failed, giving up'\
-                              % portal_name
+        raise backportUnittest.SkipTest('Installation of %s already failed, giving up'
+                              % portal_name)
       try:
         if app is None:
           app = ZopeTestCase.app()




More information about the Erp5-report mailing list