[Zodb-checkins] CVS: ZODB4/src/zodb/storage/tests - test_create.py:1.4
Barry Warsaw
barry@wooz.org
Fri, 24 Jan 2003 13:56:05 -0500
Update of /cvs-repository/ZODB4/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv8113
Modified Files:
test_create.py
Log Message:
OpenRecoveryTest: Make this work again.
=== ZODB4/src/zodb/storage/tests/test_create.py 1.3 => 1.4 ===
--- ZODB4/src/zodb/storage/tests/test_create.py:1.3 Wed Jan 22 15:50:24 2003
+++ ZODB4/src/zodb/storage/tests/test_create.py Fri Jan 24 13:56:02 2003
@@ -93,8 +93,8 @@
class OpenRecoveryTest(bdbmixin.FullTestBase):
- def _mk_dbhome(self, dir):
- self._dir = dir
+ def _open(self):
+ self._storage = None
def testOpenWithBogusConfig(self):
class C: pass
@@ -102,9 +102,9 @@
# This instance won't have the necessary attributes, so the creation
# will fail. We want to be sure that everything gets cleaned up
# enough to fix that and create a proper storage.
- self.assertRaises(AttributeError, BDBFullStorage, self._dir, config=c)
- c = BerkeleyConfig()
- s = BDBFullStorage(self._dir, config=c)
+ dir = self._envdir()
+ self.assertRaises(AttributeError, BDBFullStorage, dir, config=c)
+ s = BDBFullStorage(dir, config=self._config())
s.close()