Commit 6cbbbdd3 authored by Tim Peters's avatar Tim Peters

testExceptionInTpcAbort: reformat so I can insert debugging prints

(something's not right in this test).
parent 2149ec96
......@@ -36,7 +36,7 @@ TODO
add in tests for objects which are modified multiple times,
for example an object that gets modified in multiple sub txns.
$Id: testTransaction.py,v 1.20 2004/04/01 03:56:57 jeremy Exp $
$Id: testTransaction.py,v 1.21 2004/04/02 19:31:32 tim_one Exp $
"""
import unittest
......@@ -378,7 +378,6 @@ class TransactionTests(unittest.TestCase):
assert self.sub1._p_jar.ctpc_abort == 1
def testExceptionInTpcAbort(self):
self.sub1._p_jar = SubTransactionJar(
errors=('tpc_abort', 'tpc_vote'))
......@@ -387,7 +386,8 @@ class TransactionTests(unittest.TestCase):
try:
get_transaction().commit()
except TestTxnException: pass
except TestTxnException:
pass
assert self.nosub1._p_jar.ctpc_abort == 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment