~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-04-29 15:51:37 UTC
  • mfrom: (3386.1.1 thread-name-suffix)
  • Revision ID: pqm@pqm.ubuntu.com-20080429155137-0w5littcl831pq4m
Add optional thread_name_suffix parameter to
        SmartTCPServer_for_testing. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        # the default or a parameterized class, but rather use the
105
105
        # TestCaseWithTransport infrastructure to set up a smart server and
106
106
        # transport.
107
 
        self.transport_server = smart.server.SmartTCPServer_for_testing
 
107
        self.transport_server = self.make_transport_server
 
108
 
 
109
    def make_transport_server(self):
 
110
        return smart.server.SmartTCPServer_for_testing('-' + self.id())
108
111
 
109
112
    def get_smart_medium(self):
110
113
        """Get a smart medium to use in tests."""