From: Mike Bayer Date: Sun, 21 Oct 2007 16:45:58 +0000 (+0000) Subject: bumped sqlite version for empty insert test to 3.4 X-Git-Tag: rel_0_4_1~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=726bb2a24cbe3179e6d3ebb5c042b4597c7aa707;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git bumped sqlite version for empty insert test to 3.4 --- diff --git a/test/dialect/sqlite.py b/test/dialect/sqlite.py index 39ee97a5d8..285921588e 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),