Commit cc1f9222 authored by Jim Fulton's avatar Jim Fulton Committed by GitHub

Merge pull request #127 from zopefoundation/cleanup-check_checkCurrentSerialInTransaction

Cleaned up check_checkCurrentSerialInTransaction
parents 807ba63c 379f7e5c
......@@ -187,7 +187,7 @@ So, for example, if we wanted to set a transaction note::
.. -> src
>>> exec(src)
>>> db.history(conn.root()._p_oid)[0]['description']
>>> str(db.history(conn.root()._p_oid)[0]['description'])
'incrementing x again'
Here, we used the
......
......@@ -233,8 +233,8 @@ class BasicStorage:
self._storage.checkCurrentSerialInTransaction(oid, tid, t)
self._storage.tpc_vote(t)
except POSException.ReadConflictError as v:
self.assertTrue(v.oid) == oid
self.assertTrue(v.serials == (tid2, tid))
self.assertEqual(v.oid, oid)
self.assertEqual(v.serials, (tid2, tid))
else:
if 0: self.assertTrue(False, "No conflict error")
......
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