Commit 615a9ac2 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix testDeferredConnection failures.

The 2nd test failed because of a side effect of 1st test.
1st test failed because it (purposely) causes a failure when committing
transaction, and this is remembered inside the transaction itself, and it
then always refuses commit. Aborting is the normal execution path after an
error in commit, so do it.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43400 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 943a8649
......@@ -151,6 +151,7 @@ class TestDeferredConnection(ERP5TypeTestCase):
else:
self.fail()
finally:
transaction.abort()
delattr(connection, '_query')
self.unmonkeypatchConnection(connection)
......
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