Commit 3c6c5ef2 authored by Jim Fulton's avatar Jim Fulton

Demo storage doesn't do gc anymore.

Use setupstack, rather than the older and duplicative facilities
that were removed from ZODB.tests.util.
parent 6d8daba1
......@@ -34,6 +34,7 @@ from ZODB.tests.MinPO import MinPO
from ZODB.tests.StorageTestBase import zodb_unpickle
import persistent
import transaction
import zope.testing.setupstack
# ZODB test mixin classes
from ZODB.tests import StorageTestBase, BasicStorage, \
......@@ -425,6 +426,9 @@ class DemoStorageTests(
# to construct our iterator, which we don't, so we disable this test.
pass
def checkPackWithMultiDatabaseReferences(self):
pass # DemoStorage pack doesn't do gc
class HeartbeatTests(ZEO.tests.ConnectionTests.CommonSetupTearDown):
"""Make sure a heartbeat is being sent and that it does no harm
......@@ -1121,13 +1125,14 @@ test_classes = [FileStorageTests, FileStorageRecoveryTests,
def test_suite():
suite = unittest.TestSuite()
suite.addTest(doctest.DocTestSuite(setUp=ZODB.tests.util.setUp,
tearDown=ZODB.tests.util.tearDown))
suite.addTest(doctest.DocTestSuite(
setUp=zope.testing.setupstack.setUpDirectory,
tearDown=zope.testing.setupstack.tearDown))
suite.addTest(doctest.DocFileSuite('registerDB.test'))
suite.addTest(
doctest.DocFileSuite('zeo-fan-out.test',
setUp=ZODB.tests.util.setUp,
tearDown=ZODB.tests.util.tearDown,
setUp=zope.testing.setupstack.setUpDirectory,
tearDown=zope.testing.setupstack.tearDown,
),
)
for klass in test_classes:
......
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