Commit 9b8caa65 authored by Tres Seaver's avatar Tres Seaver

Don't bork the suite in the absence of ZODB.

parent 65ff8e1f
...@@ -17,8 +17,9 @@ try: ...@@ -17,8 +17,9 @@ try:
import transaction import transaction
import ZODB import ZODB
except ImportError: except ImportError:
pass HAVE_ZODB = False
else: else:
HAVE_ZODB = True
def new_ghost_w_persistent_classes(): def new_ghost_w_persistent_classes():
""" """
Peristent meta classes work too: Peristent meta classes work too:
...@@ -78,6 +79,8 @@ else: ...@@ -78,6 +79,8 @@ else:
def test_suite(): def test_suite():
from doctest import DocTestSuite from doctest import DocTestSuite
return unittest.TestSuite(( if HAVE_ZODB:
DocTestSuite(), return unittest.TestSuite((
)) DocTestSuite(),
))
return unittest.TestSuite()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment