summaryrefslogtreecommitdiff
path: root/test/dialect/sqlite.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-10-21 16:45:58 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-10-21 16:45:58 +0000
commit726bb2a24cbe3179e6d3ebb5c042b4597c7aa707 (patch)
treed2c92dcc4d0dd12e1c67c60eb6af5bad7131a473 /test/dialect/sqlite.py
parent0a3913c61a75a9aaa2943bfb30d0785a0c96a6c1 (diff)
downloadsqlalchemy-726bb2a24cbe3179e6d3ebb5c042b4597c7aa707.tar.gz
bumped sqlite version for empty insert test to 3.4
Diffstat (limited to 'test/dialect/sqlite.py')
-rw-r--r--test/dialect/sqlite.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/dialect/sqlite.py b/test/dialect/sqlite.py
index 39ee97a5d..285921588 100644
--- a/test/dialect/sqlite.py
+++ b/test/dialect/sqlite.py
@@ -89,6 +89,10 @@ class DialectTest(AssertMixin):
class InsertTest(AssertMixin):
"""Tests inserts and autoincrement."""
+ # empty insert (i.e. INSERT INTO table DEFAULT VALUES)
+ # fails as recently as sqlite 3.3.6. passes on 3.4.1. this syntax
+ # is nowhere to be found in the sqlite3 documentation or changelog, so can't
+ # determine what versions in between it's legal for.
def _test_empty_insert(self, table, expect=1):
try:
table.create()
@@ -103,14 +107,14 @@ class InsertTest(AssertMixin):
table.drop()
@testing.supported('sqlite')
- @testing.exclude('sqlite', '<', (3, 3))
+ @testing.exclude('sqlite', '<', (3, 4))
def test_empty_insert_pk1(self):
self._test_empty_insert(
Table('a', MetaData(testbase.db),
Column('id', Integer, primary_key=True)))
@testing.supported('sqlite')
- @testing.exclude('sqlite', '<', (3, 3))
+ @testing.exclude('sqlite', '<', (3, 4))
def test_empty_insert_pk2(self):
self.assertRaises(
exceptions.DBAPIError,
@@ -120,7 +124,7 @@ class InsertTest(AssertMixin):
Column('y', Integer, primary_key=True)))
@testing.supported('sqlite')
- @testing.exclude('sqlite', '<', (3, 3))
+ @testing.exclude('sqlite', '<', (3, 4))
def test_empty_insert_pk3(self):
self.assertRaises(
exceptions.DBAPIError,
@@ -131,7 +135,7 @@ class InsertTest(AssertMixin):
primary_key=True)))
@testing.supported('sqlite')
- @testing.exclude('sqlite', '<', (3, 3))
+ @testing.exclude('sqlite', '<', (3, 4))
def test_empty_insert_pk4(self):
self._test_empty_insert(
Table('d', MetaData(testbase.db),
@@ -139,14 +143,14 @@ class InsertTest(AssertMixin):
Column('y', Integer, PassiveDefault('123'))))
@testing.supported('sqlite')
- @testing.exclude('sqlite', '<', (3, 3))
+ @testing.exclude('sqlite', '<', (3, 4))
def test_empty_insert_nopk1(self):
self._test_empty_insert(
Table('e', MetaData(testbase.db),
Column('id', Integer)))
@testing.supported('sqlite')
- @testing.exclude('sqlite', '<', (3, 3))
+ @testing.exclude('sqlite', '<', (3, 4))
def test_empty_insert_nopk2(self):
self._test_empty_insert(
Table('f', MetaData(testbase.db),