Commit fa9bcb0b authored by Barry Warsaw's avatar Barry Warsaw

_close(): Don't close the database if it's already been closed.

parent 24ed0537
...@@ -37,7 +37,9 @@ class ZODBTestBase(BerkeleyTestBase): ...@@ -37,7 +37,9 @@ class ZODBTestBase(BerkeleyTestBase):
raise raise
def _close(self): 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): def tearDown(self):
# If the tests exited with any uncommitted objects, they'll blow up # If the tests exited with any uncommitted objects, they'll blow up
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment