From fb5cd747e8c9f4cdcb612ce7c43fd82d298bf812 Mon Sep 17 00:00:00 2001 From: Paul Johnston Date: Sun, 12 Aug 2007 21:24:27 +0000 Subject: [PATCH] Close SQLite databases before deleting file, so the lock is released, important on Windows --- test/orm/sharding/shard.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.47.3