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),