mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Mark tests as skipped when a SQLite version is not supported
This commit is contained in:
parent
2b50899a28
commit
f85bce74db
4 changed files with 9 additions and 16 deletions
|
@ -84,9 +84,8 @@ class RegressionTests(unittest.TestCase):
|
|||
cur.execute("select 1 x union select " + str(i))
|
||||
con.close()
|
||||
|
||||
@unittest.skipIf(sqlite.sqlite_version_info < (3, 2, 2), 'needs sqlite 3.2.2 or newer')
|
||||
def CheckOnConflictRollback(self):
|
||||
if sqlite.sqlite_version_info < (3, 2, 2):
|
||||
return
|
||||
con = sqlite.connect(":memory:")
|
||||
con.execute("create table foo(x, unique(x) on conflict rollback)")
|
||||
con.execute("insert into foo(x) values (1)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue