]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Close SQLite databases before deleting file, so the lock is released, important on...
authorPaul Johnston <paj@pajhome.org.uk>
Sun, 12 Aug 2007 21:24:27 +0000 (21:24 +0000)
committerPaul Johnston <paj@pajhome.org.uk>
Sun, 12 Aug 2007 21:24:27 +0000 (21:24 +0000)
test/orm/sharding/shard.py

index 69839c8c7ad742691c4ac7fb714d4c586e5bfa4e..e80f8ab057e90d86ceb88b856776d05671b304d0 100644 (file)
@@ -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)