Commit 86905eea authored by Jim Fulton's avatar Jim Fulton

Added missing test cleanup

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