Commit ef402ca1 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Replace an equality test by an identity test to be more test-friendly with mock

objects.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@383 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fe9f5f8a
......@@ -446,7 +446,7 @@ class Application(object):
def tpc_begin(self, transaction, tid=None, status=' '):
"""Begin a new transaction."""
# First get a transaction, only one is allowed at a time
if self.txn == transaction:
if self.txn is transaction:
# We already begin the same transaction
return
# Get a new transaction id if necessary
......
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