From 7cfbd20d728078a3316d25e58b3f147b6e9983f9 Mon Sep 17 00:00:00 2001 From: David Glick Date: Fri, 15 Nov 2013 00:11:13 -0800 Subject: [PATCH] don't fail test if portal_atct is missing --- plone/app/discussion/tests/test_catalog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plone/app/discussion/tests/test_catalog.py b/plone/app/discussion/tests/test_catalog.py index 42ff8e0..8c5291a 100644 --- a/plone/app/discussion/tests/test_catalog.py +++ b/plone/app/discussion/tests/test_catalog.py @@ -48,6 +48,8 @@ class CatalogSetupTest(unittest.TestCase): ) def test_collection_criteria_installed(self): + if 'portal_atct' not in self.portal: + return try: self.portal.portal_atct.getIndex('commentators') self.portal.portal_atct.getIndex('total_comments')