From b471e0e593a60aaacdb936001e91061c8d81db26 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Thu, 3 Jun 2010 08:11:46 +0000 Subject: [PATCH] only check for uid !=0 objects. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35929 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testERP5Core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/tests/testERP5Core.py b/product/ERP5/tests/testERP5Core.py index c8a7ea7d31..e94b36d50a 100644 --- a/product/ERP5/tests/testERP5Core.py +++ b/product/ERP5/tests/testERP5Core.py @@ -493,7 +493,7 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional): def test_getPropertyForUid(self): error_list = [] for i in self.portal.objectValues(): - if i.getUid() != i.getProperty('uid'): + if i.getUid() != 0 and i.getUid() != i.getProperty('uid'): error_list.append((i.getId(), i.getUid(), i.getProperty('uid'))) self.assertEquals(error_list, []) -- 2.30.9