Made sqlite3 module's regression tests work with SQLite versions that don't

support "create table if not exists", yet.
This commit is contained in:
Gerhard Häring 2008-03-02 13:08:03 +00:00
parent e3fabd10cb
commit f40f6846e3
1 changed files with 3 additions and 2 deletions

View File

@ -115,8 +115,9 @@ class RegressionTests(unittest.TestCase):
pysqlite would crash with older SQLite versions unless
a workaround is implemented.
"""
self.con.execute("create table if not exists foo(bar)")
self.con.execute("create table if not exists foo(bar)")
self.con.execute("create table foo(bar)")
self.con.execute("drop table foo")
self.con.execute("create table foo(bar)")
def CheckEmptyStatement(self):
"""