[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/testZEO.py Use ZODB.tests.util setup code, which has logic to wait for processes

Jim Fulton jim at zope.com
Sat May 12 10:19:08 EDT 2007


Log message for revision 75703:
  Use ZODB.tests.util setup code, which has logic to wait for processes
  to die when removing test directories.
  

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

-=-
Modified: ZODB/trunk/src/ZEO/tests/testZEO.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testZEO.py	2007-05-12 14:18:05 UTC (rev 75702)
+++ ZODB/trunk/src/ZEO/tests/testZEO.py	2007-05-12 14:19:08 UTC (rev 75703)
@@ -26,9 +26,6 @@
 import unittest
 import shutil
 
-import zope.testing.setupstack
-from zope.testing import doctest
-
 # ZODB test support
 import ZODB
 import ZODB.tests.util
@@ -820,10 +817,6 @@
 test_classes = [FileStorageTests, MappingStorageTests, DemoStorageTests,
                 BlobAdaptedFileStorageTests, BlobWritableCacheTests]
 
-
-def zeoFanOutSetup(test):
-    zope.testing.setupstack.setUpDirectory(test)
-
 def test_suite():
     suite = unittest.TestSuite()
     suite.addTest(doctest.DocTestSuite(setUp=ZODB.tests.util.setUp,
@@ -831,8 +824,8 @@
     suite.addTest(doctest.DocFileSuite('registerDB.test'))
     suite.addTest(
         doctest.DocFileSuite('zeo-fan-out.test',
-                             setUp=zeoFanOutSetup,
-                             tearDown=zope.testing.setupstack.tearDown,
+                             setUp=ZODB.tests.util.setUp,
+                             tearDown=ZODB.tests.util.tearDown,
                              ),
         )
     for klass in test_classes:



More information about the Zodb-checkins mailing list