~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_lock/test_lock.py

  • Committer: Andrew Bennetts
  • Date: 2007-10-12 05:26:46 UTC
  • mfrom: (2904 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2906.
  • Revision ID: andrew.bennetts@canonical.com-20071012052646-wl95idld3ijjy714
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        a_lock = self.read_lock('a-file')
69
69
        a_lock.unlock()
70
70
 
71
 
        self.assertRaises(errors.ReadOnlyLockError, self.write_lock, 'a-file')
 
71
        self.assertRaises(errors.LockFailed, self.write_lock, 'a-file')
72
72
 
73
73
    def test_write_lock(self):
74
74
        """Smoke test for write locks."""