[Erp5-report] r43200 nicolas.dumazet - /erp5/trunk/products/ERP5Type/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Feb 9 05:04:41 CET 2011
Author: nicolas.dumazet
Date: Wed Feb 9 05:04:41 2011
New Revision: 43200
URL: http://svn.erp5.org?rev=43200&view=rev
Log:
if some other (future?) code path raises something else than a TypeError,
that's just as bad. Catch everything.
Modified:
erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py
Modified: erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py?rev=43200&r1=43199&r2=43200&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py [utf8] Wed Feb 9 05:04:41 2011
@@ -1022,7 +1022,7 @@ class TestZodbPropertySheet(ERP5TypeTest
person = person_module.newContent(portal_type="Person")
try:
person.newContent(portal_type="Career")
- except TypeError:
+ except:
self.fail("Arrow Property Sheet could not be generated")
from Products.CMFCore.Expression import Expression
More information about the Erp5-report
mailing list