~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-20 22:42:34 UTC
  • mfrom: (6083.1.2 more-get-transport-from)
  • Revision ID: pqm@pqm.ubuntu.com-20110820224234-l0c0cmesdnfp2srq
(jelmer) Use get_transport_from_path and get_transport_from_url in more
 places. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
 
274
274
    def setUp(self):
275
275
        TestCaseInTempDir.setUp(self)
276
 
        t = transport.get_transport('.')
 
276
        t = transport.get_transport_from_path('.')
277
277
        t.mkdir('.bzr')
278
278
        self.sub_transport = t.clone('.bzr')
279
279
        self.lockable = self.get_lockable()
298
298
 
299
299
    def setUp(self):
300
300
        TestCaseInTempDir.setUp(self)
301
 
        self.transport = transport.get_transport('.')
 
301
        self.transport = transport.get_transport_from_path('.')
302
302
        self.lockable = self.get_lockable()
303
303
        # the lock creation here sets mode - test_permissions on branch
304
304
        # tests that implicitly, but it might be a good idea to factor
341
341
        # in test_remote and test_smart as usual.
342
342
        b = self.make_branch('foo')
343
343
        self.addCleanup(b.bzrdir.transport.disconnect)
344
 
        self.transport = transport.get_transport('.')
 
344
        self.transport = transport.get_transport_from_path('.')
345
345
        self.lockable = self.get_lockable()
346
346
 
347
347
    def get_lockable(self):