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
This commit is contained in:
parent
5e70cb55ce
commit
a19858ec02
2 changed files with 9 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue