Commits

paj committed 97d8137

Close SQLite databases before deleting file, so the lock is released, important on Windows

Comments (0)

Files changed (1)

test/orm/sharding/shard.py

         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)