diff options
| author | Paul Johnston <paj@pajhome.org.uk> | 2007-08-12 21:24:27 +0000 |
|---|---|---|
| committer | Paul Johnston <paj@pajhome.org.uk> | 2007-08-12 21:24:27 +0000 |
| commit | fb5cd747e8c9f4cdcb612ce7c43fd82d298bf812 (patch) | |
| tree | 42d02efb7aa5bd63f2f6bf276ac571978b806754 | |
| parent | 0013b84f8b022e2354cd4d9f3c6436d3d854f002 (diff) | |
| download | sqlalchemy-fb5cd747e8c9f4cdcb612ce7c43fd82d298bf812.tar.gz | |
Close SQLite databases before deleting file, so the lock is released, important on Windows
| -rw-r--r-- | test/orm/sharding/shard.py | 2 |
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) |
