[Zodb-checkins] CVS: ZODB/src/ZODB/tests - testConfig.py:1.15

Jeremy Hylton jeremy at zope.com
Fri Feb 20 11:22:13 EST 2004


Update of /cvs-repository/ZODB/src/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv16340

Modified Files:
	testConfig.py 
Log Message:
Remove BDBStorage references in the config test.


=== ZODB/src/ZODB/tests/testConfig.py 1.14 => 1.15 ===
--- ZODB/src/ZODB/tests/testConfig.py:1.14	Thu Jan  8 17:32:07 2004
+++ ZODB/src/ZODB/tests/testConfig.py	Fri Feb 20 11:22:11 2004
@@ -116,54 +116,10 @@
         self.assertRaises(ClientDisconnected, self._test, cfg)
 
 
-class BDBConfigTest(ConfigTestBase):
-    def setUp(self):
-        self._path = tempfile.mktemp()
-        try:
-            os.mkdir(self._path)
-        except OSError, e:
-            if e.errno <> errno.EEXIST:
-                raise
-
-    def test_bdbfull_simple(self):
-        cfg = """
-        <zodb>
-          <fullstorage>
-             envdir %s
-          </fullstorage>
-        </zodb>
-        """ % self._path
-        self._test(cfg)
-
-    def test_bdbminimal_simple(self):
-        cfg = """
-        <zodb>
-          <minimalstorage>
-            envdir %s
-          </minimalstorage>
-        </zodb>
-        """ % self._path
-        self._test(cfg)
-
-
 def test_suite():
     suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(ZODBConfigTest))
-    # Only run the ZEO test if ZEO is available
-    try:
-        import ZEO
-    except ImportError:
-        pass
-    else:
-        suite.addTest(unittest.makeSuite(ZEOConfigTest))
-    # Only run the Berkeley tests if bsddb is available
-    try:
-        import BDBStorage
-    except ImportError:
-        pass
-    else:
-        if BDBStorage.is_available:
-            suite.addTest(unittest.makeSuite(BDBConfigTest))
+    suite.addTest(unittest.makeSuite(ZEOConfigTest))
     return suite
 
 




More information about the Zodb-checkins mailing list