diff --git a/product/ERP5Catalog/tests/testERP5Catalog.py b/product/ERP5Catalog/tests/testERP5Catalog.py index 57be50c1c986e6391fdbdece71ba512fa0617e73..aac54bd0225ac1a52db162b2b2d2885ad93e822f 100755 --- a/product/ERP5Catalog/tests/testERP5Catalog.py +++ b/product/ERP5Catalog/tests/testERP5Catalog.py @@ -493,5 +493,10 @@ class TestERP5Catalog(ERP5TypeTestCase): # portal_catalog.getObject should return None if the UID parameters # is a string portal_catalog = self.getCatalogTool() - result_object = portal_catalog.getObject("StringUID") - self.assertEquals(None, result_object) + try: + result_object = portal_catalog.getObject("StringUID") + except ValueError: + # This is the expected result + pass + else: + self.failUnless(0)