[Python-checkins] r61174 - python/trunk/Lib/sqlite3/test/regression.py

gerhard.haering python-checkins at python.org
Sun Mar 2 14:08:03 CET 2008


Author: gerhard.haering
Date: Sun Mar 2 14:08:03 2008
New Revision: 61174
Modified:
 python/trunk/Lib/sqlite3/test/regression.py
Log:
Made sqlite3 module's regression tests work with SQLite versions that don't
support "create table if not exists", yet.
Modified: python/trunk/Lib/sqlite3/test/regression.py
==============================================================================
--- python/trunk/Lib/sqlite3/test/regression.py	(original)
+++ python/trunk/Lib/sqlite3/test/regression.py	Sun Mar 2 14:08:03 2008
@@ -115,8 +115,9 @@
 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):
 """


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /