summaryrefslogtreecommitdiff
path: root/test/engine/test_execute.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-11 20:35:57 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-11 20:35:57 -0500
commitb4fcdc19a8f3e75b70276bab59c77137b53c4847 (patch)
tree172122feed2395d9673580a205458da0f1e566c8 /test/engine/test_execute.py
parentf54a3b255a5f93b44b7530d89f6d17e3938150f4 (diff)
downloadsqlalchemy-b4fcdc19a8f3e75b70276bab59c77137b53c4847.tar.gz
fix failures for oursql, python 2.4
Diffstat (limited to 'test/engine/test_execute.py')
-rw-r--r--test/engine/test_execute.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py
index eaef9e43a..512d9d1a3 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)