~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/lock_helpers.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-30 16:43:12 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060730164312-b025fd3ff0cee59e
rename  gpl.txt => COPYING.txt

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, token=None):
 
59
    def lock_write(self):
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()