Commit 8f3e57a0 authored by Nicolas Dumazet's avatar Nicolas Dumazet

if some other (future?) code path raises something else than a TypeError,

that's just as bad. Catch everything.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43200 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent baf42abd
......@@ -1022,7 +1022,7 @@ class TestZodbPropertySheet(ERP5TypeTestCase):
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
......
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