summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-03-28 17:26:45 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-03-28 17:26:45 -0400
commit477b9e7f0297e0f96781fb94501b505ee647970a (patch)
treed14a14a218cbc09586dc82519e8d8e7b0347af50
parent9a49d5fea5a9878429f852ee9f2b9fa3d9255696 (diff)
downloadsqlalchemy-477b9e7f0297e0f96781fb94501b505ee647970a.tar.gz
mark failing tests for buggy mysqlconnector
-rw-r--r--test/sql/test_query.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/sql/test_query.py b/test/sql/test_query.py
index 6258e4516..65bb2e07c 100644
--- a/test/sql/test_query.py
+++ b/test/sql/test_query.py
@@ -246,6 +246,9 @@ class QueryTest(fixtures.TestBase):
l.append(row)
self.assert_(len(l) == 3)
+ @testing.fails_if(
+ lambda: util.py3k and testing.against('mysql+mysqlconnector'),
+ "bug in mysqlconnector")
@testing.requires.subqueries
def test_anonymous_rows(self):
users.insert().execute(
@@ -444,6 +447,9 @@ class QueryTest(fixtures.TestBase):
)
+ @testing.fails_if(
+ lambda: util.py3k and testing.against('mysql+mysqlconnector'),
+ "bug in mysqlconnector")
@testing.requires.boolean_col_expressions
def test_or_and_as_columns(self):
true, false = literal(True), literal(False)
@@ -497,6 +503,9 @@ class QueryTest(fixtures.TestBase):
):
eq_(expr.execute().fetchall(), result)
+ @testing.fails_if(
+ lambda: util.py3k and testing.against('mysql+mysqlconnector'),
+ "bug in mysqlconnector")
@testing.requires.mod_operator_as_percent_sign
@testing.emits_warning('.*now automatically escapes.*')
def test_percents_in_text(self):
@@ -539,6 +548,9 @@ class QueryTest(fixtures.TestBase):
c = testing.db.connect()
assert c.execute(s, id=7).fetchall()[0]['user_id'] == 7
+ @testing.fails_if(
+ lambda: util.py3k and testing.against('mysql+mysqlconnector'),
+ "bug in mysqlconnector")
def test_repeated_bindparams(self):
"""Tests that a BindParam can be used more than once.
@@ -1199,6 +1211,9 @@ class QueryTest(fixtures.TestBase):
# Null values are not outside any set
assert len(r) == 0
+ @testing.fails_if(
+ lambda: util.py3k and testing.against('mysql+mysqlconnector'),
+ "bug in mysqlconnector")
@testing.emits_warning('.*empty sequence.*')
@testing.fails_on('firebird', "uses sql-92 rules")
@testing.fails_on('sybase', "uses sql-92 rules")
@@ -1225,6 +1240,9 @@ class QueryTest(fixtures.TestBase):
r = s.execute(search_key=None).fetchall()
assert len(r) == 0
+ @testing.fails_if(
+ lambda: util.py3k and testing.against('mysql+mysqlconnector'),
+ "bug in mysqlconnector")
@testing.emits_warning('.*empty sequence.*')
def test_literal_in(self):
"""similar to test_bind_in but use a bind with a value."""
@@ -2397,6 +2415,9 @@ class OperatorTest(fixtures.TestBase):
# TODO: seems like more tests warranted for this setup.
+ @testing.fails_if(
+ lambda: util.py3k and testing.against('mysql+mysqlconnector'),
+ "bug in mysqlconnector")
def test_modulo(self):
eq_(
select([flds.c.intcol % 3],