From 69a7b330eeba616d3e639b94906169c906ba9303 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet <nicolas.dumazet@nexedi.com> Date: Mon, 25 Oct 2010 09:02:37 +0000 Subject: [PATCH] get*List() return an empty list when nothing is set git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39493 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/testDynamicClassGeneration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/tests/testDynamicClassGeneration.py b/product/ERP5Type/tests/testDynamicClassGeneration.py index 38050dcd4d..449c60b618 100644 --- a/product/ERP5Type/tests/testDynamicClassGeneration.py +++ b/product/ERP5Type/tests/testDynamicClassGeneration.py @@ -106,7 +106,7 @@ class TestPortalTypeClass(ERP5TypeTestCase): person = person_module.newContent(id='John Dough', portal_type='Person') person_type = portal.portal_types.Person - self.assertEquals(person_type.getTypeMixinList(), None) + self.assertEquals(person_type.getTypeMixinList() or [], []) try: self.assertEquals(getattr(person, 'asText', None), None) -- 2.30.9