From: Jason Kirtland Date: Wed, 26 Sep 2007 23:35:14 +0000 (+0000) Subject: Avoid tickling the MySQL-python 1.2.2 executemany parsing bug on a couple tests. X-Git-Tag: rel_0_4beta6~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a04b7e4d4a4913cdbb60439b5371cf41c91c976;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Avoid tickling the MySQL-python 1.2.2 executemany parsing bug on a couple tests. --- diff --git a/test/sql/defaults.py b/test/sql/defaults.py index 7f23466723..205de487c8 100644 --- a/test/sql/defaults.py +++ b/test/sql/defaults.py @@ -152,6 +152,11 @@ class DefaultTest(PersistTest): ]) def testinsertmany(self): + # MySQL-Python 1.2.2 breaks functions in execute_many :( + if (testbase.db.name == 'mysql' and + testbase.db.dialect.dbapi.version_info[:3] == (1, 2, 2)): + return + r = t.insert().execute({}, {}, {}) ctexec = currenttime.scalar() @@ -165,6 +170,11 @@ class DefaultTest(PersistTest): self.assert_(l.fetchone()['col3'] == 50) def testupdatemany(self): + # MySQL-Python 1.2.2 breaks functions in execute_many :( + if (testbase.db.name == 'mysql' and + testbase.db.dialect.dbapi.version_info[:3] == (1, 2, 2)): + return + t.insert().execute({}, {}, {}) t.update(t.c.col1==bindparam('pkval')).execute(