summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Johnston <paj@pajhome.org.uk>2007-08-12 21:24:27 +0000
committerPaul Johnston <paj@pajhome.org.uk>2007-08-12 21:24:27 +0000
commitfb5cd747e8c9f4cdcb612ce7c43fd82d298bf812 (patch)
tree42d02efb7aa5bd63f2f6bf276ac571978b806754
parent0013b84f8b022e2354cd4d9f3c6436d3d854f002 (diff)
downloadsqlalchemy-fb5cd747e8c9f4cdcb612ce7c43fd82d298bf812.tar.gz
Close SQLite databases before deleting file, so the lock is released, important on Windows
-rw-r--r--test/orm/sharding/shard.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/orm/sharding/shard.py b/test/orm/sharding/shard.py
index 69839c8c7..e80f8ab05 100644
--- a/test/orm/sharding/shard.py
+++ b/test/orm/sharding/shard.py
@@ -51,6 +51,8 @@ class ShardTest(PersistTest):
self.setup_mappers()
def tearDownAll(self):
+ for db in (db1, db2, db3, db4):
+ db.connect().invalidate()
for i in range(1,5):
os.remove("shard%d.db" % i)