[Zodb-checkins] CVS: ZODB3/BDBStorage/tests - test_create.py:1.18
Barry Warsaw
barry@wooz.org
Mon, 27 Jan 2003 16:19:30 -0500
Update of /cvs-repository/ZODB3/BDBStorage/tests
In directory cvs.zope.org:/tmp/cvs-serv22973
Modified Files:
test_create.py
Log Message:
Backport refactoring
=== ZODB3/BDBStorage/tests/test_create.py 1.17 => 1.18 ===
--- ZODB3/BDBStorage/tests/test_create.py:1.17 Mon Jan 13 19:07:11 2003
+++ ZODB3/BDBStorage/tests/test_create.py Mon Jan 27 16:19:27 2003
@@ -93,8 +93,8 @@
class OpenRecoveryTest(BerkeleyTestBase.FullTestBase):
- def _mk_dbhome(self, dir):
- self._dir = dir
+ def open(self):
+ self._storage = None
def testOpenWithBogusConfig(self):
class C: pass
@@ -102,9 +102,10 @@
# 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)
+ dir = self._envdir()
+ self.assertRaises(AttributeError, BDBFullStorage, dir, config=c)
c = BerkeleyConfig()
- s = BDBFullStorage(self._dir, config=c)
+ s = BDBFullStorage(dir, config=c)
s.close()