[Zodb-checkins] CVS: ZODB3/bsddb3Storage/bsddb3Storage/tests - ZODBTestBase.py:1.5
Barry Warsaw
barry@wooz.org
Tue, 3 Sep 2002 13:21:20 -0400
Update of /cvs-repository/ZODB3/bsddb3Storage/bsddb3Storage/tests
In directory cvs.zope.org:/tmp/cvs-serv25717
Modified Files:
ZODBTestBase.py
Log Message:
_close(): Don't close the database if it's already been closed.
=== ZODB3/bsddb3Storage/bsddb3Storage/tests/ZODBTestBase.py 1.4 => 1.5 ===
--- ZODB3/bsddb3Storage/bsddb3Storage/tests/ZODBTestBase.py:1.4 Thu Aug 29 15:52:47 2002
+++ ZODB3/bsddb3Storage/bsddb3Storage/tests/ZODBTestBase.py Tue Sep 3 13:21:20 2002
@@ -37,7 +37,9 @@
raise
def _close(self):
- self._db.close()
+ if self._db is not None:
+ self._db.close()
+ self._db = self._storage = self._conn = self._root = None
def tearDown(self):
# If the tests exited with any uncommitted objects, they'll blow up