[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/testZEO.py Demo storage doesn't do gc anymore.

Jim Fulton jim at zope.com
Sat Oct 25 20:36:05 EDT 2008


Log message for revision 92552:
  Demo storage doesn't do gc anymore.
  
  Use setupstack, rather than the older and duplicative facilities
  that were removed from ZODB.tests.util.
  

Changed:
  U   ZODB/trunk/src/ZEO/tests/testZEO.py

-=-
Modified: ZODB/trunk/src/ZEO/tests/testZEO.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testZEO.py	2008-10-26 00:36:01 UTC (rev 92551)
+++ ZODB/trunk/src/ZEO/tests/testZEO.py	2008-10-26 00:36:04 UTC (rev 92552)
@@ -34,6 +34,7 @@
 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 @@
         # 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 @@
 
 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:



More information about the Zodb-checkins mailing list