From: Paul Johnston Date: Sun, 12 Aug 2007 21:24:27 +0000 (+0000) Subject: Close SQLite databases before deleting file, so the lock is released, important on... X-Git-Tag: rel_0_4beta2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb5cd747e8c9f4cdcb612ce7c43fd82d298bf812;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Close SQLite databases before deleting file, so the lock is released, important on Windows --- diff --git a/test/orm/sharding/shard.py b/test/orm/sharding/shard.py index 69839c8c7a..e80f8ab057 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)