Karma: Fix SQLite threading issue. Closes GH-206.

This commit is contained in:
Valentin Lorentz 2011-09-11 20:13:20 +02:00
parent 2a0e232fad
commit b80d6b27d6
2 changed files with 3 additions and 3 deletions

View File

@ -60,11 +60,11 @@ class SqliteKarmaDB(object):
if filename in self.dbs:
return self.dbs[filename]
if os.path.exists(filename):
db = sqlite3.connect(filename)
db = sqlite3.connect(filename, check_same_thread=False)
db.text_factory = str
self.dbs[filename] = db
return db
db = sqlite3.connect(filename)
db = sqlite3.connect(filename, check_same_thread=False)
db.text_factory = str
self.dbs[filename] = db
cursor = db.cursor()

View File

@ -1,3 +1,3 @@
"""stick the various versioning attributes in here, so we only have to change
them once."""
version = '0.83.4.1+limnoria (2011-09-11T16:43:21+0200)'
version = '0.83.4.1+limnoria (2011-09-11T20:13:20+0200)'