~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

Abbreviate pack_stat struct format to '>6L'

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
            backing_transport = tests.TestCaseWithTransport.get_transport(self)
86
86
            self._chroot_server = chroot.ChrootServer(backing_transport)
87
87
            self.start_server(self._chroot_server)
88
 
        t = transport.get_transport(self._chroot_server.get_url())
 
88
        t = transport.get_transport_from_url(self._chroot_server.get_url())
89
89
        if relpath is not None:
90
90
            t = t.clone(relpath)
91
91
        return t
99
99
        # the default or a parameterized class, but rather use the
100
100
        # TestCaseWithTransport infrastructure to set up a smart server and
101
101
        # transport.
102
 
        self.transport_server = self.make_transport_server
 
102
        self.overrideAttr(self, "transport_server", self.make_transport_server)
103
103
 
104
104
    def make_transport_server(self):
105
105
        return test_server.SmartTCPServer_for_testing('-' + self.id())