]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- py3k fix regarding new exception system
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Feb 2011 00:18:33 +0000 (19:18 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Feb 2011 00:18:33 +0000 (19:18 -0500)
- this test keeps throwing a TNS error on Oracle on the buildbot only, runs locally,
seems to be related to some scaling/memory type of issue on the bot

lib/sqlalchemy/engine/strategies.py
test/engine/test_transaction.py

index 06bf1126fd600cd1d3ec392b1d988db60bdfdd2d..c2c21812bea34e658da631d3aa11fc347d21a424 100644 (file)
@@ -81,7 +81,7 @@ class DefaultEngineStrategy(EngineStrategy):
                 except Exception, e:
                     # Py3K
                     #raise exc.DBAPIError.instance(None, None, 
-                    #                   dialect.dbapi.Error, e) from e
+                    #                   e, dialect.dbapi.Error) from e
                     # Py2K
                     import sys
                     raise exc.DBAPIError.instance(
index 1c94d1f5f7e1145e13498ac20436b306bb31d40c..c4aec7e37a86ea4905d3676d5efeabd7617e8f67 100644 (file)
@@ -542,6 +542,7 @@ class TLTransactionTest(TestBase):
 
         tlengine.close()
 
+    @testing.crashes('oracle', 'TNS error of unknown origin occurs on the buildbot.')
     def test_rollback_no_trans(self):
         tlengine = create_engine(testing.db.url, strategy="threadlocal")