~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

  • Committer: Andrew Bennetts
  • Date: 2007-04-19 14:55:20 UTC
  • mfrom: (2404.1.1 faster-tests)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: andrew.bennetts@canonical.com-20070419145520-3j94u46y5zfh0ybq
Disconnect RemoteTransports in some tests to avoid tripping up test_strace with leftover threads from previous tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
373
373
        # to end behaviour, so stubbing out the backend and simulating would
374
374
        # defeat the purpose. We test the protocol implementation separately
375
375
        # in test_remote and test_smart as usual.
376
 
        self.make_branch('foo')
 
376
        b = self.make_branch('foo')
 
377
        self.addCleanup(b.bzrdir.transport.disconnect)
377
378
        self.transport = get_transport('.')
378
379
        self.lockable = self.get_lockable()
379
380
 
380
381
    def get_lockable(self):
381
382
        # getting a new lockable involves opening a new instance of the branch
382
383
        branch = bzrlib.branch.Branch.open(self.get_url('foo'))
 
384
        self.addCleanup(branch.bzrdir.transport.disconnect)
383
385
        return branch.control_files