From: Lele Gaifax Date: Tue, 13 May 2008 09:06:27 +0000 (+0000) Subject: Tag some tests that fail under Firebird X-Git-Tag: rel_0_5beta1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78c9603af43f21c3b5b2ef199ce2c7e224f2bae9;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Tag some tests that fail under Firebird --- diff --git a/test/engine/execute.py b/test/engine/execute.py index 4e75819b41..5a42c2dd02 100644 --- a/test/engine/execute.py +++ b/test/engine/execute.py @@ -79,6 +79,7 @@ class ExecuteTest(TestBase): assert True class ProxyConnectionTest(TestBase): + @testing.fails_on('firebird') # Data type unknown def test_proxy(self): stmts = [] diff --git a/test/sql/case_statement.py b/test/sql/case_statement.py index 667d2a22dd..4d017a977d 100644 --- a/test/sql/case_statement.py +++ b/test/sql/case_statement.py @@ -27,7 +27,7 @@ class CaseTest(TestBase, AssertsCompiledSQL): def tearDownAll(self): info_table.drop() - @testing.fails_on('maxdb') + @testing.fails_on('firebird', 'maxdb') @testing.requires.subqueries def testcase(self): inner = select([case([ @@ -98,7 +98,7 @@ class CaseTest(TestBase, AssertsCompiledSQL): self.assert_compile(case([(t.c.col1==7, "y")], else_="z"), "CASE WHEN (test.col1 = :col1_1) THEN :param_1 ELSE :param_2 END") - @testing.fails_on('maxdb') + @testing.fails_on('firebird', 'maxdb') def testcase_with_dict(self): query = select([case({ info_table.c.pk < 3: 'lessthan3', diff --git a/test/sql/query.py b/test/sql/query.py index f9ed7f540f..4a1d672cdf 100644 --- a/test/sql/query.py +++ b/test/sql/query.py @@ -140,6 +140,7 @@ class QueryTest(TestBase): l.append(row) self.assert_(len(l) == 3) + @testing.fails_on('firebird') # Data type unknown @testing.requires.subqueries def test_anonymous_rows(self): users.insert().execute( @@ -245,7 +246,7 @@ class QueryTest(TestBase): assert len(r) == 1 def test_bindparam_detection(self): - dialect = default.DefaultDialect(paramstyle='qmark') + dialect = default.DefaultDialect(paramstyle='qmark') prep = lambda q: str(sql.text(q).compile(dialect=dialect)) def a_eq(got, wanted): @@ -523,7 +524,7 @@ class QueryTest(TestBase): finally: shadowed.drop(checkfirst=True) - @testing.fails_on('maxdb') + @testing.fails_on('firebird', 'maxdb') def test_in_filtering(self): """test the behavior of the in_() function."""