]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix failures for oursql, python 2.4
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Jan 2012 01:35:57 +0000 (20:35 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Jan 2012 01:35:57 +0000 (20:35 -0500)
test/engine/test_execute.py

index eaef9e43a46c9ab8cb332537c6081496b9e48ddb..512d9d1a3bbaf5e4a5a6901c9645aa1ad1f435a5 100644 (file)
@@ -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)