Commit 1a4f1414 authored by Jim Fulton's avatar Jim Fulton

Added missing test cleanup

parent 61c4ae76
......@@ -1014,6 +1014,8 @@ def tpc_finish_error():
... self.client = client
... def connect(self, sync=1):
... self.client.notifyConnected(Connection(self.client))
... def close(self):
... pass
>>> class StorageServer:
... should_fail = True
......@@ -1089,6 +1091,9 @@ def tpc_finish_error():
... else: print "Should have failed"
finish
connection closed
>>> cs.close()
connection closed
"""
slow_test_classes = [
......
......@@ -73,6 +73,7 @@ class CacheTests(ZODB.tests.util.TestCase):
self.cache = ZEO.cache.ClientCache(size=1024**2)
def tearDown(self):
self.cache.close()
if self.cache.path:
os.remove(self.cache.path)
ZODB.tests.util.TestCase.tearDown(self)
......
......@@ -128,6 +128,7 @@ pack-gc
>>> fs.pack(time.time(), 42, gc=True)
42 True True
>>> fs.close()
......
......@@ -38,3 +38,6 @@ Now we'll get the storage and compute the referrers:
>>> referrers[boid] == [(roid, s1), (aoid, s2)]
True
.. Cleanup
>>> db.close()
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