From: Mike Bayer Date: Thu, 12 Jan 2012 01:35:57 +0000 (-0500) Subject: fix failures for oursql, python 2.4 X-Git-Tag: rel_0_7_5~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4fcdc19a8f3e75b70276bab59c77137b53c4847;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix failures for oursql, python 2.4 --- diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py index eaef9e43a4..512d9d1a3b 100644 --- a/test/engine/test_execute.py +++ b/test/engine/test_execute.py @@ -194,13 +194,16 @@ class ExecuteTest(fixtures.TestBase): @testing.fails_on("postgresql+psycopg2", "Packages the cursor in the exception") + @testing.fails_on("mysql+oursql", + "Exception doesn't come back exactly the same from pickle") def test_stmt_exception_pickleable_plus_dbapi(self): raw = testing.db.raw_connection() try: - cursor = raw.cursor() - cursor.execute("SELECTINCORRECT") - except testing.db.dialect.dbapi.DatabaseError, orig: - pass + try: + cursor = raw.cursor() + cursor.execute("SELECTINCORRECT") + except testing.db.dialect.dbapi.DatabaseError, orig: + pass finally: raw.close() self._test_stmt_exception_pickleable(orig)