Commit 9ef630e2 authored by Jim Fulton's avatar Jim Fulton

fixed test

parent 2aa6f3d8
...@@ -175,22 +175,22 @@ So, we arrange to get an error in vote: ...@@ -175,22 +175,22 @@ So, we arrange to get an error in vote:
... ...
ValueError ValueError
# When we do, the storage server's transaction lock shouldn't be held: When we do, the storage server's transaction lock shouldn't be held:
# >>> '1' in server._commit_locks >>> zs.lock_manager.locked is not None
# False False
# Of course, if vote suceeds, the lock will be held: Of course, if vote suceeds, the lock will be held:
# >>> vote_should_fail = False >>> vote_should_fail = False
# >>> zs.tpc_begin('1', '', '', {}) >>> zs.tpc_begin('1', '', '', {})
# >>> zs.storea(ZODB.utils.p64(99), ZODB.utils.z64, 'x', '1') >>> zs.storea(ZODB.utils.p64(99), ZODB.utils.z64, 'x', '1')
# >>> _ = zs.vote('1') # doctest: +ELLIPSIS >>> _ = zs.vote('1') # doctest: +ELLIPSIS
# >>> '1' in server._commit_locks >>> zs.lock_manager.locked is not None
# True True
# >>> zs.tpc_abort('1') >>> zs.tpc_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