remove shared cache mode, it's not needed

This commit is contained in:
Damien Elmes 2009-03-18 22:45:43 +09:00
parent 34be5b47a7
commit 95b8d655e6
3 changed files with 2 additions and 1 deletions

View file

@ -22,7 +22,6 @@ except ImportError:
from sqlite3 import dbapi2 as sqlite
except:
raise "Please install pysqlite2 or python2.5"
sqlite.enable_shared_cache(True)
from sqlalchemy import (Table, Integer, Float, Column, MetaData,
ForeignKey, Boolean, String, Date,

View file

@ -74,6 +74,7 @@ class Anki10Importer(Importer):
# update total and refresh
self.total = len(res['added-facts']['facts'])
src.s.rollback()
src.engine.dispose()
self.deck.flushMod()
self.deck.finishProgress()

View file

@ -59,6 +59,7 @@ def test_anki10():
i.doImport()
assert i.total == 2
deck.s.rollback()
deck.close()
# import a deck into itself - 10-2 is the same as test10, but with one
# card answered and another deleted. nothing should be synced to client
deck = DeckStorage.Deck(file)