Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jul 8, 2016
1 parent 2aa6f3d commit 9ef630e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/ZEO/tests/testZEO2.py
Expand Up @@ -175,22 +175,22 @@ def errors_in_vote_should_clear_lock():
...
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
# False
>>> zs.lock_manager.locked is not None
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
# >>> zs.tpc_begin('1', '', '', {})
# >>> zs.storea(ZODB.utils.p64(99), ZODB.utils.z64, 'x', '1')
# >>> _ = zs.vote('1') # doctest: +ELLIPSIS
>>> vote_should_fail = False
>>> zs.tpc_begin('1', '', '', {})
>>> zs.storea(ZODB.utils.p64(99), ZODB.utils.z64, 'x', '1')
>>> _ = zs.vote('1') # doctest: +ELLIPSIS
# >>> '1' in server._commit_locks
# True
>>> zs.lock_manager.locked is not None
True
# >>> zs.tpc_abort('1')
>>> zs.tpc_abort('1')
"""


Expand Down

0 comments on commit 9ef630e

Please sign in to comment.