~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-10-18 17:06:37 UTC
  • mfrom: (5462.6.2 hack_get_transport)
  • Revision ID: pqm@pqm.ubuntu.com-20101018170637-r2ta5hd72o4ficv4
(vila) Add a temporary indirection on get_transport to fix the remaining
 test leaks. (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
2451
2451
                self.addCleanup(t.disconnect)
2452
2452
            return t
2453
2453
 
2454
 
        orig_get_transport = self.overrideAttr(_mod_transport, 'get_transport',
 
2454
        orig_get_transport = self.overrideAttr(_mod_transport, '_get_transport',
2455
2455
                                               get_transport_with_cleanup)
2456
2456
        self._make_test_root()
2457
2457
        self.addCleanup(os.chdir, os.getcwdu())