Commit 9b1121e1 authored by Jim Fulton's avatar Jim Fulton

added missing close()

parent 04028a08
...@@ -34,6 +34,8 @@ class PrefetchTests(unittest.TestCase): ...@@ -34,6 +34,8 @@ class PrefetchTests(unittest.TestCase):
([0, 1, 2, 3, 4], conn._storage._start), ([0, 1, 2, 3, 4], conn._storage._start),
]) ])
db.close()
def test_prefetch_optional(self): def test_prefetch_optional(self):
conn = ZODB.connection(None) conn = ZODB.connection(None)
conn.prefetch(z64) conn.prefetch(z64)
...@@ -41,6 +43,7 @@ class PrefetchTests(unittest.TestCase): ...@@ -41,6 +43,7 @@ class PrefetchTests(unittest.TestCase):
conn.prefetch(conn.root()) conn.prefetch(conn.root())
conn.prefetch(z64, [z64]) conn.prefetch(z64, [z64])
conn.prefetch(z64, [z64], conn.root()) conn.prefetch(z64, [z64], conn.root())
conn.close()
def test_prefetch_optional_imvcc(self): def test_prefetch_optional_imvcc(self):
conn = ZODB.connection(MVCCMappingStorage()) conn = ZODB.connection(MVCCMappingStorage())
...@@ -49,6 +52,7 @@ class PrefetchTests(unittest.TestCase): ...@@ -49,6 +52,7 @@ class PrefetchTests(unittest.TestCase):
conn.prefetch(conn.root()) conn.prefetch(conn.root())
conn.prefetch(z64, [z64]) conn.prefetch(z64, [z64])
conn.prefetch(z64, [z64], conn.root()) conn.prefetch(z64, [z64], conn.root())
conn.close()
def test_suite(): def test_suite():
......
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