~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/lock_helpers.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-13 05:06:23 UTC
  • mfrom: (2279.7.13 bzr.dev.hpss.api.changes)
  • Revision ID: pqm@pqm.ubuntu.com-20070413050623-10v4wozs1tu04kcu
(Andrew Bennetts, Robert Collins) Add a 'token' argument to lock_write.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
            return self._other.lock_read()
57
57
        raise TestPreventLocking('lock_read disabled')
58
58
 
59
 
    def lock_write(self):
 
59
    def lock_write(self, token=None):
60
60
        self._sequence.append((self._other_id, 'lw', self._allow_write))
61
61
        if self._allow_write:
62
62
            return self._other.lock_write()