From: Jason Kirtland Date: Sat, 20 Oct 2007 17:14:46 +0000 (+0000) Subject: Excluding older sqlite versions from the new insert tests. Currently conservative... X-Git-Tag: rel_0_4_1~126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=565dfd379001f3fc4e19ff8a6a017d39dc4be1a3;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Excluding older sqlite versions from the new insert tests. Currently conservative- 2.8 definitely fails, 3.3 works. The 3.0 and 3.1 binaries from sqlite.org segfault for me so the version check should be revisited when possible. --- diff --git a/test/dialect/sqlite.py b/test/dialect/sqlite.py index e401859bc2..39ee97a5d8 100644 --- a/test/dialect/sqlite.py +++ b/test/dialect/sqlite.py @@ -103,12 +103,14 @@ class InsertTest(AssertMixin): table.drop() @testing.supported('sqlite') + @testing.exclude('sqlite', '<', (3, 3)) 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)) def test_empty_insert_pk2(self): self.assertRaises( exceptions.DBAPIError, @@ -118,6 +120,7 @@ class InsertTest(AssertMixin): Column('y', Integer, primary_key=True))) @testing.supported('sqlite') + @testing.exclude('sqlite', '<', (3, 3)) def test_empty_insert_pk3(self): self.assertRaises( exceptions.DBAPIError, @@ -128,6 +131,7 @@ class InsertTest(AssertMixin): primary_key=True))) @testing.supported('sqlite') + @testing.exclude('sqlite', '<', (3, 3)) def test_empty_insert_pk4(self): self._test_empty_insert( Table('d', MetaData(testbase.db), @@ -135,12 +139,14 @@ class InsertTest(AssertMixin): Column('y', Integer, PassiveDefault('123')))) @testing.supported('sqlite') + @testing.exclude('sqlite', '<', (3, 3)) 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)) def test_empty_insert_nopk2(self): self._test_empty_insert( Table('f', MetaData(testbase.db),