~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-13 03:42:59 UTC
  • mfrom: (1658.1.5 bzr.mbp.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060413034259-6466a758a88b4a94
(mbp) ftp push fix; Working_tree.set_inventory; test suite warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
        # regardless of contents
196
196
        self.assertFalse(t.has('lock/held/info'))
197
197
        repo.lock_write()
198
 
        self.assertTrue(t.has('lock/held/info'))
 
198
        try:
 
199
            self.assertTrue(t.has('lock/held/info'))
 
200
        finally:
 
201
            # unlock so we don't get a warning about failing to do so
 
202
            repo.unlock()
199
203
 
200
204
    def test_uses_lockdir(self):
201
205
        """repo format 7 actually locks on lockdir"""