summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3
diff options
context:
space:
mode:
authorGerhard Häring <gh@ghaering.de>2008-03-02 13:08:03 (GMT)
committerGerhard Häring <gh@ghaering.de>2008-03-02 13:08:03 (GMT)
commitf40f6846e3c4658fec866e00bddd78923d6cbcbd (patch)
tree8a7aecc796feaab32cd904c85d90917114e7eaef /Lib/sqlite3
parente3fabd10cb898a93cf32d743d44ca85290b78f07 (diff)
downloadcpython-f40f6846e3c4658fec866e00bddd78923d6cbcbd.zip
cpython-f40f6846e3c4658fec866e00bddd78923d6cbcbd.tar.gz
cpython-f40f6846e3c4658fec866e00bddd78923d6cbcbd.tar.bz2
Made sqlite3 module's regression tests work with SQLite versions that don't
support "create table if not exists", yet.
Diffstat (limited to 'Lib/sqlite3')
-rw-r--r--Lib/sqlite3/test/regression.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/sqlite3/test/regression.py b/Lib/sqlite3/test/regression.py
index 45eae90..2cc8f30 100644
--- a/Lib/sqlite3/test/regression.py
+++ b/Lib/sqlite3/test/regression.py
@@ -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):
"""