def test_runWithInteractionRaiseOriginalError(self):
        class ConnectionRollbackRaise(object):
            def __init__(self, pool):
                pass

            def rollback(self):
                raise RuntimeError("problem!")

        class DummyTransaction(object):
            def __init__(self, pool, connection):
                pass

        def raisingFunction(transaction):
            raise ValueError("foo")

        pool = DummyConnectionPool()
        pool.connectionFactory = ConnectionRollbackRaise
        pool.transactionFactory = DummyTransaction

        d = pool.runInteraction(raisingFunction)
        d = self.assertFailure(d, ValueError)
        def cbFailed(ignored):
            errors = self.flushLoggedErrors(RuntimeError)
            self.assertEquals(len(errors), 1)
            self.assertEquals(errors[0].value.args[0], "problem!")
        d.addCallback(cbFailed)
        return d
Load interval annotations: distance to non-coding transcription start sites
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_adbapi.py/ConnectionPoolTestCase.test_runWithInteractionRaiseOriginalError--crossover with--dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_proj007.py/loadCapseqNoncodingTSSDistance