From 565dfd379001f3fc4e19ff8a6a017d39dc4be1a3 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Sat, 20 Oct 2007 17:14:46 +0000 Subject: [PATCH] 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. --- test/dialect/sqlite.py | 6 ++++++ 1 file changed, 6 insertions(+) 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), -- 2.47.3