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