From a19858ec02ec8bdf28cc2cfd14cd86e24509a512 Mon Sep 17 00:00:00 2001 From: helmutm Date: Wed, 7 Nov 2007 08:55:10 +0000 Subject: [PATCH] tests: ignore loops.expert when hurry.query is not present git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2159 fd906abe-77d9-0310-91a1-e0d9ade77398 --- concept.py | 1 + expert/tests.py | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/concept.py b/concept.py index dcc466b..e679958 100644 --- a/concept.py +++ b/concept.py @@ -72,6 +72,7 @@ class BaseRelation(DyadicRelation): #@property #def __parent__(self): # return self.first + # So we patched zope.location.location, line 109... class ConceptRelation(BaseRelation): diff --git a/expert/tests.py b/expert/tests.py index b5b06a8..85f33ff 100755 --- a/expert/tests.py +++ b/expert/tests.py @@ -3,7 +3,12 @@ import unittest, doctest from zope.testing.doctestunit import DocFileSuite from zope.interface.verify import verifyClass -from loops.expert import query +try: + from loops.expert import query + ignore = False +except ImportError: + print 'Skipping loops.expert' + ignore = True class Test(unittest.TestCase): "Basic tests for the expert sub-package." @@ -13,6 +18,8 @@ class Test(unittest.TestCase): def test_suite(): + if ignore: + return unittest.TestSuite() # do nothing flags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS return unittest.TestSuite(( unittest.makeSuite(Test),