~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-10 01:05:01 UTC
  • mfrom: (2872.5.5 129701-readonly-commit)
  • Revision ID: pqm@pqm.ubuntu.com-20071010010501-ejbj03m5w3k9vdsd
Avoid internal error tracebacks on failure to lock on readonly transport (#129701)

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."""